|
rec::robotino::api2 C interface
|
In "rec/robotino/api2/c/Bumper.h" you can find functions for reading Robotino's bumper. More...
Go to the source code of this file.
Macros | |
| #define | INVALID_BUMPERID -1 |
Typedefs | |
| typedef int | BumperId |
Functions | |
| DLLEXPORT BumperId | Bumper_construct () |
| DLLEXPORT BOOL | Bumper_destroy (BumperId id) |
| DLLEXPORT BOOL | Bumper_setComId (BumperId id, ComId comId) |
| DLLEXPORT BOOL | Bumper_value (BumperId id) |
| DLLEXPORT int | Bumper_num_objects (void) |
In "rec/robotino/api2/c/Bumper.h" you can find functions for reading Robotino's bumper.
Use bumper_construct() to create a new bumper object. Associate the bumper object with a com object using bumper_setComId(). Use bumper_value() to read the bumper's state.
| #define INVALID_BUMPERID -1 |
Invalid BumperId is -1
| typedef int BumperId |
BumperId
| DLLEXPORT BumperId Bumper_construct | ( | ) |
Construct an Bumper object
| DLLEXPORT BOOL Bumper_destroy | ( | BumperId | id | ) |
Destroy the Bumper object assigned to id
| id | The id of the Bumper object to be destroyed |
Associated a Bumper object with a communication interface, i.e. binding the Bumper to a specific Robotino
| DLLEXPORT BOOL Bumper_value | ( | BumperId | id | ) |
Get the current state of the bumper.
| id | The bumper id. |
1.8.11