I would like to extract pipes from 3D point cloud by using sac segmentation.
I created a toy example (I was following mainly
created two programmes: one to generate a point cloud of the pipe(with given
radius and length) and the other to read data from the external file and do
a cylinder segmentation. As a result, I get the following situation (these
cylinders are aligned, but there is an offset in origins, the second
cylinder is generated by pcl_viewer)
Can you give me hints what should I do in order to have a match between
those two point clouds? I should add also that I implemented this also in
ROS, and the same thing is happening with real data, so I don't have
alignment, I have the offset.