-
Notifications
You must be signed in to change notification settings - Fork 56
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
Ahaffemayer/add panda collision #242
base: devel
Are you sure you want to change the base?
Ahaffemayer/add panda collision #242
Conversation
Hi ! This project doesn't usually accept pull requests on the main branch. |
for more information, see https://pre-commit.ci
…1/example-robot-data into ahaffemayer/add-panda-collision
d27fab3
to
3f8fbe1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I rebased on devel, this might help with CI.
I made a few comments, but also you should add a test
# Iterate through geometry objects in the collision model | ||
for geom_object in cmodel.geometryObjects: | ||
geometry = geom_object.geometry | ||
base_name = geom_object.name[:-1] # Remove the last character from the name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why remove that last character ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comes from the URDF parsing.
If for an urdf link we have several collision geometry objects, they'll be listed as object_0, object_1, ... . This is especially relevant for capsules where you find "link1_0", "link1_1", "link1_2" where one is a cylinder and the two other are spheres.
Here, we only want the name to be "link1_" without the number, so we get rid of the last one.
…1/example-robot-data into ahaffemayer/add-panda-collision
Co-authored-by: Guilhem Saurel <[email protected]>
Co-authored-by: Guilhem Saurel <[email protected]>
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
…1/example-robot-data into ahaffemayer/add-panda-collision
Thank you for the review, should be good to go now. |
Hello, here's a PR to have the panda robot with the capsules in its collision model directly in example robot data.
In this Pr is included:
I decided to have the hand and the fingers described as boxes here because it's more faithful to the real representation. However, on your input, I can change and transform it into capsules.
Here's a superposed view of the visual model (with meshes) and the collision model: