-
Notifications
You must be signed in to change notification settings - Fork 288
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
Bugfix/urdfparser #1064
Bugfix/urdfparser #1064
Conversation
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.
Looks good to me!
I have one nitpick though.
dart/utils/urdf/DartLoader.cpp
Outdated
case urdf::Joint::CONTINUOUS: | ||
{ | ||
singleDof.mPositionLowerLimits[0] = -math::constantsd::inf(); |
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: Could we comment the reason of this overwriting something like:
// We overwrite joint position limits to negative/positive infinities
// for "continuous" joint. This is because the URDF parser ignorantly
// reads joint limits or defaults to zero, which always should be
// infinity for "continuous" joint.
Codecov Report
@@ Coverage Diff @@
## release-6.5 #1064 +/- ##
===============================================
+ Coverage 56.57% 56.61% +0.03%
===============================================
Files 316 316
Lines 24387 24393 +6
===============================================
+ Hits 13797 13809 +12
+ Misses 10590 10584 -6
|
Uh oh. Sorry for dismissing reviews with minor updates. Updated |
Continuous Joints have been previously parsed with joint limits set to 0 resulting in incorrect behavior of the joint and relevant functions [For instance,
isCyclic()
].This PR corrects the parsing for these joints by setting the joint limits to negative/positive infinity.
To show the behavior:
Commit 456cca0 has a test to show that current implementation has a bug.
Commit 5eff95d provides a fix.
Commit 9d8d316 has the test to show the fix works.
Before creating a pull request
clang-format
Before merging a pull request
CHANGELOG.md