View Javadoc

1   package cz.cuni.amis.pogamut.usar2004.agent.module.state;
2   
3   import cz.cuni.amis.pogamut.usar2004.agent.module.datatypes.VehicleType;
4   
5   /**
6    * State message representative for Ground vehicle.
7    *
8    * @author vejmanm
9    */
10  public class StateGround extends SuperState
11  {
12      public static final VehicleType type = VehicleType.GROUND_VEHICLE;
13  
14      /**
15       * Ctor. State type describes particular subject about which we want to know
16       * about. It is used to distinguish incoming message from the server.
17       */
18      public StateGround()
19      {
20          super(type);
21      }
22  
23      /**
24       * Note: parameter only available for robots of “GroundVehicle” type.
25       * Current front steer angle of the robot, in radians.
26       *
27       * @return Returns front steer angle value
28       */
29      public double getFrontSteer()
30      {
31          return lastMessage.getFrontSteer();
32      }
33  
34      /**
35       * Note: parameter only available for robots of “GroundVehicle” type.
36       * Current rear steer angle of the robot, in radians.
37       *
38       * @return Returns rear steer angle value.
39       */
40      public double getRearSteer()
41      {
42          return lastMessage.getRearSteer();
43      }
44  }