Packageorg.MARS.robot.locomotion
Interfacepublic interface ILocomotion extends IElectronicDevice
ImplementorsDifferentialSteering

Defines the basic functionality of the locomotion system



Public Properties
 PropertyDefined by
 InheritednumberOfPorts : Number
Get the number of IO ports in the device.
IElectronicDevice
  robot : Robot
[write-only] The robot to be moved by the locomotion
ILocomotion
  wheels : Array
ILocomotion
Public Methods
 MethodDefined by
 Inherited
getPort(portNumber:Number):IOPort
Get a certain IO port by its number
IElectronicDevice
  
step():void
A function that is called on every step of the physics engine.
ILocomotion
Property detail
robotproperty
robot:Robot  [write-only]

The robot to be moved by the locomotion

Implementation
    public function set robot(value:Robot):void
wheelsproperty 
wheels:Array  [read-write]Implementation
    public function get wheels():Array
    public function set wheels(value:Array):void
Method detail
step()method
public function step():void

A function that is called on every step of the physics engine. It updates the physical state of the robot based on the state of the wheels, which is determined by the values of the input ports.