|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.robokind.api.motion.utils.RobotMoverFrameSource
public class RobotMoverFrameSource
A FrameSource which acts as a Robot move proxy. Accepts movements as a RobotPositionMap and time length.
| Constructor Summary | |
|---|---|
RobotMoverFrameSource(Robot robot)
Creates a new RobotMoverFrameSource for the given Robot. |
|
| Method Summary | |
|---|---|
MotionFrame |
getMovements(long currentTimeUTC,
long moveLengthMilliSec)
Returns the desired Robot movement starting at the given time and lasting for the given number of milliseconds. |
Robot |
getRobot()
|
void |
move(Robot.RobotPositionMap positions,
long lenMillisec)
Moves the Robot to the given positions in the given time length. |
void |
setRobot(Robot robot)
Sets the Robot to |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RobotMoverFrameSource(Robot robot)
robot - Robot to move| Method Detail |
|---|
public void setRobot(Robot robot)
RobotFrameSource
setRobot in interface RobotFrameSourcepublic Robot getRobot()
getRobot in interface RobotFrameSource
public void move(Robot.RobotPositionMap positions,
long lenMillisec)
positions - goal positionslenMillisec - length of the movement in milliseconds
public MotionFrame getMovements(long currentTimeUTC,
long moveLengthMilliSec)
FrameSource
getMovements in interface FrameSource<Robot.RobotPositionMap>currentTimeUTC - time of the move requestmoveLengthMilliSec - expected length of the movement returned, the
actual returned length does not have to be same, but the actual movement
results will depend on the Blender used
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||