-
Notifications
You must be signed in to change notification settings - Fork 4
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
MJCF to SDF: Improved inertia #48
Conversation
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Codecov Report
@@ Coverage Diff @@
## main #48 +/- ##
==========================================
+ Coverage 97.77% 97.79% +0.02%
==========================================
Files 16 16
Lines 628 636 +8
==========================================
+ Hits 614 622 +8
Misses 14 14
Continue to review full report at Codecov.
|
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
I resolved conflicts but am getting a test failure locally |
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
@@ -23,7 +23,7 @@ | |||
COLLISION_NUMBER = 0 | |||
|
|||
|
|||
def mjcf_geom_to_sdf(geom): | |||
def mjcf_body_to_sdf(geom): |
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.
This converting geoms, so I think it should be mjcf_geom_to_sdf
. The one in
link.py
should be mjcf_body_to_sdf
. Is this an accidental
search/replace?
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.
@@ -7,7 +7,7 @@ | |||
<joint type="free"/> | |||
<inertial pos="0 1 0" mass="2" fullinertia="2 2 2 0 0 0"/> | |||
<geom type="box" pos="0.1 0.3 0.2" size=".1 .2 .3" rgba="0 .9 0 1"/> | |||
<geom name="cylinder" type="capsule" pos="1 2 3" mass="1" fromto="0 -0.06 0 0 0.06 0" size="0.05"/> | |||
<geom name="cylinder" type="capsule" mass="1" fromto="0 -0.06 0 0 0.06 0" size="0.05"/> |
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.
Is this named cylinder
intentially even though it's a capsule
?
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.
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
…nrobotics/gz-mujoco into ahcorde/mjcf2sdf/inertia
tests are failing. |
@azeey Fixed |
physics.named.model.body_iquat[body.name][0], | ||
physics.named.model.body_iquat[body.name][1], | ||
physics.named.model.body_iquat[body.name][2], | ||
physics.named.model.body_iquat[body.name][3])) |
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.
nit: I would prefer to have a helper function in sdformat_mjcf_utils/sdf_utils.py that assists with this to ensure that we get the quaternion wxyz
ordering right. Maybe wxyz_list_to_quat
?
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.
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
…nrobotics/gz-mujoco into ahcorde/mjcf2sdf/inertia
Signed-off-by: ahcorde ahcorde@gmail.com
🦟 Bug fix
Summary
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.