Question

I've searched here about this question, but seems no one have this question.

How can I draw with PCL visualizer a set of 3D points stored in a C++ ?

The vector it's filled of structs like this:

struct point {

 float x;
 float y;
 float z;
};

How can I draw this set of points using PCL in a window? At every elaboration of vector, the PCL window will be updated with new points of interest in the vector.

I'm on Visual C++ 2010, Win7 64bit...I've correctly installed PCL library and visual c++ enviromental variables/linker/etc to use PCL.

Can someone help me?

Was it helpful?

Solution

Just define pcl::PointXYZ pt, and pt.x=point.x, pt.y=point.y, pt.z=point.z then apply PointView to show your point clouds. this is very essential part in PCL

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top