javaclient.structures
Class PlayerSimulationPose2D
java.lang.Object
javaclient.structures.PlayerSimulationPose2D
public class PlayerSimulationPose2D
- extends java.lang.Object
To set or get the pose of an object in a simulator, use this message type. If the subtype
is PLAYER_SIMULATION_SET_POSE2D, the server will ask the simulator to move the named
object to the location specified by (x,y,a) and return ACK. If the subtype is
PLAYER_SIMULATION_GET_POSE2D, the server will attempt to locate the named object and reply
with the same packet with (x,y,a) filled in. For all message subtypes, if the named object
does not exist, or some other error occurs, the request should reply NACK.
(see the player_simulation_pose2d_req structure from player.h)
- Version:
- v1.6.3 - Player 1.6.3 (all interfaces) supported
- v1.6.2 - Player 1.6.2 supported, Javadoc documentation, several bugfixes
- Author:
- Radu Bogdan Rusu
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlayerSimulationPose2D
public PlayerSimulationPose2D()
getName
public java.lang.String getName()
- Returns:
- the identifier of the object we want to locate
setName
public void setName(java.lang.String newname)
- Parameters:
newname
- identifier of the object we want to locate
getX
public int getX()
- Returns:
- the desired pose or returned pose (X)
setX
public void setX(int newx)
- Parameters:
newx
- desired pose or returned pose (X)
getY
public int getY()
- Returns:
- the desired pose or returned pose (Y)
setY
public void setY(int newy)
- Parameters:
newy
- desired pose or returned pose (Y)
getTheta
public int getTheta()
- Returns:
- the desired pose or returned pose (Theta)
setTheta
public void setTheta(int newtheta)
- Parameters:
newtheta
- desired pose or returned pose (Theta)