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

how to map point cloud Data comming from serial port

asked 2020-09-14 11:44:01 -0500

MjdKassem gravatar image

I have a serial data frame, it contains some points defined at (X,Y,Z) and another information, i have received this frame in ROS, and extracted the data related to point cloud, now how can i visualize these points in RVIZ, and if i want to implement slam later what is the data type involved to encapsulate these points

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-09-15 22:51:36 -0500

Josh Whitley gravatar image

Your best bet is to populate a sensor_msgs/PointCloud2 and publish it. A topic with this message type can natively be visualized in Rviz. If you're looking for an example of populating this type of message, check out any of the lidar drivers such as the Velodyne driver for melodic.

edit flag offensive delete link more

Comments

thank you, what is the purpose of converting from sensor_msgs/PointCloud2 to PCL datatypes

MjdKassem gravatar image MjdKassem  ( 2020-09-19 14:24:20 -0500 )edit
1

Purely for convenience of editing the data. PCL is not a requirement (see the ros2 version for an example without PCL).

Josh Whitley gravatar image Josh Whitley  ( 2020-09-19 18:58:14 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-09-14 11:44:01 -0500

Seen: 159 times

Last updated: Sep 15 '20