85 unsigned int _port = 2111);
100 bool& outThereIsObservation,
102 bool& hardwareError);
162 #endif // CLMS100ETH_H This "software driver" implements the communication protocol for interfacing a SICK LMS100 laser scan...
bool turnOn()
This method must be called before trying to get a laser scan.
bool decodeScanDataCfg(std::istringstream &stream)
bool turnOff()
This method could be called manually to stop communication with the device.
This class allows loading and storing values and vectors of different types from a configuration text...
void roughPrint(char *msg)
bool decodeScan(char *buf, mrpt::obs::CObservation2DRangeScan &outObservation)
mrpt::poses::CPose3D m_sensorPose
bool decodeScanCfg(std::istringstream &stream)
void loadConfig_sensorSpecific(const mrpt::utils::CConfigFileBase &configSource, const std::string &iniSection)
Load sensor pose on the robot, or keep the default sensor pose.
void doProcess()
This method should be called periodically.
GLsizei const GLchar ** string
#define DEFINE_GENERIC_SENSOR(class_name)
This declaration must be inserted in all CGenericSensor classes definition, within the class declarat...
This is the base, abstract class for "software drivers" interfaces to 2D scanners (laser range finder...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
void initialize()
Initialize the sensor according to the parameters previously read in the configuration file...
A "CObservation"-derived class that represents a 2D range scan measurement (typically from a laser sc...
bool decodeLogIn(char *msg)
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
mrpt::comms::CClientTCPSocket m_client
A TCP socket that can be connected to a TCP server, implementing MRPT's CStream interface for passing...
void doProcessSimple(bool &outThereIsObservation, mrpt::obs::CObservation2DRangeScan &outObservation, bool &hardwareError)
This function acquire a laser scan from the device.
void sendCommand(const char *cmd)
unsigned int m_scanFrequency
CLMS100Eth(std::string _ip=std::string("192.168.0.1"), unsigned int _port=2111)
Constructor.
virtual ~CLMS100Eth()
Destructor.
void setSensorPose(const mrpt::poses::CPose3D &_pose)
A method to set the sensor pose on the robot.
void generateCmd(const char *cmd)
Add the start and end character.