[Galactic] Velodyne Gazebo Plugins is missing some data on Rviz2?
Issue #31
new
Hello,
I am currently stuck in a specific scenario where I am trying to understand the data coming out from velodyne_gazebo_plugins
. The plugin is currently able to produce the data points in Gazebo and can be visualized without any problem. But when I am trying to visualize the same in Rviz2, the visualization data did not match. I am attaching the respective screenshots and the corresponding plugin configuration below.
Gazebo Screenshot
Rviz2 Screenshot
Rviz2 Config for topic visulaization
Topic: /velodyne_points
Depth: 5
History Policy: Keep Last
Reliability: Best Effort
Durability: Volatile
Filter Size: 10
Respective URDF config
<!-- Gazebo requires the velodyne_gazebo_plugins package -->
<gazebo reference="velodyne">
<sensor type="ray" name="Velodyne-VLP16">
<pose>0 0 0 0 0 0</pose>
<visualize>false</visualize>
<update_rate>10</update_rate>
<ray>
<scan>
<horizontal>
<samples>440</samples>
<resolution>1</resolution>
<min_angle>-3.1415926535897931</min_angle>
<max_angle>3.1415926535897931</max_angle>
</horizontal>
<vertical>
<samples>16</samples>
<resolution>1</resolution>
<min_angle>-0.26179938779</min_angle>
<max_angle>0.26179938779</max_angle>
</vertical>
</scan>
<range>
<min>0.3</min>
<max>130</max>
<resolution>0.001</resolution>
</range>
<noise>
<type>gaussian</type>
<mean>0.0</mean>
<stddev>0.0</stddev>
</noise>
</ray>
<!-- <plugin name="gazebo_ros_laser_controller" filename="libgazebo_ros_velodyne_gpu_laser.so"> -->
<plugin name="velodyne_plugin" filename="libgazebo_ros_velodyne_laser.so">
<ros>
<namespace>/</namespace>
<remapping>~/out:=velodyne_points</remapping>
</ros>
<frame_name>velodyne</frame_name>
<min_range>-3.1415926535897931</min_range>
<max_range>3.1415926535897931</max_range>
<gaussian_noise>0.008</gaussian_noise>
<organize_cloud>true</organize_cloud>
</plugin>
</sensor>
</gazebo>
I would like to understand why gazebo and rviz produce different visualizations. It would be helpful if there is an easier solution to solve this issue.
Please share your insights on this.
Thank you.