| Package | org.MARS.robot.locomotion |
| Class | public class DifferentialSteering |
| Inheritance | DifferentialSteering AbstractElectronicDevice |
| Implements | IElectronicDevice, ILocomotion |
The wheel system must have the following properties:
The IO Port configuration is as follows:
See also
| Property | Defined by | ||
|---|---|---|---|
![]() | numberOfPorts : Number
Get the number of IO ports in the device.
| AbstractElectronicDevice | |
| robot : Robot
[write-only]
The robot to be moved by the locomotion
| DifferentialSteering | ||
| wheels : Array | DifferentialSteering | ||
| Method | Defined by | ||
|---|---|---|---|
|
DifferentialSteering(wheelsArray:Array)
Creates a Differential Steering locomotion system with the wheels
provided.
| DifferentialSteering | ||
![]() |
Get a certain IO port by its number
| AbstractElectronicDevice | |
|
step():void
A function that is called on every step of the physics engine.
| DifferentialSteering | ||
| 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
| DifferentialSteering | () | constructor |
public function DifferentialSteering(wheelsArray:Array)
Creates a Differential Steering locomotion system with the wheels
provided. Use the LocomotionUtil for easier definition of the wheel system.
wheelsArray:Array — - array containing the two-wheel system
|
— Error whenever the wheel system is not as required
|
See also
| 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.