MipResources::Korebot Class Reference
[Motion module]

Represents an Koremotor differential drive. More...

#include <Korebot.h>

Inheritance diagram for MipResources::Korebot:

MipResources::DiffDrive MipResources::Unicycle MipResources::MotionModule MipResources::Resource MIPObject

List of all members.

Public Member Functions

 Korebot (int argc, const char *argv[])
 Default constructor.
 ~Korebot ()
 Destructor.
ResourcePlate getPlate () const
 Gets the plate.
void setWheelCommands (Decimal leftAngVel, Decimal rightAngVel)
 Sets the angular velocities of the left and right wheels.
DiffDriveEncoderReading getEncoders ()
 Gets the DiffDriveEncoderReading of the encoders of the left and right wheels.
void resetEncoders ()
 Sets to 0 the encoders of the left and right wheels.

Protected Attributes

KorebotPar_korePar
KorebotVar_koreVar


Detailed Description

Represents an Koremotor differential drive.

Author:
Antonio Franchi
Todo:
options for korebot
Todo:
change name in koremotor
Todo:
provide reset encoders?

Constructor & Destructor Documentation

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

Default constructor.

Parameters:
argc Argc.
argv Argv.

MipResources::Korebot::~Korebot (  ) 

Destructor.


Member Function Documentation

ResourcePlate MipResources::Korebot::getPlate (  )  const [inline, virtual]

Gets the plate.

Implements MipResources::DiffDrive.

void MipResources::Korebot::setWheelCommands ( Decimal  leftAngVel,
Decimal  rightAngVel 
) [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.

Implements MipResources::DiffDrive.

DiffDriveEncoderReading MipResources::Korebot::getEncoders (  )  [virtual]

Gets the DiffDriveEncoderReading of the encoders of the left and right wheels.

Returns:
DiffDriveEncoderReading.

Implements MipResources::DiffDrive.

void MipResources::Korebot::resetEncoders (  ) 

Sets to 0 the encoders of the left and right wheels.


Member Data Documentation

Parameters, implemented class.

Variables, implemented class.


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

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