ZeroSimROSUnity icon indicating copy to clipboard operation
ZeroSimROSUnity copied to clipboard

match unity-axis and ros-axis about rays about lidar-2D

Open OldPaddy opened this issue 2 years ago • 7 comments

The visualized lidar sensor hit places on Rviz are different from its places on Unity when I change Min Angle Degree to different value from initial "0". It worked very well when it still remains "0". I tried fix it. How do you think?

OldPaddy avatar Apr 14 '22 14:04 OldPaddy

@OldPaddy I'm not sure I understand the issue. Can you describe specifically how to setup an easy test case?

micahpearlman avatar Apr 14 '22 18:04 micahpearlman

@micahpearlman I'm sorry I didn't make it clear enough. I tested initial turtlebot3 scene like following image. In this case, I changed the "Min Angle Degree" with lidar-2d script to 90 degree. So the lidar FOV is from 90 to 360 degree. It doesn't match Unity and Rviz display.

Screenshot from 2022-04-15 12-06-14 Turtlebot3 tested scene. The display to the left is Unity, the right is Rviz. The upward direction on the image is forward direction.

OldPaddy avatar Apr 15 '22 03:04 OldPaddy

You can get the same result by manually adjusting the turtlebot definition.

In lidar-2d Transform, set Rotation to X=180, Y=180, Z=0 image

Result: image

alex-ssom avatar Apr 15 '22 17:04 alex-ssom

You can get the same result by manually adjusting the turtlebot definition by doing the following:

In lidar-2d Transform, set Rotation to X=180, Y=180, Z=0 image

Result: image

alex-ssom avatar Apr 15 '22 17:04 alex-ssom

@alex-ssom Thank you for your description. I think it's strange the places of the lidar-2d rays are mismatch.

Please let me know if my understanding is wrong.

OldPaddy avatar Apr 16 '22 05:04 OldPaddy

@OldPaddy thanks, works for me. Its indeed a bug in ZOLIDAR2D.cs

remco-r avatar May 04 '22 10:05 remco-r

这里是氨气同学的QQ邮箱,您的邮件我已收到,祝生活愉快~

anqitongxue avatar May 04 '22 10:05 anqitongxue