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

Height Map output

asked 2018-02-19 11:17:21 -0600

Karim Ahmt gravatar image

Hello,

Regarding Velodyne lidar obstacles detection. I am using the velodyne_height_map. I was seeking to be able to detect the distance between the sensor and the obstacle and the angle at which the obstacle located. by using the publish command I was able to see the format. if you can help me to be able to understand more of the format of the output data packet.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-02-21 19:23:43 -0600

joq gravatar image

updated 2018-02-21 19:24:46 -0600

The velodyne_obstacles topic is a sensor_msgs/PointCloud2. I believe it's in the frame of reference of the input point cloud, which is normally the device frame, velodyne. The correct frame_id will be in the message header.

The Euclidean distance from any point in that cloud to the device, is the square root of the sum of squares of its x, y, and z coordinates.

edit flag offensive delete link more

Comments

thank you for your answer, but how could I know from the published topic which ones are the x ,y,and z coordinates. as the single data packet is 32 digit no letters .

thank you.

Karim Ahmt gravatar image Karim Ahmt  ( 2018-02-21 19:31:23 -0600 )edit

PointCloud2 is a complex message containing multiple data fields for each point. They "always" include x, y, and z, but may include other data. See: http://wiki.ros.org/pcl/Overview

joq gravatar image joq  ( 2018-02-21 19:35:39 -0600 )edit

thank you very much, appreciate your support

Karim Ahmt gravatar image Karim Ahmt  ( 2018-02-23 12:16:07 -0600 )edit

If this answers your question, please click the check mark above.

joq gravatar image joq  ( 2018-02-23 13:28:19 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2018-02-19 11:17:21 -0600

Seen: 873 times

Last updated: Feb 21 '18