26 int main(
int argc,
char* argv[])
30 cout <<
"Usage : " << argv[0] <<
" <IP> <port> " << endl;
34 CLMS100Eth laser(
string(argv[1]), atoi(argv[2]));
37 bool isOutObs, hardwareError;
39 laser.doProcessSimple(isOutObs, outObs, hardwareError);
46 mrpt::make_aligned_shared<opengl::CPlanarLaserScan>();
48 obj->setColor(0, 0, 1);
49 obj->setName(
"scan_LMS100");
51 ptr_scene->insert(
obj);
53 win3D.unlockAccess3DScene();
56 while (win3D.isOpen())
58 laser.doProcessSimple(isOutObs, outObs, hardwareError);
60 ptr_scene = win3D.get3DSceneAndLock();
63 ptr_scene->getByName(
"scan_LMS100"));
66 win3D.unlockAccess3DScene();
68 std::this_thread::sleep_for(20ms);
This "software driver" implements the communication protocol for interfacing a SICK LMS100 laser scan...
Contains classes for various device interfaces.
GLsizei GLsizei GLuint * obj
This namespace contains representation of robot actions and observations.
This object renders a 2D laser scan by means of three elements: the points, the line along end-points...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
A "CObservation"-derived class that represents a 2D range scan measurement (typically from a laser sc...
The namespace for 3D scene representation and rendering.
Classes for creating GUI windows for 2D and 3D visualization.
void clear()
< Clear the scan
A graphical user interface (GUI) for efficiently rendering 3D scenes in real-time.