PosMap - Type of JointPositionMap usedpublic class DefaultMotionFrame<PosMap extends JointPositionMap> extends Object implements MotionFrame<PosMap>
| Constructor and Description |
|---|
DefaultMotionFrame()
Creates an empty MotionFrame.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getFrameLengthMillisec()
Returns the interval for the movements.
|
PosMap |
getGoalPositions()
Returns the MotionFrame's goal JointPositionMap.
|
PosMap |
getPreviousPositions()
Returns the MotionFrame's previous JointPositionMap.
|
long |
getTimestampMillisecUTC()
Returns MotionFrame creation time.
|
void |
setFrameLengthMillisec(long interval)
Sets the time interval length for the MotionFrame.
|
void |
setGoalPositions(PosMap pos)
Sets the MotionFrame's goal JointPositionMap.
|
void |
setPreviousPositions(PosMap pos)
Set the MotionFrame's previous JointPositionMap.
|
void |
setTimestampMillisecUTC(long time)
Sets the MotionFrame creation time.
|
public void setTimestampMillisecUTC(long time)
setTimestampMillisecUTC in interface MotionFrame<PosMap extends JointPositionMap>time - create timepublic long getTimestampMillisecUTC()
getTimestampMillisecUTC in interface MotionFrame<PosMap extends JointPositionMap>public void setFrameLengthMillisec(long interval)
setFrameLengthMillisec in interface MotionFrame<PosMap extends JointPositionMap>interval - length of time for the frame in millisecondspublic long getFrameLengthMillisec()
getFrameLengthMillisec in interface MotionFrame<PosMap extends JointPositionMap>public void setGoalPositions(PosMap pos)
setGoalPositions in interface MotionFrame<PosMap extends JointPositionMap>pos - goal JointPositionMappublic PosMap getGoalPositions()
getGoalPositions in interface MotionFrame<PosMap extends JointPositionMap>public void setPreviousPositions(PosMap pos)
setPreviousPositions in interface MotionFrame<PosMap extends JointPositionMap>pos - previous JointPositionMappublic PosMap getPreviousPositions()
getPreviousPositions in interface MotionFrame<PosMap extends JointPositionMap>Copyright © 2011-2014. All Rights Reserved.