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

Absolem: Remove debug visuals #852

Conversation

peci1
Copy link
Collaborator

@peci1 peci1 commented Mar 30, 2021

There are some visuals we forgotten to remove on Absolem. They create annoying artifacts in the omnicamera. This PR removes the visuals (all of them were black cubes 0.5x0.5x0.5 cm I used to debug placement of the camera sensors).

Cameras without this PR:
absolem_unfixed

Cameras with this PR:
absolem_fixed

I based this PR on top of #851 . After merging #851, this will be just a single commit. Look at the last commit in this PR during review only.

peci1 added 30 commits March 29, 2021 19:32
… it doesn't matter as it only rotates a symmetrical cube visual.
No geometrical change (verified visually).
peci1 added 21 commits March 29, 2021 20:28
After this commit, the model.sdf can be exactly recreated by the update_robot_sdf script.

Until gazebosim/sdformat#525 gets merged, `ign sdf -p` does not account for the reduced joint transform when outputting sensors attached to lumped frames. But it copies `<sensor><pose>` verbatim, so I took the old values from SDF and put them temporarily in `<sensor><pose>` where they specify relative position of the sensor to base_link where they get lumped.

Printing of the resulting SDF memory model results in flipping one Euler notation, but it's a 100% equivalent transform. Here's a proof by Ignition Math:

Quaterniond initialized by (-2.19645, -1.5707963267948966, 0) has:
 - coefs: -0.629608 -0.321859 -0.629608 0.321859
 - Euler: -2.19645 -1.5708 0

Quaterniond initialized by (3.1415926535897931, -1.5707963267948966, 0.945143) has:
 - coefs: 0.629608 0.321859 0.629608 -0.321859
 - Euler: -2.19645 -1.5708 0

This proves that the one changed line in model.sdf means no practical change.
@peci1
Copy link
Collaborator Author

peci1 commented Mar 30, 2021

This would need a re-upload to Fuel.

@nkoenig nkoenig merged commit 7332e70 into osrf:absolem_visuals_fix Apr 1, 2021
@nkoenig nkoenig mentioned this pull request Apr 1, 2021
@peci1
Copy link
Collaborator Author

peci1 commented Apr 4, 2021

This PR has been replaced by #878 .

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.

2 participants