public class RobotMoverFrameSource extends Object implements RobotFrameSource
| Constructor and Description |
|---|
RobotMoverFrameSource(Robot robot)
Creates a new RobotMoverFrameSource for the given Robot.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public RobotMoverFrameSource(Robot robot)
robot - Robot to movepublic void setRobot(Robot robot)
RobotFrameSourcesetRobot in interface RobotFrameSourcepublic Robot getRobot()
getRobot in interface RobotFrameSourcepublic void move(Robot.RobotPositionMap positions, long lenMillisec)
positions - goal positionslenMillisec - length of the movement in millisecondspublic MotionFrame getMovements(long currentTimeUTC, long moveLengthMilliSec)
FrameSourcegetMovements 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 usedCopyright © 2011-2014. All Rights Reserved.