-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
LIDAR sensor coordinate system #8431
Comments
Hi, If you don't attach the Lidar to an other Actor (for example a vehicle), you have the global coordinate system in which the lidar is spawned, and a sub coordinate system of the Lidar. Example: Example 2: Example 3:
You would have to convert the Lidar points into the car coordinate system, and then in the global coordinate system.
With roll, pitch, and yaw it will be more complicated to convert, but are the same steps. |
If I dont care the z value and my lidar position relative to the vehicle is spawned at |
does the lidar coordinate system look like this? (x-> ahead, y->left, z->up) |
OK, I understand, thank you very much for your reply! Actually I use the semantic lidar from carla-ros-bridge. I want to get the lidar coordinate-> world coordiate transform at per frame, now I use the example code from carla-ros-bridge to get the transform : |
I only worked with the Python part of Carla and never used the carla-ros-bride before. In Python, you can use the actor instance to convert the transform values or create a Transform instance yourself. actor_transform = actor.get_transform()
new_location = carla.Location(
x=0.0,
y=0.0,
z=1.0
)
actor_transform.transform(new_location)
new_x, mew_y, new_z = new_location.x, new_location.y, new_location.z
# create your own carla Transform instance
carla_transform = carla.Transform(
carla.Location(
x=0.0,
y=0.0,
z=3.0),
carla.Rotation(
pitch=0.0,
yaw=0.0,
roll=0.0)
) You could test if something similar works in your code. Another way would be to convert it yourself, but for that you need to look up how to calculate it. |
OK, Thank you very much! It helps me a lot! |
I'd like to know what coordinate system the acquired LiDAR coordinates are relative to, and what is the relative position of this coordinate system to the orientation of the vehicle? Is there a detailed schematic to explain this?
The text was updated successfully, but these errors were encountered: