Skip to content

Patch bad-epsilon-for-zero-test libccd bug for Drake#23060

Merged
SeanCurtis-TRI merged 1 commit intoRobotLocomotion:masterfrom
SeanCurtis-TRI:PR_patch_libccd
Jun 2, 2025
Merged

Patch bad-epsilon-for-zero-test libccd bug for Drake#23060
SeanCurtis-TRI merged 1 commit intoRobotLocomotion:masterfrom
SeanCurtis-TRI:PR_patch_libccd

Conversation

@SeanCurtis-TRI
Copy link
Copy Markdown
Contributor

@SeanCurtis-TRI SeanCurtis-TRI commented Jun 2, 2025

Resolves #21673


This change is Reviewable

@SeanCurtis-TRI SeanCurtis-TRI added the release notes: fix This pull request contains fixes (no new features) label Jun 2, 2025
Copy link
Copy Markdown
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.

+(release notes: fix)

Reviewable status: needs platform reviewer assigned, needs at least two assigned reviewers

Copy link
Copy Markdown
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.

+@cohnt for feature review, please.

Reviewable status: LGTM missing from assignee cohnt, needs platform reviewer assigned, needs at least two assigned reviewers

Copy link
Copy Markdown
Contributor

@cohnt cohnt left a comment

Choose a reason for hiding this comment

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

Note that this PR does not fix #21234 -- I verified that bug is still present. So we're not completely out of the woods on FCL/libccd yet. But I tested one of the problematic instances in #21673 and verified that is working now, so this should be a big help already!

Aside from a question about where test cases should be put, :lgtm:

Reviewed 4 of 4 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: 1 unresolved discussion, needs platform reviewer assigned, needs at least two assigned reviewers


tools/workspace/ccd_internal/test/is_zero_uses_relative_epsilon_test.cc line 14 at r1 (raw file):

/* Unit test for the is_zero_uses_relative_epsilon.patch for ccd_internal. */
GTEST_TEST(LibCcdPatchTest, IsZeroUsesRelativeEpsilonTest) {

btw regarding testing here, I know that a bunch of tests were merged into FCL with this PR. Is this one of those tests? If so, why does it need to be duplicated? If not, should it be added to FCL as well?

I guess I'm just not sure where the different tests should be put.

Copy link
Copy Markdown
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.

+@sammy-tri for platform review, please.

Reviewable status: LGTM missing from assignee sammy-tri(platform)


tools/workspace/ccd_internal/test/is_zero_uses_relative_epsilon_test.cc line 14 at r1 (raw file):

Previously, cohnt (Thomas Cohn) wrote…

btw regarding testing here, I know that a bunch of tests were merged into FCL with this PR. Is this one of those tests? If so, why does it need to be duplicated? If not, should it be added to FCL as well?

I guess I'm just not sure where the different tests should be put.

This is the one test that could not be submitted to FCL.

  1. This test requires the patch.
  2. The patch hasn't merged into libccd yet.
  3. Even if the patch merged into libccd, FCL isn't ready to upgrade to current libccd where it would finally get access to the fix.
  4. So, Drake is the only place that brings the patch and FCL together in a way where this test can pass.

Copy link
Copy Markdown
Contributor

@cohnt cohnt 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: LGTM missing from assignee sammy-tri(platform)


tools/workspace/ccd_internal/test/is_zero_uses_relative_epsilon_test.cc line 14 at r1 (raw file):

Previously, SeanCurtis-TRI (Sean Curtis) wrote…

This is the one test that could not be submitted to FCL.

  1. This test requires the patch.
  2. The patch hasn't merged into libccd yet.
  3. Even if the patch merged into libccd, FCL isn't ready to upgrade to current libccd where it would finally get access to the fix.
  4. So, Drake is the only place that brings the patch and FCL together in a way where this test can pass.

That makes sense, thank you for explaining!

Copy link
Copy Markdown
Contributor

@sammy-tri sammy-tri left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 3 of 4 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all discussions resolved, LGTM from assignees sammy-tri(platform),cohnt

@SeanCurtis-TRI SeanCurtis-TRI merged commit 83ebced into RobotLocomotion:master Jun 2, 2025
9 of 10 checks passed
@SeanCurtis-TRI SeanCurtis-TRI deleted the PR_patch_libccd branch June 2, 2025 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release notes: fix This pull request contains fixes (no new features)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FCL bug in IK optimization with AddMinimumDistanceLowerBoundConstraint

3 participants