Skip to content

Remove usage of get_ordered_interfaces but update parameter validation instead #1816

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

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

Conversation

christophfroehlich
Copy link
Contributor

Fixes #116

Admittance_controller: There were some copies of the interface names without ever using them again.
forward_command_controller: I changed the joint and interface parameters to be read_only, then we don't need the ordering there at all. This might be a breaking change, but I don't think that dynamically changing that would have worked without notifying the CM?

@christophfroehlich christophfroehlich changed the title Remove unneccessary usage of get_ordered_interfaces Remove unneccessary usage of get_ordered_interfaces and update parameter validation Jul 15, 2025
@christophfroehlich christophfroehlich changed the title Remove unneccessary usage of get_ordered_interfaces and update parameter validation Remove usage of get_ordered_interfaces but update parameter validation instead Jul 15, 2025
Copy link

codecov bot commented Jul 15, 2025

Codecov Report

Attention: Patch coverage is 98.85057% with 1 line in your changes missing coverage. Please review.

Project coverage is 85.49%. Comparing base (76c07f9) to head (a5cf543).

Files with missing lines Patch % Lines
..._controllers/src/joint_group_effort_controller.cpp 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1816      +/-   ##
==========================================
- Coverage   85.66%   85.49%   -0.18%     
==========================================
  Files         123      123              
  Lines       12408    12275     -133     
  Branches     1056     1049       -7     
==========================================
- Hits        10629    10494     -135     
- Misses       1430     1432       +2     
  Partials      349      349              
Flag Coverage Δ
unittests 85.49% <98.85%> (-0.18%) ⬇️

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

Files with missing lines Coverage Δ
...dmittance_controller/src/admittance_controller.cpp 75.08% <ø> (+0.33%) ⬆️
...ollers/test/test_joint_group_effort_controller.cpp 98.00% <100.00%> (-0.44%) ⬇️
...s/test/test_load_joint_group_effort_controller.cpp 100.00% <100.00%> (ø)
...ommand_controller/src/forward_controllers_base.cpp 80.35% <ø> (-5.13%) ⬇️
...ontroller/test/test_forward_command_controller.cpp 98.21% <100.00%> (-0.45%) ⬇️
...ller/test/test_load_forward_command_controller.cpp 100.00% <100.00%> (ø)
...oad_multi_interface_forward_command_controller.cpp 100.00% <100.00%> (ø)
...est_multi_interface_forward_command_controller.cpp 98.79% <100.00%> (-0.34%) ⬇️
...ontrollers/src/joint_group_position_controller.cpp 66.66% <100.00%> (+5.12%) ⬆️
...lers/test/test_joint_group_position_controller.cpp 97.91% <100.00%> (-0.45%) ⬇️
... and 5 more

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@@ -57,7 +57,7 @@ class ForwardCommandControllerTest : public ::testing::Test
void SetUp();
void TearDown();

void SetUpController();
void SetUpController(const std::vector<rclcpp::Parameter> & parameters = {});
void SetUpHandles();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
void SetUpHandles();

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.

Update documentation for order of command_interfaces_
1 participant