Livox-SDK/livox_laser_simulation

run the simulation,rivz has pointcloud topic,but gazebo does not have laser light

sunnyow opened this issue · 2 comments

i have correctly install livox_sdk and livox_ros_driver
图片2
图片1

sdwyc commented

@sunnyow Hi, Excuse me! Have you solve the problem? I also encounter the similar problem.

This happens because in the urdf, the tag has been placed under the tag, so Gazebo does not parse it properly. This is ok for the plugin, since it is handling the ray casting rather than Gazebo, but as you noticed, it breaks the Gazebo visualization.
If you want to visualize the sensor rays in gazebo, you will need to copy the block so it is under the <sensor type="ray...> block. However, this will not quite match the non-uniform pattern of the plugin. It will visualize the rays as a uniform, multiray scan.

e.g. for the mid360, you would copy this block

and paste it so it is directly under this block

<sensor type="ray" name="laser_${name}">