-
Notifications
You must be signed in to change notification settings - Fork 106
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
Joint axis mimic constraints: add sdf
element
#1166
Conversation
Signed-off-by: Aditya <aditya050995@gmail.com>
Signed-off-by: Aditya <aditya050995@gmail.com>
Signed-off-by: Aditya <aditya050995@gmail.com>
Codecov Report
@@ Coverage Diff @@
## main #1166 +/- ##
==========================================
+ Coverage 87.42% 87.45% +0.02%
==========================================
Files 133 133
Lines 17295 17452 +157
==========================================
+ Hits 15121 15262 +141
- Misses 2174 2190 +16
|
Signed-off-by: Aditya <aditya050995@gmail.com>
Signed-off-by: Aditya <aditya050995@gmail.com>
Updated PR according to the proposal to include an |
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.
I updated the proposal in gazebosim/sdf_tutorials@829aa86, so I commented on how the specification could be updated to reflect that.
Signed-off-by: Aditya <aditya050995@gmail.com>
I just added a |
Signed-off-by: Aditya <aditya050995@gmail.com>
Signed-off-by: Aditya <aditya050995@gmail.com>
d20c23a
to
2d771ee
Compare
We can have an edge case where a joint tries to mimic itself. The |
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.
We can have an edge case where a joint tries to mimic itself. The
JointAxis
sdf element does not have access to the parentJoint
element's name (or element pointer), and hence that check cannot be implemented here. I've implemented it here : gazebosim/gz-physics@4dd1b21
We could also check in Joint.cc
just after loading the JointAxis
objects if each axis has a mimic
and confirm that the mimic's joint name doesn't match its own name. There are more extensive tests that could be done to confirm that it does match the name of an existing joint, but that shouldn't happen in Joint::Load
since not all joint will have been loaded yet.
Check that the specified leader axis name is valid and matches an existing JointAxis. Signed-off-by: Steve Peters <scpeters@openrobotics.org>
This is needed to reduce the literal string size in Embedded.cc and fix the windows build. Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
sdf
elementsdf
element
retargeted to harmonic / |
* Initialize variables directly in range-based for loop * Use local axis reference to simplify code * Use FindElement in test and assert result is non nullptr Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Joint::Load already checks for invalid self-mimics. Signed-off-by: Steve Peters <scpeters@openrobotics.org>
🎉 New feature
Summary
This PR adds a
<mimic joint="some_joint" multiplier="1" offset="0">
to joint axes i.e.<axis>
, meant to expose a way to mimic some other joint. Part of feature : gazebosim/sdf_tutorials#62, gazebosim/sdf_tutorials#80Test it
Added test cases to
JointAxis_TEST.cc
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.🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸