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

Sensor publish a pointcloud2 msg to ROS

asked 2017-01-27 04:18:00 -0500

farhatm gravatar image


is there any 3D LiDAR sensors in Gazebo which publish a pointcloud2 msg to ROS?

thx a lot

edit retag flag offensive close merge delete


This is probably more a Gazebo question (and thus more suited for, but let's see whether someone here has a suggestion.

gvdhoorn gravatar image gvdhoorn  ( 2017-01-27 05:55:17 -0500 )edit

Yes i know. I asked the same question in Gazebosim forum. but maybe someone has any idea here.

farhatm gravatar image farhatm  ( 2017-01-27 07:21:10 -0500 )edit

Hm. cross-posting is not really nice.

Could you at least post the link to your GazeboSim Answers question?

gvdhoorn gravatar image gvdhoorn  ( 2017-01-27 07:42:59 -0500 )edit

you can use "Block Laser" plugin, but last time I used it it was pretty resource hungry.

jodafo gravatar image jodafo  ( 2017-01-27 08:02:33 -0500 )edit
Rufus gravatar image Rufus  ( 2020-10-19 20:38:10 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2020-10-19 20:37:24 -0500

Rufus gravatar image

You can consider velodyne's implementation which extends the default gazebo_ros_block_laser to publish PointCloud2

Just run

sudo apt install ros-melodic-velodyne-gazebo-plugins

and replace, in your model.sdf, with

edit flag offensive delete link more

Question Tools



Asked: 2017-01-27 04:18:00 -0500

Seen: 1,102 times

Last updated: Oct 19 '20