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

How to visualize PointCloud2 in rviz

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

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
1

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

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
1

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

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
0

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

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

Question Tools

1 follower

Stats

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

Seen: 6,746 times

Last updated: Sep 21 '18