Skip to content

Fix ERROR stream + check only active controllers for multiple chained controllers#3556

Merged
MarqRazz merged 4 commits intomoveit:mainfrom
thomaspeyrucain:main
Jan 26, 2026
Merged

Fix ERROR stream + check only active controllers for multiple chained controllers#3556
MarqRazz merged 4 commits intomoveit:mainfrom
thomaspeyrucain:main

Conversation

@thomaspeyrucain
Copy link
Contributor

Description

Hello Moveit Team,

When trying to control TIAGo Pro using moveit in Rviz I got this error:

[move_group-1] [ERROR] [1755075355.583941867] [moveit.plugins.ros_control_interface]: Controller with name %s chains to more than one controller. Chaining to more than one controller is not supported.
[move_group-1] [ERROR] [1755075355.584044598] [moveit_ros.trajectory_execution_manager]: Unable to identify any set of controllers that can actuate the specified joints: [ arm_left_1_joint arm_left_2_joint arm_left_3_joint arm_left_4_joint arm_left_5_joint arm_left_6_joint arm_left_7_joint ]
[move_group-1] [ERROR] [1755075355.584057241] [moveit_ros.trajectory_execution_manager]: Known controllers and their joints:
[move_group-1] 

This was due to a controller that is expected to be chained to several other controllers to be able to work, however this controller is not active when I did the test, it is just spawned by default in inactive

My change is to check chained controller only for active controllers and to fix the error message

Would this work or you prefer this to be fixed differently ?

@github-actions
Copy link

This PR is stale because it has been open for 45 days with no activity. Please tag a maintainer for help on completing this PR, or close it if you think it has become obsolete.

@github-actions github-actions bot added the stale label Sep 30, 2025
@thomaspeyrucain
Copy link
Contributor Author

Hello @henningkayser @tylerjw ,
Would it be possible to review this MR ?

@github-actions github-actions bot removed the stale label Oct 2, 2025
@MarqRazz MarqRazz added the backport-jazzy Mergify label that triggers a PR backport to Jazzy label Oct 6, 2025
@github-actions
Copy link

This PR is stale because it has been open for 45 days with no activity. Please tag a maintainer for help on completing this PR, or close it if you think it has become obsolete.

@github-actions github-actions bot added the stale label Nov 21, 2025
@EzraBrooks EzraBrooks removed the stale label Dec 1, 2025
@thomaspeyrucain
Copy link
Contributor Author

Hello,
I could not find a way to perform the test asked as I would need to change how the code is written and change the way it works

I wanted to add a test where 3 controllers A, B and C with C chained to A and B
If you activate A and B it should work but if you activate C it should fail; however the code is made in a way that it is not sure what part failed as this part of the code is not returning True or False

auto result = result_future.get();
if (!Ros2ControlManager::fixChainedControllers(result))
{
return;
}

Copy link
Contributor

@MarqRazz MarqRazz left a comment

Choose a reason for hiding this comment

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

Bummer we can't make a test.

@MarqRazz
Copy link
Contributor

Looks like you need to run pre-commit to fix the Formatting test @thomaspeyrucain

@codecov
Copy link

codecov bot commented Jan 22, 2026

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 46.22%. Comparing base (5a8ef4d) to head (9deba66).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...ontrol_interface/src/controller_manager_plugin.cpp 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3556      +/-   ##
==========================================
- Coverage   46.23%   46.22%   -0.00%     
==========================================
  Files         726      726              
  Lines       59484    59483       -1     
  Branches     7625     7624       -1     
==========================================
- Hits        27495    27492       -3     
- Misses      31822    31825       +3     
+ Partials      167      166       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

@thomaspeyrucain
Copy link
Contributor Author

  • Waiting on 1 reapproval from someone other than the last pusher. Review from MarqRazz is stale because it was submitted before the most recent code changes

Done, Thanks ^^

@MarqRazz MarqRazz merged commit 848c062 into moveit:main Jan 26, 2026
9 of 10 checks passed
@github-project-automation github-project-automation bot moved this to ✅ Done in MoveIt Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-jazzy Mergify label that triggers a PR backport to Jazzy

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants