Draw/overlay a point in the PCL viewer

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Draw/overlay a point in the PCL viewer

bugmaker
I would like to mark the centroid of the cloud with some point (overlay) symbol in the PCL viewer, so that I can see the centroid point in the viewer at all times when moving the camera. I looked into viewer.add... functionality but didn't find any option for a point.
Reply | Threaded
Open this post in threaded view
|

Re: Draw/overlay a point in the PCL viewer

PG1337
What about a simple small (colored) sphere, representing the centroid?

bool addSphere (const PointT ¢er, double radius, double r, double g, double b, const std::string id="sphere", int viewport=0)
also have a look at:
bool updateSphere (const PointT ¢er, double radius, double r, double g, double b, const std::string &id="sphere")

Example code:
viewer->addSphere(pcl::PointXYZ(point.x,point.y,point.z) , 0.015 , 0.0 , 1.0 , 1.0 "sphere1");

Reply | Threaded
Open this post in threaded view
|

Re: Draw/overlay a point in the PCL viewer

bugmaker
This was a very good idea, it worked . Thank you very much for the tip