#include <MotionModule.h>
Public Member Functions | |
DiffDrive (int argc, const char *argv[]) | |
Default constructor. | |
~DiffDrive () | |
Default destructor. | |
virtual ResourcePlate | getPlate () const =0 |
Gets the plate of the resource. | |
virtual void | setWheelCommands (Decimal leftAngVel, Decimal rightAngVel)=0 |
Sets the angular velocities of the left and right wheels. | |
virtual DiffDriveEncoderReading | getEncoders ()=0 |
Gets the DiffDriveEncoderReading of the encoders of the left and right wheels. | |
DiffDrivePar * | getPar () |
Gets the DiffDrive pointer parameters. | |
Protected Member Functions | |
MotionModuleTState | _providedLocStep () |
void | _providedLocSet (MotionModuleState state) |
void | _providedSetCommands (Decimal drive, Decimal turnrate) |
Protected Attributes | |
MipAlgorithms::DiffDriveOdometer * | _odometer |
DiffDriveEncoderReading | _prevEncoder |
DiffDriveEncoderReading | _currEncoder |
DiffDrivePar * | _ddPar |
DiffDriveVar * | _ddVar |
MipResources::DiffDrive::DiffDrive | ( | int | argc, | |
const char * | argv[] | |||
) |
Default constructor.
MipResources::DiffDrive::~DiffDrive | ( | ) |
Default destructor.
MotionModuleTState MipResources::DiffDrive::_providedLocStep | ( | ) | [protected, virtual] |
Implements MipResources::MotionModule.
void MipResources::DiffDrive::_providedLocSet | ( | MotionModuleState | state | ) | [protected, virtual] |
void MipResources::DiffDrive::_providedSetCommands | ( | Decimal | drive, | |
Decimal | turnrate | |||
) | [protected, virtual] |
Implements MipResources::MotionModule.
virtual ResourcePlate MipResources::DiffDrive::getPlate | ( | ) | const [pure virtual] |
Gets the plate of the resource.
Implements MipResources::Unicycle.
Implemented in MipResources::Korebot, MipResources::KorebotROS, and MipResources::WebotsKoremot.
virtual void MipResources::DiffDrive::setWheelCommands | ( | Decimal | leftAngVel, | |
Decimal | rightAngVel | |||
) | [pure virtual] |
Sets the angular velocities of the left and right wheels.
leftAngVel | Angular velocity to drive the left wheel. | |
rightAngVel | Angular velocity to drive the right wheel. |
Implemented in MipResources::Korebot, MipResources::KorebotROS, and MipResources::WebotsDiffDrive.
virtual DiffDriveEncoderReading MipResources::DiffDrive::getEncoders | ( | ) | [pure virtual] |
Gets the DiffDriveEncoderReading of the encoders of the left and right wheels.
Implemented in MipResources::Korebot, MipResources::KorebotROS, and MipResources::WebotsDiffDrive.
DiffDrivePar* MipResources::DiffDrive::getPar | ( | void | ) | [inline, virtual] |
Gets the DiffDrive pointer parameters.
Reimplemented from MipResources::MotionModule.
DiffDrivePar* MipResources::DiffDrive::_ddPar [protected] |
DiffDriveVar* MipResources::DiffDrive::_ddVar [protected] |