![]() |
Roboid Control for Python
|
A thing which can move itself using a differential drive system.
Inherits Thing.
Public Member Functions | |
__init__ (self, participant=None) | |
Create a new differential drive. | |
SetDriveDimensions (self, wheel_diameter, wheel_separation) | |
SetMotors (self, wheel_left, wheel_right) | |
SetWheelVelocity (self, speed_left, speed_right) | |
Directly specify the speeds of the motors @params speed_left The speed of the left wheel in degrees per second. | |
Update (self, currentTimeMs, recursive=True) | |
Public Attributes | |
wheel_radius | |
The radius of a wheel in meters. | |
wheel_separation | |
The distance between the wheels in meters. | |
wheel_left | |
wheel_right | |
angular_velocity_updated | |
SetWheelVelocity | ( | self, | |
speed_left, | |||
speed_right | |||
) |
Directly specify the speeds of the motors @params speed_left The speed of the left wheel in degrees per second.
Positive moves the robot in the forward direction. @params speed_right The speed of the right wheel in degrees per second. Positive moves the robot in the forward direction.
Update | ( | self, | |
currentTimeMs, | |||
recursive = True |
|||
) |