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

How to display 3D Map in rviz

asked 2022-06-02 02:23:35 -0500

Tockey gravatar image

Hello,all. I am a Japanese student.

I want to display the 3D Map in rviz.

But I don't know how to do it.

The 3D Map data file is "cloud.ply".

Is it possible to open this data with rviz?

Please give me some advice. I’m sorry for the poor English.

Thank you in advance!

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

answered 2022-06-03 13:10:44 -0500

cristinaluna gravatar image

Hi Tockey, maybe you're looking for this:

Visualize a .ply file with a pointcloud in RVIZ

edit flag offensive delete link more
0

answered 2022-06-04 01:40:19 -0500

fmrico gravatar image

updated 2022-06-04 01:44:16 -0500

You should create a node that opens the file and publish the point cloud to a PointCloud2 topic. Then, visualize this topic in RViz.

You could read the file with pcl::io::loadPLYFile to obtain a pcl::PointCloud<pcl::PointXYZRGB>, then transform it and publish the result.

Best

edit flag offensive delete link more

Question Tools

Stats

Asked: 2022-06-02 02:23:35 -0500

Seen: 773 times

Last updated: Jun 04 '22