sim.robot2D
Class Robot

java.lang.Object
  extended by SimplePortrayal2D
      extended by sim.physics2D.physicalObject.PhysicalObject2D
          extended by sim.physics2D.physicalObject.MobileObject2D
              extended by sim.robot2D.Robot

public class Robot
extends MobileObject2D


Field Summary
 
Fields inherited from class sim.physics2D.physicalObject.MobileObject2D
coefficientOfFriction, coefficientOfStaticFriction, mass, massMomentOfInertia
 
Fields inherited from class sim.physics2D.physicalObject.PhysicalObject2D
coefficientOfRestitution, index, physicsState, shape
 
Constructor Summary
Robot()
           
 
Method Summary
protected  void backup()
           
protected  void faceTowards(Angle globalAngle)
           
protected  Angle getAngle(Double2D vector)
          Gives the angle of the vector (i.e.
protected  Double2D globalFromLocal(Double2D localCoordinate)
           
protected  void goTo(Double2D globalDestination)
           
protected  Double2D localFromGlobal(Double2D globalCoordinate)
           
protected  void moveForward(double speed)
           
protected  void stop()
           
 
Methods inherited from class sim.physics2D.physicalObject.MobileObject2D
addForce, addFrictionForce, addTorque, getAngularVelocity, getCoefficientOfFriction, getCoefficientOfStaticFriction, getForceAccumulator, getMass, getMassInverse, getMassMomentOfInertiaInverse, getTorqueAccumulator, getVelocity, resetLastPose, restorePose, setAngularVelocity, setCoefficientOfFriction, setCoefficientOfStaticFriction, setMass, setShape, setVelocity, updatePose
 
Methods inherited from class sim.physics2D.physicalObject.PhysicalObject2D
draw, getCoefficientOfRestitution, getIndex, getOrientation, getPosition, getShape, handleCollision, setCoefficientOfRestitution, setIndex, setPose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Robot

public Robot()
Method Detail

localFromGlobal

protected Double2D localFromGlobal(Double2D globalCoordinate)

globalFromLocal

protected Double2D globalFromLocal(Double2D localCoordinate)

getAngle

protected Angle getAngle(Double2D vector)
Gives the angle of the vector (i.e. vector (1, 1) gives PI / 4)


faceTowards

protected void faceTowards(Angle globalAngle)

moveForward

protected void moveForward(double speed)

goTo

protected void goTo(Double2D globalDestination)

stop

protected void stop()

backup

protected void backup()