simulator
Class RobotState

java.lang.Object
  |
  +--simulator.RobotState

class RobotState
extends java.lang.Object

Contains information about position/velocity of agent


Field Summary
(package private)  int behavior
          Contains actual behavior we are executing (it's use for changing robot color)
(package private)  Position massCenter
          Contains actual position of the mass robot center
(package private)  Position massCenterVel
          Contains actual velocity of agents
(package private)  double relativePos
          Contains relative position of robot sensor in respenct of the bar mass center
(package private)  double resultForce
          Result force that the bar and support apply to robot
(package private)  double sensor1Length
          Contain actual length of sensor 1
(package private)  double sensor2Length
          Contain actual length of sensor 2
(package private)  double xAngle
          Contains angle rotation about x axle (but is the same of the y axle and the perpendicular of the bar)
 
Constructor Summary
RobotState(Position p, double a, Position v, double r, double f)
          Initilize actual position and other information of the robot agent
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

massCenter

Position massCenter
Contains actual position of the mass robot center

xAngle

double xAngle
Contains angle rotation about x axle (but is the same of the y axle and the perpendicular of the bar)

massCenterVel

Position massCenterVel
Contains actual velocity of agents

relativePos

double relativePos
Contains relative position of robot sensor in respenct of the bar mass center

sensor1Length

double sensor1Length
Contain actual length of sensor 1

sensor2Length

double sensor2Length
Contain actual length of sensor 2

resultForce

double resultForce
Result force that the bar and support apply to robot

behavior

int behavior
Contains actual behavior we are executing (it's use for changing robot color)
Constructor Detail

RobotState

public RobotState(Position p,
                  double a,
                  Position v,
                  double r,
                  double f)
Initilize actual position and other information of the robot agent
Parameters:
p - the actual position
a - the angle
v - the actual velocity
r - relative position of robot sensor in respect of bar
f - result force that bar and support apply to robot