6namespace RoboidControl {
43 virtual void SetTwistSpeed(
float forward,
float yaw)
override;
60 float pitch = 0.0F,
float roll = 0.0F);
A two-wheeled Propulsion method.
Definition DifferentialDrive.h:17
virtual float GetAngularVelocity() override
Calculate the angular velocity of the roboid based on the wheel velocities.
Definition DifferentialDrive.cpp:91
float wheelDiameter
Definition DifferentialDrive.h:82
float wheelSeparation
Definition DifferentialDrive.h:83
virtual Polar GetVelocity() override
Calculate the linear velocity of the roboid based on the wheel velocities.
Definition DifferentialDrive.cpp:75
virtual void SetTwistSpeed(float forward, float yaw) override
Controls the motors through forward and rotation speeds.
Definition DifferentialDrive.cpp:50
DifferentialDrive()
Default constructor.
Definition DifferentialDrive.cpp:7
float rpsToMs
Definition DifferentialDrive.h:85
void SetDimensions(float wheelDiameter, float wheelSeparation)
Definition DifferentialDrive.cpp:24
void SetMotorTargetSpeeds(float leftSpeed, float rightSpeed)
Set the target speeds of the motors directly.
Definition DifferentialDrive.cpp:35
virtual void SetVelocity(Polar velocity)
Definition DifferentialDrive.cpp:71
A Motor is a Thing which can move parts of the Roboid.
Definition Motor.h:12
The Propulsion module for a Roboid is used to move the Roboid in space.
Definition Propulsion.h:18
Definition Accelerometer.h:7
Definition AbsoluteEncoder.h:5