Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

OldPaddy
Copy link

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?

@micahpearlman
Copy link
Contributor

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

@OldPaddy
Copy link
Author

@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.

@ghost
Copy link

ghost commented Apr 15, 2022

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

@ghost
Copy link

ghost commented Apr 15, 2022

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

@OldPaddy
Copy link
Author

@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.

@remco-r
Copy link

remco-r commented May 4, 2022

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

@anqitongxue

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants