#include <RemoteKhepera.h>
Public Member Functions | |
RemoteKhepera (int argc, const char *argv[]) | |
Default constructor. | |
~RemoteKhepera () | |
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. | |
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) |
bool | updatedScan (Scan &s) |
bool | updatedScan (Scan &s, MotionModuleTState &state) |
bool | updatedState (MotionModuleTState &state, Time &timeStamp) |
Get the current State associated with the input time. | |
bool | updatedState (MotionModuleTState &state) |
Get the current State associated with the input time. | |
bool | updatedLastState (MotionModuleTState &state, Time &timeStamp, const Decimal &delta) |
Gets the last state of the robot in that moment. | |
bool | updatedLastState (MotionModuleTState &state, const Decimal &delta) |
Gets the last state of the robot in that moment. | |
void | receive () |
Ignore this function. | |
void | receiveUDP () |
Receive function using listener UDP. | |
void | receiveROS () |
Receive function using ROS primitives. | |
void | _syncroTime () |
Syncronize the measurement times. | |
RangeSensPar * | rangeSensPar () |
Gets the parameters of the URG04LX. |
MipResources::RemoteKhepera::RemoteKhepera | ( | int | argc, | |
const char * | argv[] | |||
) |
Default constructor.
MipResources::RemoteKhepera::~RemoteKhepera | ( | ) |
Destructor.
ResourcePlate MipResources::RemoteKhepera::getPlate | ( | ) | const [inline, virtual] |
void MipResources::RemoteKhepera::startScan | ( | unsigned int | num | ) | [virtual] |
void MipResources::RemoteKhepera::stopScan | ( | ) | [virtual] |
UnicyclePar * MipResources::RemoteKhepera::unicyclePar | ( | ) | [virtual] |
Gets velocity.
drive | Current linear velocity drive (m/s). | |
turnrate | Current turnrate (rad/s). |
Reimplemented from MipResources::MobileRob.
Pose MipResources::RemoteKhepera::getPose | ( | void | ) | [virtual] |
MotionModuleTState MipResources::RemoteKhepera::getMotionState | ( | ) | [virtual] |
void MipResources::RemoteKhepera::setPose | ( | Pose | p | ) | [virtual] |
bool MipResources::RemoteKhepera::setMotionState | ( | MotionModuleState | state, | |
bool | setPastTimeStamp = false , |
|||
Time | pastTimeStamp = Time() | |||
) | [virtual] |
bool MipResources::RemoteKhepera::updatedScan | ( | Scan & | s | ) | [virtual] |
bool MipResources::RemoteKhepera::updatedScan | ( | Scan & | s, | |
MotionModuleTState & | state | |||
) | [virtual] |
bool MipResources::RemoteKhepera::updatedState | ( | MotionModuleTState & | state, | |
Time & | timeStamp | |||
) | [virtual] |
Get the current State associated with the input time.
[in] | &timeStamp | Time to be associated |
[out] | &state | State associated with input time |
Reimplemented from MipResources::MobileRob.
bool MipResources::RemoteKhepera::updatedState | ( | MotionModuleTState & | state | ) | [virtual] |
Get the current State associated with the input time.
[out] | &state | State associated with input time |
Reimplemented from MipResources::MobileRob.
bool MipResources::RemoteKhepera::updatedLastState | ( | MotionModuleTState & | state, | |
Time & | timeStamp, | |||
const Decimal & | delta | |||
) | [virtual] |
Gets the last state of the robot in that moment.
[in] | &timeStamp | Time to be searched |
[in] | &delta | Delta threshold to assign that last odometry data might be associated with timeStamp |
[out] | &state | Output of the function. State associated with time It searches the last TState stored and it check if it is close to the given timeStamp. A threshold delta is given in order to check the close constraint |
Reimplemented from MipResources::MobileRob.
bool MipResources::RemoteKhepera::updatedLastState | ( | MotionModuleTState & | state, | |
const Decimal & | delta | |||
) | [virtual] |
Gets the last state of the robot in that moment.
[in] | &timeStamp | Time to be searched |
[in] | &delta | Delta threshold to assign that last odometry data might be associated with actual time |
[out] | &state | Output of the function. State associated with time It searches the last TState stored and it check if it is close to the given timeStamp. A threshold delta is given in order to check the close constraint |
Reimplemented from MipResources::MobileRob.
void MipResources::RemoteKhepera::receive | ( | ) |
void MipResources::RemoteKhepera::receiveUDP | ( | ) |
Receive function using listener UDP.
void MipResources::RemoteKhepera::receiveROS | ( | ) |
Receive function using ROS primitives.
void MipResources::RemoteKhepera::_syncroTime | ( | ) |
Syncronize the measurement times.
This method adjusts the time assignment in case of reverse parsing of messages (e.g. in receiveROS) Since every message sets its own time as the time executing of the software, the time are taken in a wrong way
RangeSensPar * MipResources::RemoteKhepera::rangeSensPar | ( | ) | [virtual] |
Gets the parameters of the URG04LX.
Reimplemented from MipResources::MobileRob.