rec::robotino::api2 C++ interface
|
Calculates motor velocities for the omni drive. More...
#include <OmniDrive.h>
Public Member Functions | |
OmniDrive (const ComId &id) | |
void | setComId (const ComId &id) |
void | setVelocity (float vx, float vy, float omega) |
void | getDriveLayout (double *rb, double *rw, double *fctrl, double *gear, double *mer) |
virtual void | driveLayoutChangedEvent (double rb, double rw, double fctrl, double gear, double mer) |
Public Member Functions inherited from rec::robotino::api2::ComObject | |
ComObject () | |
virtual | ~ComObject () |
ComId | comId () const |
Friends | |
class | OmniDriveImpl |
Additional Inherited Members | |
Protected Attributes inherited from rec::robotino::api2::ComObject | |
ComId | _comID |
Calculates motor velocities for the omni drive.
Directional and rotational coordinates are provided and velocities for the single motors are calculated.
|
virtual |
Called when the drive layout changes.
rb | Distance from robot center to wheel center in m. |
rw | Radius of the wheels in m. |
fctrl | Frequency of control loop measuring the speed in Hz. |
gear | Gear |
mer | Motor encoder resolution. |
void rec::robotino::api2::OmniDrive::getDriveLayout | ( | double * | rb, |
double * | rw, | ||
double * | fctrl, | ||
double * | gear, | ||
double * | mer | ||
) |
Retrieves the layout parameters of the robots drive system from the server.
rb | Distance from robot center to wheel center in m. |
rw | Radius of the wheels in m. |
fctrl | Frequency of control loop measuring the speed in Hz. |
gear | Gear |
mer | Motor encoder resolution. |
nothing. |
void rec::robotino::api2::OmniDrive::setComId | ( | const ComId & | id | ) |
Sets the associated communication object.
id | The id of the associated communication object. |
RobotinoException | if given id is invalid. |
void rec::robotino::api2::OmniDrive::setVelocity | ( | float | vx, |
float | vy, | ||
float | omega | ||
) |
vx | Velocity in x-direction in m/s |
vy | Velocity in y-direction in m/s |
omega | Angular velocity in rad/s |