| Package | org.MARS.robot.locomotion |
| Interface | public interface ILocomotion extends IElectronicDevice |
| Implementors | DifferentialSteering |
| Property | Defined by | ||
|---|---|---|---|
![]() | numberOfPorts : 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 | ||
| Method | Defined by | ||
|---|---|---|---|
![]() |
Get a certain IO port by its number
| IElectronicDevice | |
|
step():void
A function that is called on every step of the physics engine.
| ILocomotion | ||
| robot | property |
robot:Robot [write-only]The robot to be moved by the locomotion
Implementation public function set robot(value:Robot):void
| wheels | property |
wheels:Array [read-write]Implementation
public function get wheels():Array
public function set wheels(value:Array):void
| step | () | method |
public function step():voidA 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.