Roboid Control for Python
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
DifferentialDrive Class Reference

Detailed Description

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
 

Member Function Documentation

◆ SetWheelVelocity()

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()

Update (   self,
  currentTimeMs,
  recursive = True 
)


The documentation for this class was generated from the following file: