MipResources::DiffDrive Class Reference
[Motion module]

Differential drive Motion Module (Pure virtual). More...

#include <MotionModule.h>

Inheritance diagram for MipResources::DiffDrive:

MipResources::Unicycle MipResources::MotionModule MipResources::Resource MIPObject MipResources::Korebot MipResources::KorebotROS MipResources::WebotsDiffDrive MipResources::WebotsKoremot

List of all members.

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


Detailed Description

Differential drive Motion Module (Pure virtual).

Author:
Antonio Franchi
Todo:

Constructor & Destructor Documentation

MipResources::DiffDrive::DiffDrive ( int  argc,
const char *  argv[] 
)

Default constructor.

MipResources::DiffDrive::~DiffDrive (  ) 

Default destructor.


Member Function Documentation

MotionModuleTState MipResources::DiffDrive::_providedLocStep (  )  [protected, virtual]

void MipResources::DiffDrive::_providedLocSet ( MotionModuleState  state  )  [protected, virtual]

Todo:
Urgent, implement the check on erroneus ticks.

Implements MipResources::MotionModule.

void MipResources::DiffDrive::_providedSetCommands ( Decimal  drive,
Decimal  turnrate 
) [protected, virtual]

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.

Parameters:
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.

Returns:
DiffDriveEncoderReading.

Implemented in MipResources::Korebot, MipResources::KorebotROS, and MipResources::WebotsDiffDrive.

DiffDrivePar* MipResources::DiffDrive::getPar ( void   )  [inline, virtual]

Gets the DiffDrive pointer parameters.

Returns:
DiffDrive pointer parameters.

Reimplemented from MipResources::MotionModule.


Member Data Documentation


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

Generated on Mon Feb 20 07:01:13 2017 for MIP by  doxygen 1.5.6