Open matlabbe opened 3 years ago
The issue reported upstream: https://bitbucket.org/DataspeedInc/velodyne_simulator/issues/26/inverted-cloud-width-and-height-causing
Another workaround without recompiling the plugin is to use organized_cloud=true
with the plugin, like this:
<xacro:include filename="$(find velodyne_description)/urdf/VLP-16.urdf.xacro"/>
<xacro:VLP-16 parent="base_laser_mount" name="velodyne" topic="velodyne_points" gpu="true" organize_cloud="true">
<origin xyz="0.025 0 0.175" rpy="0 0 0" />
</xacro:VLP-16>
Here is a backtrace from gdb:
The bug happens when converting the PointCloud2 message in PCL templated cloud version. It is crashing here.
The point cloud width/height/row_step are wrong. This bug seems coming from this commit in velodyne gazebo plugin. A solution is to invert the width and height values here to :