Closed SherlockSheep closed 4 years ago
You're right, the scan seems to be inversed, we will fix this for the next version of Webots that will be released soon.
The problem is actually due to the fact that the Webots and RVIZ coordinate systems are not equivalent. The Webots X-axis becomes -Y in RVIZ. The Webots Y-axis becomes Z in RVIZ. The Webots Z-axis becomes -X in RVIZ.
The coordinate system should be the same for the multi-lines and single-line lidars. What difference do you see between them?
@DavidMansolino Sorry my bad, I should post my screenshots.
This is how I placed Velodyne VLP-16:
This is how I placed HokuyoUtm30lx:
And I got these in rviz:
In the third picture,: z axis points toward the screen for the HokuyoUtm30lx rviz visualization. z axis points outward the screen for the VLP-16 rviz visualization.
When I used webots with ROS, I got mirroring Lidar output when I viewed the scan topic in rviz, as can be seen at 6:12 in video.
To make sure that the problem is not specific-sensor-related, I tried HokuyoUtm30lx and Sick LMS291, and I met the same problem. I wonder why this happens and how I can fix it.