rec::robotino::api2 C++ interface
|
Access to Robotino's (optional) laser rangefinder. More...
#include <LaserRangeFinder.h>
Public Member Functions | |
LaserRangeFinder (const ComId &id) | |
void | setLaserRangeFinderNumber (int number) |
int | laserRangeFinderNumber () const |
void | setComId (const ComId &id) |
LaserRangeFinderReadings | readings () const |
virtual void | scanEvent (const LaserRangeFinderReadings &scan) |
Public Member Functions inherited from rec::robotino::api2::ComObject | |
ComObject () | |
virtual | ~ComObject () |
ComId | comId () const |
Static Public Member Functions | |
static unsigned int | numLaserRangeFinders () |
Friends | |
class | LaserRangeFinderImpl |
Additional Inherited Members | |
Protected Attributes inherited from rec::robotino::api2::ComObject | |
ComId | _comID |
Access to Robotino's (optional) laser rangefinder.
int rec::robotino::api2::LaserRangeFinder::laserRangeFinderNumber | ( | ) | const |
Get the current camera number.
nothing |
|
static |
LaserRangeFinderReadings rec::robotino::api2::LaserRangeFinder::readings | ( | ) | const |
Get the current readings.
nothing |
|
virtual |
Called when new scan data is available.
scan | The sensor readings. |
void rec::robotino::api2::LaserRangeFinder::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::LaserRangeFinder::setLaserRangeFinderNumber | ( | int | number | ) |
Sets the number of this rangefinder device.
Set the number of this rangefinder to number. The default rangefinder number is 0. Setting the rangefinder number only makes sense when your Robotino is equipped with more than one rangefinder.
number | The rangefinder number. Range [0; numLaserRangeFinders()-1]. When setting number < 0 no rangefinder is selected. |
RobotinoException | if the given input number is out of range. RobotinoException if given com object is invalid. |