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

Provide a way to set the optical frame convention used for rendering sensors #488

Open
azeey opened this issue Dec 11, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@azeey
Copy link
Contributor

azeey commented Dec 11, 2024

Desired behavior

Currently, Gazebo uses the +x forward convention for all rendering sensors. This was done to keep the same behavior as Gazebo Classic. However, this is at odds with the convention in ROS, which is +z forward. Users run into this issue (e.g. #29) and the current workaround is to set a static transform in ROS to create a separate optical frame. There's an old PR in gazebosim/ros_gz#257 to add a dedicated publisher, but I think it would be best if Gazebo itself provided a way to set the convention used.

Implementation suggestion

We could do one of the following:

  1. Add an SDFormat tag to all rendering sensors that sets whether the +z convention should be used.
  2. Add an SDFormat under <sensor> that sets whether the +z convention should be used. This would be easier since we'd only modify one SDFormat description file, but it would affect all sensors
  3. One of the two options above, but the tag would allow setting a custom transformation matrix.
@azeey azeey added the enhancement New feature or request label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Inbox
Development

No branches or pull requests

1 participant