public class PositionManager extends java.lang.Object implements IPositionManager, java.io.Serializable
Constructor and Description |
---|
PositionManager()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addDesiredPosition(int index,
Pose2D pos)
adds an intermediate position (with orientation) to the list of positions
|
void |
clear()
Removes all desired positions from the list
|
java.util.List<Pose2D> |
getDesiredPositions() |
Pose2D |
getFinalPosition() |
void |
setDesiredPosition(Pose2D posOrientation,
boolean enforceFromOutside) |
void |
setDesiredPosition(org.apache.commons.math3.geometry.euclidean.threed.Vector3D desiredPosition,
Angle desiredRotation,
boolean enforceFromOutside)
Set desired position and rotation
|
void |
setDesiredPositions(java.util.List<Pose2D> desiredPositions) |
public java.util.List<Pose2D> getDesiredPositions()
getDesiredPositions
in interface IPositionManager
public Pose2D getFinalPosition()
getFinalPosition
in interface IPositionManager
public void setDesiredPositions(java.util.List<Pose2D> desiredPositions)
desiredPositions
- the desiredPositions to setpublic void setDesiredPosition(org.apache.commons.math3.geometry.euclidean.threed.Vector3D desiredPosition, Angle desiredRotation, boolean enforceFromOutside)
setDesiredPosition
in interface IPositionManager
desiredPosition
- Desired positiondesiredRotation
- Desired rotationenforceFromOutside
- True if the position is set from outside the
agent and may not be changed by the agent itselfpublic void setDesiredPosition(Pose2D posOrientation, boolean enforceFromOutside)
setDesiredPosition
in interface IPositionManager
posOrientation
- the position and orientation of desired positionenforceFromOutside
- true if the position should not be changedpublic void addDesiredPosition(int index, Pose2D pos)
addDesiredPosition
in interface IPositionManager
index
- the index where to add the new positionpos
- the position orientation to addpublic void clear()
clear
in interface IPositionManager