-
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
Remove overly cautious warning (#869) #1374
Conversation
refers to #869 |
Codecov Report
@@ Coverage Diff @@
## master #1374 +/- ##
==========================================
- Coverage 57.27% 57.27% -0.01%
==========================================
Files 366 366
Lines 27432 27427 -5
==========================================
- Hits 15711 15708 -3
+ Misses 11721 11719 -2
|
Thanks for this PR! I think rather than just removing the warning, we should remove the entire limit check. As it is right now in this PR, the function will quit without allowing the rest position to be set outside the limits. However, there might be a legitimate use case where the rest position is outside of the limits, where the passive dynamics will clamp the joint down onto its joint limit. For that reason, I would suggest removing all of lines 1470-1474. |
Also with that change in behavior, I think it would be smart to set up a simple unit test. The unit test could be as simple as a link attached to the world by a revolute joint where the revolute joint has some lower position limit, and its spring rest position is a lower value than its position limit (note that the spring stiffness should be something positive). Then the unit test can simulate the system for a second or two and check if the link comes to rest at its lower position limit. |
@mxgrey Your suggestions all sound good to me. I think we can merge this PR and address your suggestions as a separate PR. |
To be honest I think this PR on its own is problematic because it removes a warning without removing behavior that is likely to surprise users. If we merge it in as-is, we risk the possibility that we forget to change this problematic behavior. |
Agree with you, guys. Silent return doesn't look good. I'll add a test for the behavior. |
Remove overly cautious warning
Before creating a pull request
clang-format
(N/A)Before merging a pull request
CHANGELOG.md
(N/A)