Skip to content
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

Add joint limiter interface plugins to enforce limits defined in the URDF #1526

Open
wants to merge 70 commits into
base: master
Choose a base branch
from

Conversation

saikishor
Copy link
Member

This PR includes the changes of the PR from @destogl #971, and on top of that it extends the proposed methods to be able to integrate and be able to provide an interface that will allow enforcing the joint limits in position, velocity, effort, acceleration, etc. The proposed interface can accept different types of data in the enforce methods with the help of templating and this can be helpful to extend to different applications in the future.

This PR is done as a part of #1466 to be able to integrate the limiters within the ResourceManager

Closes #971

Copy link

codecov bot commented May 7, 2024

Codecov Report

Attention: Patch coverage is 94.98408% with 63 lines in your changes missing coverage. Please review.

Project coverage is 88.47%. Comparing base (7374c43) to head (296f992).

Files with missing lines Patch % Lines
...s/include/joint_limits/joint_limiter_interface.hpp 32.50% 23 Missing and 4 partials ⚠️
joint_limits/src/joint_soft_limiter.cpp 87.50% 12 Missing and 4 partials ⚠️
joint_limits/src/joint_range_limiter.cpp 84.12% 5 Missing and 5 partials ⚠️
joint_limits/src/joint_limits_helpers.cpp 91.30% 2 Missing and 4 partials ⚠️
joint_limits/test/test_joint_soft_limiter.cpp 99.63% 0 Missing and 2 partials ⚠️
...limits/include/joint_limits/joint_soft_limiter.hpp 92.85% 1 Missing ⚠️
joint_limits/test/test_joint_limiter.hpp 98.18% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1526      +/-   ##
==========================================
+ Coverage   87.73%   88.47%   +0.74%     
==========================================
  Files         122      130       +8     
  Lines       13010    14199    +1189     
  Branches     1165     1215      +50     
==========================================
+ Hits        11414    12563    +1149     
- Misses       1165     1190      +25     
- Partials      431      446      +15     
Flag Coverage Δ
unittests 88.47% <94.98%> (+0.74%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...nt_limits/include/joint_limits/data_structures.hpp 100.00% <100.00%> (ø)
joint_limits/include/joint_limits/joint_limits.hpp 97.22% <100.00%> (-2.78%) ⬇️
.../include/joint_limits/joint_saturation_limiter.hpp 100.00% <100.00%> (ø)
joint_limits/src/joint_saturation_limiter.cpp 85.63% <100.00%> (+0.13%) ⬆️
joint_limits/test/test_joint_range_limiter.cpp 100.00% <100.00%> (ø)
...oint_limits/test/test_joint_saturation_limiter.cpp 91.23% <ø> (+0.28%) ⬆️
...oint_limits/test/test_joint_saturation_limiter.hpp 96.55% <100.00%> (ø)
...limits/include/joint_limits/joint_soft_limiter.hpp 92.85% <92.85%> (ø)
joint_limits/test/test_joint_limiter.hpp 98.18% <98.18%> (ø)
joint_limits/test/test_joint_soft_limiter.cpp 99.63% <99.63%> (ø)
... and 4 more

... and 1 file with indirect coverage changes

Copy link
Contributor

mergify bot commented May 11, 2024

This pull request is in conflict. Could you fix it @saikishor?

Copy link
Contributor

mergify bot commented Jul 4, 2024

This pull request is in conflict. Could you fix it @saikishor?

@saikishor saikishor force-pushed the add/sw_joint_limiter branch from 61a0949 to 876a52c Compare July 4, 2024 12:40
Copy link
Contributor

mergify bot commented Jul 21, 2024

This pull request is in conflict. Could you fix it @saikishor?

@@ -70,55 +70,58 @@ class JointLimiterInterface
// TODO(destogl): get limits from URDF
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is not needed anymore. Am I right? Do we want to get here limits from URDF? This might make sense to parse URDF limits also in the controller if this are required.

joint_limits/src/joint_limits_helpers.cpp Outdated Show resolved Hide resolved
joint_limits/src/joint_limits_helpers.cpp Show resolved Hide resolved
joint_limits/src/joint_range_limiter.cpp Outdated Show resolved Hide resolved
joint_limits/CMakeLists.txt Outdated Show resolved Hide resolved
joint_limits/CMakeLists.txt Outdated Show resolved Hide resolved
adriaroig and others added 28 commits December 15, 2024 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants