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

CollisionChecker accounts for non-floating bodies with floating joints #21315

Closed

Conversation

SeanCurtis-TRI
Copy link
Contributor

@SeanCurtis-TRI SeanCurtis-TRI commented Apr 16, 2024

Fixes #21215


This change is Reviewable

Copy link
Contributor

@calderpg-tri calderpg-tri left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 unresolved discussion, needs platform reviewer assigned, needs at least two assigned reviewers, missing label for release notes (waiting on @SeanCurtis-TRI)


planning/linear_distance_and_interpolation_provider.cc line 27 at r1 (raw file):

    const RigidBody<double>& body = plant.get_body(body_index);
    // We only grab the quaternions for floating bodies .
    if (body.is_floating() && body.has_quaternion_dofs()) {

This doesn't make sense to me. If you have a body with quaternion DoF that is not floating, this now guarantees that the interpolation and distance will be wrong.

Copy link
Collaborator

@jwnimmer-tri jwnimmer-tri left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 unresolved discussion, needs platform reviewer assigned, needs at least two assigned reviewers, missing label for release notes (waiting on @SeanCurtis-TRI)


planning/linear_distance_and_interpolation_provider.cc line 27 at r1 (raw file):

Previously, calderpg-tri wrote…

This doesn't make sense to me. If you have a body with quaternion DoF that is not floating, this now guarantees that the interpolation and distance will be wrong.

Agreed

Copy link
Contributor Author

@SeanCurtis-TRI SeanCurtis-TRI left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 unresolved discussion, needs platform reviewer assigned, needs at least two assigned reviewers, missing label for release notes (waiting on @SeanCurtis-TRI)


planning/linear_distance_and_interpolation_provider.cc line 27 at r1 (raw file):

Previously, jwnimmer-tri (Jeremy Nimmer) wrote…

Agreed

Oops. I pushed it the wrong direction. The goal wasn't to be more exclusive, it was to be more inclusive. My bad.

And the RigidBody api doesn't have an API for positions_start().

But, in the meantime, you can steal the test and call it good.

@SeanCurtis-TRI
Copy link
Contributor Author

This has served its purpose. I'm closing it.

@SeanCurtis-TRI SeanCurtis-TRI deleted the PR_issue_21215 branch April 17, 2024 01:38
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.

SceneGraphCollisionChecker throws when models have a QuaternionFloatingJoint (for a non-floating body)
3 participants