ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Unable to visualize segmented pointcloud in rviz

asked 2011-12-26 21:36:51 -0500

karthik gravatar image

updated 2016-10-24 09:02:16 -0500

ngrennan gravatar image

Hi,

I used the segmentation code in the http://pointclouds.org/documentation/tutorials/planar_segmentation.php to segment the pointclouds published by the kinect.

I just have the inliers into the resulting cloud and assign NAN to the rest of the points in cloud. I saved the resulting file in a pcd file and tried to view that using pcd_viewer which works fine.

But when i try to visualize the same on the rviz i get the following error

[ WARN] [1324985289.408678181]: MessageFilter [target=/openni_depth_frame ]: Discarding message from [/segment_pcl] due to empty frame_id.  This message will only print once.

I searched for the solution and came to know that the header should be set for the node. I didn't get information on how to do that. Can some one help me with this. It would be lot better to visualize things on rviz than storing the pcd files and use pcd_viewer.

Thanks, Karthik

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2011-12-26 23:39:50 -0500

joq gravatar image

A frame ID is a string defined via the tf package. To display your point cloud in context with other messages, rviz needs a frame_id in the message Header to transform those data into the fixed frame.

You could just make up a frame ID to publish and select it as the rviz fixed frame, but following the REP-0105 naming conventions probably will work better.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-12-26 21:36:51 -0500

Seen: 1,514 times

Last updated: Dec 26 '11