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

dartsim: Fix sign convention error with contact surface motion velocities #556

Merged
merged 2 commits into from
Sep 28, 2023

Conversation

azeey
Copy link
Contributor

@azeey azeey commented Sep 28, 2023

🦟 Bug fix

Fixes gazebosim/gz-sim#2008

Needed by gazebosim/gz-sim#2178

Summary

The implementation of contact constraints in the upstream version of dart uses a different sign due to the order of operands in a cross product. See dart 6.10 fork vs dart 6.13 upstream. This PR inverts the sign for velocities in the first and second friction directions if it detects that the upstream version of DART is being used. See also gazebo-forks/dart#33

This also enables a test that was accidentally disabled when we transitioned to common tests. The DART_HAS_CONTACT_SURFACE define is necessary to run the surface velocity tests.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

…ties

This also enables a test that wasn't running due to a missing define.

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
@github-actions github-actions bot added the 🎵 harmonic Gazebo Harmonic label Sep 28, 2023
@azeey azeey added beta Targeting beta release of upcoming collection bug Something isn't working labels Sep 28, 2023
@azeey azeey self-assigned this Sep 28, 2023
@codecov
Copy link

codecov bot commented Sep 28, 2023

Codecov Report

Merging #556 (e5dea0e) into gz-physics7 (cc90439) will decrease coverage by 0.04%.
The diff coverage is 0.00%.

❗ Current head e5dea0e differs from pull request most recent head 6de0392. Consider uploading reports for the commit 6de0392 to get more accurate results

@@               Coverage Diff               @@
##           gz-physics7     #556      +/-   ##
===============================================
- Coverage        76.15%   76.11%   -0.04%     
===============================================
  Files              140      140              
  Lines             7793     7797       +4     
===============================================
  Hits              5935     5935              
- Misses            1858     1862       +4     
Files Coverage Δ
dartsim/src/SimulationFeatures.cc 47.59% <0.00%> (-1.18%) ⬇️

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
@azeey
Copy link
Contributor Author

azeey commented Sep 28, 2023

Updated to pre4. CI was green on Linux before the pre4 update, so I'll go ahead and merge.

@azeey azeey merged commit 2f14e8b into gazebosim:gz-physics7 Sep 28, 2023
3 of 8 checks passed
@azeey azeey deleted the fix_surface_velocity_direction branch September 28, 2023 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta Targeting beta release of upcoming collection bug Something isn't working 🎵 harmonic Gazebo Harmonic
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants