Skip to content

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

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

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

Conversation

@thomaspeyrucain

Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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;
}

@MarqRazz MarqRazz left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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

@codecov

codecov Bot commented Jan 22, 2026

Copy link
Copy Markdown

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
Copy Markdown
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
@nbbrooks nbbrooks added backport-humble Mergify label that triggers a PR backport to Humble backport-jazzy Mergify label that triggers a PR backport to Jazzy backport-kilted and removed backport-jazzy Mergify label that triggers a PR backport to Jazzy labels Jun 23, 2026
@nbbrooks

Copy link
Copy Markdown
Collaborator

@mergify backport humble

@mergify

mergify Bot commented Jun 23, 2026

Copy link
Copy Markdown

backport humble

☑️ Command disallowed due to command restrictions in the Mergify configuration.

Details
  • sender-permission >= write

@nbbrooks

Copy link
Copy Markdown
Collaborator

@mergify backport jazzy

@nbbrooks

Copy link
Copy Markdown
Collaborator

@mergify backport kilted

@mergify

mergify Bot commented Jun 23, 2026

Copy link
Copy Markdown

backport jazzy

☑️ Command disallowed due to command restrictions in the Mergify configuration.

Details
  • sender-permission >= write

@mergify

mergify Bot commented Jun 23, 2026

Copy link
Copy Markdown

backport kilted

☑️ Command disallowed due to command restrictions in the Mergify configuration.

Details
  • sender-permission >= write

@nbbrooks nbbrooks added backport-humble Mergify label that triggers a PR backport to Humble and removed backport-humble Mergify label that triggers a PR backport to Humble backport-jazzy Mergify label that triggers a PR backport to Jazzy backport-kilted labels Jun 23, 2026
@nbbrooks

Copy link
Copy Markdown
Collaborator

@mergify backport humble

@mergify

mergify Bot commented Jun 23, 2026

Copy link
Copy Markdown

backport humble

✅ Backports have been created

Details

Cherry-pick of 848c062 has failed:

On branch mergify/bp/humble/pr-3556
Your branch is up to date with 'origin/humble'.

You are currently cherry-picking commit 848c062a0.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   moveit_plugins/moveit_ros_control_interface/src/controller_manager_plugin.cpp

no changes added to commit (use "git add" and/or "git commit -a")

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

@nbbrooks nbbrooks removed the backport-humble Mergify label that triggers a PR backport to Humble label Jun 23, 2026
@nbbrooks

Copy link
Copy Markdown
Collaborator

@mergify backport jazzy

@nbbrooks

Copy link
Copy Markdown
Collaborator

@mergify backport kilted

@mergify

mergify Bot commented Jun 23, 2026

Copy link
Copy Markdown

backport jazzy

✅ Backports have been created

Details

@mergify

mergify Bot commented Jun 23, 2026

Copy link
Copy Markdown

backport kilted

✅ Backports have been created

Details

nbbrooks added a commit that referenced this pull request Jun 23, 2026
… controllers (#3556) (#3767)

(cherry picked from commit 848c062)

Co-authored-by: thomaspeyrucain <87322480+thomaspeyrucain@users.noreply.github.com>
Co-authored-by: Nathan Brooks <nathanbrooks@picknik.ai>
nbbrooks added a commit that referenced this pull request Jun 24, 2026
… controllers (backport #3556) (#3766)

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

(cherry picked from commit 848c062)

# Conflicts:
#	moveit_plugins/moveit_ros_control_interface/src/controller_manager_plugin.cpp

* Apply suggestions from code review

Co-authored-by: Nathan Brooks <nbbrooks@gmail.com>

* Apply suggestion from @nbbrooks

* clang-format wrapped RCLCPP_ERROR_STREAM after LOGGER fix

Backport's getLogger replacement left the wrapped continuation lines at
the original main-branch indentation, but clang-format on humble wants
them at the alignment matching humble's RCLCPP_ERROR_STREAM column. No
behavioral change — just makes pre-commit's clang-format check pass.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

---------

Co-authored-by: thomaspeyrucain <87322480+thomaspeyrucain@users.noreply.github.com>
Co-authored-by: Nathan Brooks <nathanbrooks@picknik.ai>
Co-authored-by: Nathan Brooks <nbbrooks@gmail.com>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
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.

4 participants