|
rec::robotino::api2 C interface
|
In "rec/robotino/api2/c/Odometry.h" you can find functions for reading Robotino's bumper. More...
Go to the source code of this file.
Macros | |
| #define | INVALID_ODOMETRYID -1 |
Typedefs | |
| typedef int | OdometryId |
Functions | |
| DLLEXPORT OdometryId | Odometry_construct () |
| DLLEXPORT BOOL | Odometry_destroy (OdometryId id) |
| DLLEXPORT BOOL | Odometry_setComId (OdometryId id, ComId comId) |
| DLLEXPORT BOOL | Odometry_readings (OdometryId id, double *x, double *y, double *phi, unsigned int *sequence) |
| DLLEXPORT float | Odometry_x (OdometryId id) |
| DLLEXPORT float | Odometry_y (OdometryId id) |
| DLLEXPORT float | Odometry_phi (OdometryId id) |
| DLLEXPORT BOOL | Odometry_set (OdometryId id, float x, float y, float phi) |
In "rec/robotino/api2/c/Odometry.h" you can find functions for reading Robotino's bumper.
Use Odometry_construct() to create a new odometry object. Associate the odometry object with a com object using Odometry_setComId(). Use Odometry_open() to open the odometry. Use Odometry_close() to open the odometry. Use Odometry_isOpened() to check if the odometry is opened. Use Odometry_isClosed() to check if the odometry is closed.
| #define INVALID_ODOMETRYID -1 |
Invalid OdometryId is -1
| typedef int OdometryId |
OdometryId
| DLLEXPORT OdometryId Odometry_construct | ( | ) |
Construct an odometry object
| DLLEXPORT BOOL Odometry_destroy | ( | OdometryId | id | ) |
Destroy the odometry object assigned to id
| id | The id of the odometry object to be destroyed |
| DLLEXPORT float Odometry_phi | ( | OdometryId | id | ) |
| id | The id of the odometry object to be destroyed |
| DLLEXPORT BOOL Odometry_set | ( | OdometryId | id, |
| float | x, | ||
| float | y, | ||
| float | phi | ||
| ) |
Set Robotino's odoemtry to the given coordinates
| id | The id of the odometry object to be destroyed |
| x | Global x position in mm |
| y | Global y position in mm |
| phi | Global phi orientation in degrees |
| DLLEXPORT BOOL Odometry_setComId | ( | OdometryId | id, |
| ComId | comId | ||
| ) |
Associated a odometry object with a communication interface, i.e. binding the odometry to a specific Robotino
| DLLEXPORT float Odometry_x | ( | OdometryId | id | ) |
| id | The id of the odometry object to be destroyed |
| DLLEXPORT float Odometry_y | ( | OdometryId | id | ) |
| id | The id of the odometry object to be destroyed |
1.8.11