rec::robotino::com::LaserRangeFinder Class Reference

Access to Robotino's (optional) laser rangefinder. More...

#include <LaserRangeFinder.h>

List of all members.

Public Member Functions

void setComId (const ComId &id)
void connectToServer ()
void disconnectFromServer ()
void setAddress (const std::string &address)
std::string address () const
bool isConnected () const
void setRawDataCallbackEnabled (bool enable)
virtual void readingsCallback (const LaserRangeFinderReadings &scan)
virtual void rawDataCallback (const char *data, int dataSize)
virtual void error (const std::string &message)
virtual void log (const std::string &message)
virtual void connected ()
virtual void disconnected ()


Detailed Description

Access to Robotino's (optional) laser rangefinder.

Member Function Documentation

void rec::robotino::com::LaserRangeFinder::setComId ( const ComId id  ) 

Sets the associated communication object.

Parameters:
id The id of the associated communication object.
Exceptions:
RobotinoException If the given communication object doesn't provide a camera.

void rec::robotino::com::LaserRangeFinder::connectToServer (  ) 

Normally the LaserRangeFinder's data exchange client is connected to Robotino by calling Com::connect(). For debugging you might want to only connect to the LaserRangeFinder server on Robotino.

See also:
Com::connect

void rec::robotino::com::LaserRangeFinder::disconnectFromServer (  ) 

Normally the LaserRangeFinder's data exchange client is disconnected from Robotino by calling Com::disconnect(). For debugging you might want to only disconnect from the LaserRangeFinder server on Robotino.

See also:
Com::disconnect

void rec::robotino::com::LaserRangeFinder::setAddress ( const std::string &  address  ) 

Normally the address of the LaserRangeFinder server is given implicitly by calling Com::setAddress For debugging you might want to set the address explicitly.

See also:
Com::setAddress

void rec::robotino::com::LaserRangeFinder::setRawDataCallbackEnabled ( bool  enable  ) 

Enables/Disables the rawDataCallback and also disables/enables the readingsCallback. The rawDataCallback is disabled and the readingsCallback is enabled by default.

Parameters:
enable True to enable the rawDataCallback. False to disable the rawDataCallback.

virtual void rec::robotino::com::LaserRangeFinder::readingsCallback ( const LaserRangeFinderReadings scan  )  [virtual]

virtual void rec::robotino::com::LaserRangeFinder::rawDataCallback ( const char *  data,
int  dataSize 
) [virtual]

Use this callback to get the raw encoded rangefinder data. This data can be decoded by rec::core_lt::LaserScanMessage.

Parameters:
data The encoded data
dataSize The number of bytes in the data buffer.
See also:
setRawDataCallbackEnabled


The documentation for this class was generated from the following file:

Generated on Thu Dec 30 08:47:34 2010 for rec_robotino_com_c by  doxygen 1.5.5