#include <RemoteRob.h>
Public Member Functions | |
RemoteRob (int argc, const char *argv[]) | |
Default constructor. | |
~RemoteRob () | |
Destructor. | |
ResourcePlate | getPlate () const |
Gets the plate. | |
Scan | scan () |
Gets a scan. | |
void | startScan (unsigned int num) |
start a continuous scan | |
void | stopScan () |
Stops a continuous scan. | |
void | startIR (unsigned int num) |
Starts a continuous ir. | |
void | stopIR () |
Starts a continuous ir. | |
UnicyclePar * | unicyclePar () |
Gets unicycle parameters. | |
void | velCmd (Decimal drive, Decimal turnrate) |
Sets velocity commands. | |
void | getVel (Decimal &drive, Decimal &turnrate) |
Gets velocity. | |
Pose | getPose (void) |
Get the pose. | |
MotionModuleTState | getMotionState () |
Get the motion state. | |
void | setPose (Pose p) |
Sets the pose. | |
bool | setMotionState (MotionModuleState state, bool setPastTimeStamp=false, Time pastTimeStamp=Time()) |
Sets the state. | |
bool | storedScan (Scan &s, Time timeout) |
Gets the stored scan. | |
bool | updatedScan (Scan &s) |
Gets an updated scan in metres. | |
bool | updatedScan (Scan &s, MotionModuleTState &state) |
Gets an updated scan and the state of the robot in that moment. | |
void | RRReceive () |
Ignore this function. |
MipResources::RemoteRob::RemoteRob | ( | int | argc, | |
const char * | argv[] | |||
) |
Default constructor.
MipResources::RemoteRob::~RemoteRob | ( | ) |
Destructor.
ResourcePlate MipResources::RemoteRob::getPlate | ( | ) | const [inline, virtual] |
void MipResources::RemoteRob::startScan | ( | unsigned int | num | ) | [virtual] |
void MipResources::RemoteRob::stopScan | ( | ) | [virtual] |
void MipResources::RemoteRob::startIR | ( | unsigned int | num | ) |
Starts a continuous ir.
void MipResources::RemoteRob::stopIR | ( | ) |
Starts a continuous ir.
UnicyclePar * MipResources::RemoteRob::unicyclePar | ( | ) | [virtual] |
Gets velocity.
drive | Current linear velocity drive (m/s). | |
turnrate | Current turnrate (rad/s). |
Reimplemented from MipResources::MobileRob.
Pose MipResources::RemoteRob::getPose | ( | void | ) | [virtual] |
MotionModuleTState MipResources::RemoteRob::getMotionState | ( | ) | [virtual] |
void MipResources::RemoteRob::setPose | ( | Pose | p | ) | [virtual] |
bool MipResources::RemoteRob::setMotionState | ( | MotionModuleState | state, | |
bool | setPastTimeStamp = false , |
|||
Time | pastTimeStamp = Time() | |||
) | [virtual] |
Gets the stored scan.
This is a wrapper of RangeSens::currentScan.
s | A scan in which the current scan is copied. | |
timeout | Timeout. |
Reimplemented from MipResources::MobileRob.
bool MipResources::RemoteRob::updatedScan | ( | Scan & | s | ) | [virtual] |
Gets an updated scan in metres.
s | A scan in metres in which the current scan is copied, if return is true. |
Reimplemented from MipResources::MobileRob.
bool MipResources::RemoteRob::updatedScan | ( | Scan & | s, | |
MotionModuleTState & | state | |||
) | [virtual] |
Gets an updated scan and the state of the robot in that moment.
s | A scan in metres in which the current scan is copied, if return is true. |
Reimplemented from MipResources::MobileRob.
void MipResources::RemoteRob::RRReceive | ( | ) | [inline] |