10 #ifndef _CSICKTIM561ETH_2050101_H__
11 #define _CSICKTIM561ETH_2050101_H__
28 unsigned int _port = 2111);
44 bool& outThereIsObservation,
#define DEFINE_GENERIC_SENSOR(class_name)
This declaration must be inserted in all CGenericSensor classes definition, within the class declarat...
A TCP socket that can be connected to a TCP server, implementing MRPT's CStream interface for passing...
This class allows loading and storing values and vectors of different types from a configuration text...
This is the base, abstract class for "software drivers" interfaces to 2D scanners (laser range finder...
bool decodeLogIn(char *msg)
void loadConfig_sensorSpecific(const mrpt::config::CConfigFileBase &configSource, const std::string &iniSection)
Load sensor pose on the robot, or keep the default sensor pose.
bool decodeScan(char *buf, mrpt::obs::CObservation2DRangeScan &outObservation)
void setSensorPose(const mrpt::poses::CPose3D &_pose)
A method to set the sensor pose on the robot.
void initialize()
Initialize the sensor according to the parameters previously read in the configuration file.
virtual ~CSICKTim561Eth()
Deconstructor.
CSICKTim561Eth(std::string _ip=std::string("192.168.0.1"), unsigned int _port=2111)
Constructor.
void doProcessSimple(bool &outThereIsObservation, mrpt::obs::CObservation2DRangeScan &outObservation, bool &hardwareError)
This function acquire a laser scan from the device.
mrpt::comms::CClientTCPSocket m_client
mrpt::poses::CPose3D m_sensorPose
unsigned int m_scanFrequency
void roughPrint(char *msg)
bool turnOff()
This method could be called manually to stop communication with the device.
bool turnOn()
This method must be called before trying to get a laser scan.
bool decodeScanCfg(std::istringstream &stream)
void sendCommand(const char *cmd)
void generateCmd(const char *cmd)
bool rebootDev()
This method could be called manually to reboot the device.
void doProcess()
This method must be called periodically.
A "CObservation"-derived class that represents a 2D range scan measurement (typically from a laser sc...
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
GLsizei const GLchar ** string
Contains classes for various device interfaces.