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 controller node options args to be able to set controller specific node arguments #1713

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

Conversation

saikishor
Copy link
Member

A different approach of #1712

    robot_controller_spawner = Node(
        package="controller_manager",
        executable="spawner",
        arguments=["diffbot_base_controller", "--param-file", controller_config, "--controller-ros-args", '--ros-args -r /diffbot_base_controller/cmd_vel:=/cmd_vel'],
    )

Fixes: #1711

Copy link

codecov bot commented Aug 23, 2024

Codecov Report

Attention: Patch coverage is 78.78788% with 7 lines in your changes missing coverage. Please review.

Project coverage is 86.72%. Comparing base (84e85f9) to head (d92deda).

Files with missing lines Patch % Lines
controller_manager/src/controller_manager.cpp 80.00% 1 Missing and 2 partials ⚠️
controller_manager/controller_manager/spawner.py 50.00% 1 Missing and 1 partial ⚠️
...r_manager/test/test_controller/test_controller.cpp 50.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1713      +/-   ##
==========================================
- Coverage   86.79%   86.72%   -0.07%     
==========================================
  Files         116      116              
  Lines       10715    10749      +34     
  Branches      981      986       +5     
==========================================
+ Hits         9300     9322      +22     
- Misses       1062     1068       +6     
- Partials      353      359       +6     
Flag Coverage Δ
unittests 86.72% <78.78%> (-0.07%) ⬇️

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

Files with missing lines Coverage Δ
...r_manager/test/test_controller/test_controller.hpp 100.00% <ø> (ø)
controller_manager/test/test_spawner_unspawner.cpp 99.22% <100.00%> (+0.03%) ⬆️
controller_manager/controller_manager/spawner.py 70.31% <50.00%> (-0.66%) ⬇️
...r_manager/test/test_controller/test_controller.cpp 91.48% <50.00%> (-3.86%) ⬇️
controller_manager/src/controller_manager.cpp 77.26% <80.00%> (-0.22%) ⬇️

... and 1 file with indirect coverage changes

Copy link
Contributor

mergify bot commented Aug 23, 2024

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

Copy link
Contributor

@christophfroehlich christophfroehlich left a comment

Choose a reason for hiding this comment

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

I like, but needs some tests for it and advertisement in the release notes. We could also think of deprecating the "old way" #1712

Tested successfully with ros-controls/ros2_control_demos#577

Copy link
Member Author

@saikishor saikishor left a comment

Choose a reason for hiding this comment

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

Fix for compilation

controller_manager/src/controller_manager.cpp Outdated Show resolved Hide resolved
@saikishor
Copy link
Member Author

I like, but needs some tests for it and advertisement in the release notes. We could also think of deprecating the "old way" #1712

Tested successfully with ros-controls/ros2_control_demos#577

@christophfroehlich I've added the tests for this case and the release_notes.

Thank you!

Copy link
Contributor

@christophfroehlich christophfroehlich left a comment

Choose a reason for hiding this comment

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

thx

@saikishor saikishor force-pushed the add/controller/node_options_args branch from eab9879 to d92deda Compare September 17, 2024 20:44
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.

Remapping of topics via ros2_control_node is not possible any more
3 participants