|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrp1.rossum.RsComponent
rp1.rossum.RsBodyPart
rp1.rossum.RsBodyShape
rp1.rossum.RsWheel
public class RsWheel
A class used to represent wheels, generally stored in the collection elements of the RsWheelSystem. TO DO: The encoder implementation here is a stop-gap until we get a full implementation. Eventually, the encoder-related fields need to be moved to RsEncoder.
Constructor Summary | |
---|---|
RsWheel(double[] point,
int nPoint,
double x,
double y,
double radius)
|
|
RsWheel(double[] point,
int nPoint,
double x,
double y,
double radius,
double maxAbsSteeringAngle)
|
Method Summary | |
---|---|
RsEncoder |
addEncoder(int nIntervals)
Adds an encoder to the wheel. |
void |
copyStateData(RsBodyPart dataSource)
|
RsEncoderStatusEvent |
getEncoderStatusEvent(double simTime,
int requestIndex,
boolean clearOnReport)
Returns an encoder-status event giving current state data from wheel encoder. |
double |
getMaxAbsSteeringAngle()
|
double |
getWheelRadius()
|
boolean |
isWheelSteerable()
Indicates whether a wheel is a candidate for steering or in a fixed position |
double |
mapAccumulatorToDisplacement(int accumulatorValue)
maps an accumulator value to a linear displacement (accounting for the encoder resolution and wheel size). |
void |
paint(java.awt.Graphics g,
RsTransform gt)
|
void |
resetEncoder()
Resets all state data for the encoder. |
void |
resetStateData()
resetStateData is usually called when a placement is established. |
Methods inherited from class rp1.rossum.RsBodyShape |
---|
checkForOverlap, getSegmentArray |
Methods inherited from class rp1.rossum.RsBodyPart |
---|
getFillColor, getHot, getID, getLineColor, getName, isASensor, searchForCollisions, setFillColor, setHot, setHotFillColor, setHotLineColor, setLineColor, setName |
Methods inherited from class rp1.rossum.RsComponent |
---|
clone |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface rp1.rossum.RsEncoder |
---|
getID |
Constructor Detail |
---|
public RsWheel(double[] point, int nPoint, double x, double y, double radius)
public RsWheel(double[] point, int nPoint, double x, double y, double radius, double maxAbsSteeringAngle)
Method Detail |
---|
public boolean isWheelSteerable()
public double getWheelRadius()
public double getMaxAbsSteeringAngle()
public RsEncoder addEncoder(int nIntervals)
public void resetEncoder()
public void resetStateData()
RsBodyPart
resetStateData
in class RsBodyPart
public void copyStateData(RsBodyPart dataSource)
copyStateData
in class RsBodyPart
public void paint(java.awt.Graphics g, RsTransform gt)
paint
in class RsBodyShape
public RsEncoderStatusEvent getEncoderStatusEvent(double simTime, int requestIndex, boolean clearOnReport)
public double mapAccumulatorToDisplacement(int accumulatorValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |