Ask Your Question

How to visualize PointCloud2 in rviz

asked 2017-03-27 00:08:04 -0500

Albertx gravatar image

I have a BAG file, XXX.bag

I started roscore and rosbag play XXX.bag. Then I opened rviz.

I added a PointCloud2

But I got an error Transform[sender=unknow] For frame [velodyne] fixed frame [map] doesn't exist

My global options has fixed frame map

I am new to ROS. I don't understand any of these error messages.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2017-03-27 02:37:35 -0500

The problem is that you have left the fixed frame to map. RViz doesn't know where to place the point cloud, since the map -> velodyne transform doesn't exist. So, either use the static_transform_publisher in tf to publish that transform, or just change the frame in rviz to velodyne.

edit flag offensive delete link more

answered 2017-03-27 02:33:17 -0500

angeltop gravatar image

Change the RViz fixed frame to the frame of the pointcloud.

You can find the frame of the pointcould with:

rostopic echo -n 1 POINTCLOUD_TOPIC | grep frame_id
edit flag offensive delete link more

answered 2018-09-21 08:14:40 -0500

Farid gravatar image

(fixed frame MUST be assigned to "velodyne". In a separate terminal:

$ rosrun rviz rviz -f velodyne

In Rviz:

To visualize /scan topic:

Displays -> Add -> By topic -> LaserScan

To visualize /velodyne_points topic:

Displays -> Add -> By topic -> PointCloud2
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-03-27 00:08:04 -0500

Seen: 4,305 times

Last updated: Sep 21 '18