|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rp1.rossum.RsComponent rp1.rossum.RsBodyPart rp1.rossum.RsActuator rp1.rossum.RsWheelSystem
public abstract class RsWheelSystem
This is the abstract base class for all locomotor classes. Eventually, implementations are planned for the following classes
Note that in the current version of RP1, a wheel system is non-interactive. This limitation is due to implementation problems to be resolved later. If the wheels are contained within the general chassis of the robot, this is not a problem. On some designs, where the wheels are large compared to the robot, it is common to place them in an "outboard" position. In such a case, collision issues are relevant... model these by creating a body shape with the same "footprint" as the wheels.
Constructor Summary | |
---|---|
RsWheelSystem()
|
Method Summary | |
---|---|
void |
addDefaultCasterWheel(double x,
double y,
double wheelRadius,
double wheelWidth)
Provides a convenience function for adding a default caster wheel to the system. |
void |
addDefaultWheels(double wheelRadius,
double wheelWidth)
|
void |
addWheel(RsWheel w)
|
void |
applyMotion(RsMotion motion)
|
RsMotion |
computeMotion(RsMotion start,
double startTime,
RsMotionRequest request)
|
void |
copyStateData(RsBodyPart dataSource)
|
double |
getDriveWheelRadius()
|
RsMotionRequest |
getMotionRequest(double x,
double y,
double speed)
Given a goal position defined in x/y coordinates in the robots frame of reference, getMotionRequest computes a motion request that will cause the robot to move from its current position to the goal. |
RsMotionRequest |
getMotionRequestForPivot(double x,
double y,
double speed)
Given a goal position defined in x/y coordinates in the robot's frame of reference, getMotionRequestForPivot computes a pivot maneuver that will cause the robot to face the goal. |
double |
getTrackWidth()
|
double |
getWheelBase()
|
RsWheel |
getWheelForID(int wheelID)
|
RsWheel[] |
getWheels()
|
void |
paint(java.awt.Graphics g,
RsTransform gt)
|
void |
resetStateData()
resetStateData is usually called when a placement is established. |
void |
setFillColor(java.awt.Color fillColor)
This method, which overrides that of the parent class, sets the fill color for all wheel objects that were added to the wheel system prior to its invocation. |
void |
setLineColor(java.awt.Color lineColor)
This method, which overrides that of the parent class, sets the line color for all wheel objects that were added to the wheel system prior to its invocation. |
Methods inherited from class rp1.rossum.RsActuator |
---|
getPartsArray |
Methods inherited from class rp1.rossum.RsBodyPart |
---|
getFillColor, getHot, getID, getLineColor, getName, isASensor, searchForCollisions, setHot, setHotFillColor, setHotLineColor, 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 |
Constructor Detail |
---|
public RsWheelSystem()
Method Detail |
---|
public void addWheel(RsWheel w)
public void addDefaultWheels(double wheelRadius, double wheelWidth)
public double getTrackWidth()
public double getWheelBase()
public double getDriveWheelRadius()
public void setFillColor(java.awt.Color fillColor)
setFillColor
in class RsBodyPart
public void setLineColor(java.awt.Color lineColor)
setLineColor
in class RsBodyPart
public void paint(java.awt.Graphics g, RsTransform gt)
paint
in class RsActuator
public void applyMotion(RsMotion motion)
public RsMotion computeMotion(RsMotion start, double startTime, RsMotionRequest request)
public RsMotionRequest getMotionRequest(double x, double y, double speed)
x
- x coordiante of goal in robot's frame of reference (meters)y
- y coordinate of goal in robot's frame of reference (meters)speed
- speed at which robot is requested to travel (meters/sec)public RsMotionRequest getMotionRequestForPivot(double x, double y, double speed)
x
- x coordiante of goal in robot's frame of reference (meters)y
- y coordinate of goal in robot's frame of reference (meters)speed
- rotational speed at which robot is requested to pivot (radians/sec)public void resetStateData()
RsBodyPart
resetStateData
in class RsBodyPart
public void copyStateData(RsBodyPart dataSource)
copyStateData
in class RsBodyPart
public void addDefaultCasterWheel(double x, double y, double wheelRadius, double wheelWidth)
public RsWheel getWheelForID(int wheelID)
public RsWheel[] getWheels()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |