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

Cleanup collision/auxiliary shapes in urdf #280

Merged
merged 4 commits into from
Jul 14, 2020

Conversation

v4hn
Copy link
Member

@v4hn v4hn commented Mar 16, 2020

MoveIt recently changed its policy concerning empty collision geometries.
With these changes, the system will warn about visual geometry without associated collision geometries:

ros.moveit_core.robot_model.empty_collision_geometry: Link sensor_mount_link has visual geometry but no collision geometry. Collision geometry will be left empty. Fix your URDF file by explicitly specifying collision geometry.
ros.moveit_core.robot_model.empty_collision_geometry: Link double_stereo_link has visual geometry but no collision geometry. Collision geometry will be left empty. Fix your URDF file by explicitly specifying collision geometry.

This pull-request cleans up the PR2 descriptions and removes all useless auxiliary shapes to get rid of these warnings.

Additionally, KDL complains for a long time that the robot's root link must not contain an inertial specification. As the inertial values here are fictitious, I remove them too.

Lastly, the collision geometry of the kinect2 camera did not exist at all (it was practically disabled by a 5mm sphere). I added a bounding box instead, as arm motions with an attached object can indeed reach the spoiler.
Here's the before/after pictures for the last change:

pr2_head_mount_kinect2
pr2_kinect2_adjusted

@k-okada please review

@v4hn
Copy link
Member Author

v4hn commented Mar 16, 2020

CI in this repository is fully broken/outdated.
The request is about description changes only though, so CI would not pick up failures either way...

@k-okada k-okada mentioned this pull request Mar 17, 2020
These values are obviously fictitious (the whole link is...)
Additionally, KDL datastructures have been complaining about this for ages
because KDL does not support inertials for the model root (whatever that means).
MoveIt master recently changed its policy w.r.t. empty collision geometries.
The current version complains:

ros.moveit_core.robot_model.empty_collision_geometry: Link sensor_mount_link has visual geometry but no collision geometry. Collision geometry will be left empty. Fix your URDF file by explicitly specifying collision
geometry.
ros.moveit_core.robot_model.empty_collision_geometry: Link double_stereo_link has visual geometry but no collision geometry. Collision geometry will be left empty. Fix your URDF file by explicitly specifying collision geometry.

As these visuals are not helpful and do not add anything to the description, I just remove them.
to enable *some* collision checking.

It was not enabled at all before and it's barely in the workspace of the arms at all (without tool use).
So a rough bounding box is fine.
If one wants to see the frames, just enable the frame in RViz.
There is no need whatsoever to keep these in the description.
@v4hn
Copy link
Member Author

v4hn commented Mar 17, 2020

Thank you for fixing CI @k-okada, please review this now.

@v4hn
Copy link
Member Author

v4hn commented May 8, 2020

Ping @k-okada

@v4hn
Copy link
Member Author

v4hn commented Jul 1, 2020

@k-okada CI succeeded, although it reports it is still waiting for results.
Please merge this, it has been lying around for a while now.

Travis had quite a hick-up w.r.t. that issue lately. We have observed the same for a number of requests in the MoveIt repositories.

Copy link
Contributor

@k-okada k-okada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for late, LGTM.

@k-okada k-okada merged commit dbe88b6 into PR2:melodic-devel Jul 14, 2020
@v4hn
Copy link
Member Author

v4hn commented Jul 14, 2020 via email

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.

None yet

2 participants