-
Notifications
You must be signed in to change notification settings - Fork 5
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
sdformat_to_mjcf: set friction parameter #70
Conversation
Boxes sliding with different friction coefficients Signed-off-by: Steve Peters <[email protected]>
Apply friction coefficient when converting to mjcf geometry. Add test for friction. Add missing doc-string to converter. Signed-off-by: Steve Peters <[email protected]>
Signed-off-by: Steve Peters <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #70 +/- ##
=======================================
Coverage 98.84% 98.85%
=======================================
Files 21 21
Lines 1992 2008 +16
=======================================
+ Hits 1969 1985 +16
Misses 23 23
Continue to review full report at Codecov.
|
Signed-off-by: Steve Peters <[email protected]>
62a42a6
to
b9138c4
Compare
I don't understand why b9138c4 didn't fix the coverage complaint |
Signed-off-by: Steve Peters <[email protected]>
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.
LGTM! Just a couple of minor comments.
Signed-off-by: Steve Peters <[email protected]>
Signed-off-by: Steve Peters <[email protected]>
🎉 New feature
Part of #12.
Summary
Mujoco supports three friction parameters for a given geom as an array:
[sliding_friction, torsional_friction, rolling_friction]
. The pull request maps the//surface/friction/ode/mu
parameter to thesliding_friction
value. I've added a test and an example world with sliding boxes of varying friction coefficients.Test it
sdformat_to_mjcf/tests/test_add_geometry.py
test.sdformat_to_mjcf/tests/resources/friction_demo.sdf
gazebo --verbose sdformat_to_mjcf/tests/resources/friction_demo.sdf
sdformat_to_mjcf/tests/resources/friction_demo.sdf
to mjcf withsdformat2mjcf sdformat_to_mjcf/tests/resources/friction_demo.sdf friction_demo_converted.xml
and simulated it with MuJoCo.Checklist
codecheck
passed (See contributing)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.