Trees  Indices  Help 


object +  Gear
Class that represents the combination of two motors on an axis to perform a carlike movement.




























Inherited from 


Inherited from 

Creates a gear instance.

Starts the forward rotation with preset speed. If duration = 0, the method returns immediately, while the rotation continues. Otherwise the method blocks until the duration is expired. Then the gear stops.

Starts the backward rotation with preset speed. If duration = 0, the method returns immediately, while the rotation continues. Otherwise the method blocks until the duration is expired. Then the gear stops. @param duration if greater than 0, the method blocks for the given duration (in ms) 
Starts turning left with right motor rotating forward and left motor rotating backward at preset speed. If duration = 0, the method returns immediately, while the rotation continues. Otherwise the method blocks until the duration is expired. Then the gear stops. @param duration if greater than 0, the method blocks for the given duration (in ms) 
Starts turning right with left motor rotating forward and right motor rotating backward at preset speed. If duration = 0, the method returns immediately, while the rotation continues. Otherwise the method blocks until the duration is expired. Then the gear stops. @param duration if greater than 0, the method blocks for the given duration (in ms) 
Starts turning to the left on an arc with given radius (in m) with preset speed. If duration = 0, the method returns immediately, while the rotation continues. Otherwise the method blocks until the duration is expired. Then the gear stops. If the radius is negative, turns left backwards.

Starts turning to the right on an arc with given radius (in m) with preset speed. If duration = 0, the method returns immediately, while the rotation continues. Otherwise the method blocks until the duration is expired. Then the gear stops. If the radius is negative, turns right backwards.

Stops the gear. (If gear is already stopped, returns immediately.) 
Sets the speed to the given value (arbitrary units). The speed will be changed to the new value at the next movement call only. The speed is limited to 0..100.

Trees  Indices  Help 

Generated by Epydoc 3.0.1 on Sun Apr 16 12:46:33 2017  http://epydoc.sourceforge.net 