javaclient.structures
Class PlayerSimulationPose2D

java.lang.Object
  extended by 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:
Author:
Radu Bogdan Rusu

Constructor Summary
PlayerSimulationPose2D()
           
 
Method Summary
 java.lang.String getName()
           
 int getTheta()
           
 int getX()
           
 int getY()
           
 void setName(java.lang.String newname)
           
 void setTheta(int newtheta)
           
 void setX(int newx)
           
 void setY(int newy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlayerSimulationPose2D

public PlayerSimulationPose2D()
Method Detail

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)