-
Notifications
You must be signed in to change notification settings - Fork 335
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
Transform3D scale does not affect arrow length in C++ #6544
Comments
This is by design: we're not using the transform's scale as the axis length because in a environment where 1.0 means e.g. millimeters and you're working with kilometers this would make the axis too small. Instead, we heuristically determine the The good news is that in the next release it will be easy to override this:
The later has already landed on main and the former is about to go in :) |
Closing this as won't fix because the proposed solution of using the scale for transform axis length has shortcomings as described. Hope the upcoming Please re-open if you have counter suggestions! |
It's good to hear the ability to control the heuristic is going into the next release. Is there any workaround I can implement in the version I have to shrink the size of the published transforms? As it stands, the visualization of the trajectory above is not useful given the auto scaling makes the axes very large compared to the motion in the trajectory. Can I add a fake pinhole camera to control this indirectly? |
Using a smaller scale will already work since it shouldn't affect the heuristic and will shrink the arrows. Only problem of course is that this then also shrinks everything at and below the transform :/ Likely a better alternative would be to just draw arrows manually using the |
Describe the bug
The arrow length of published Transform3D does not respect the scale parameter that is passed in when logged using the C++ API. The same functionality appears to work on the python side.
To Reproduce
Steps to reproduce the behavior:
This is the code I used to see the issue:
Expected behavior
The scale in the viewer should reflect what scale was published with the transform.
Screenshots
Desktop (please complete the following information):
Ubuntu 22.04
Rerun version
rerun_py 0.15.1 [rustc 1.74.0 (79e9716c9 2023-11-13), LLVM 17.0.4] x86_64-unknown-linux-gnu release-0.15.1 7dedf88, built 2024-04-11T14:47:41Z
The text was updated successfully, but these errors were encountered: