37 int main(
int argc,
char* argv[])
46 cout <<
"Usage : " << argv[0] <<
" <IP> <port> " << endl;
53 bool isOutObs, hardwareError;
55 laser.doProcessSimple(isOutObs, outObs, hardwareError);
62 mrpt::make_aligned_shared<opengl::CPlanarLaserScan>();
64 obj->setColor(0, 0, 1);
65 obj->setName(
"scan_TIM561");
67 ptr_scene->insert(
obj);
69 win3D.unlockAccess3DScene();
72 while (win3D.isOpen())
74 laser.doProcessSimple(isOutObs, outObs, hardwareError);
76 ptr_scene = win3D.get3DSceneAndLock();
79 ptr_scene->getByName(
"scan_TIM561"));
82 win3D.unlockAccess3DScene();
84 std::this_thread::sleep_for(20ms);
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.