You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Split moveit_servo demos into a separate package to avoid rviz2/joy exec_depends #3994
moveit_ros/moveit_servo/package.xml has <exec_depend> on moveit_ros_visualization and joy for the demo launch files (launch/demo_*.launch.py) and RViz configs (config/demo_rviz_config*.rviz).
servo_node and moveit_servo_lib_{cpp,ros} do not use RViz, Qt, or joy, so headless robots depending on moveit_servo end up pulling rviz2, Qt, OGRE, LLVM, and SDL.
Proposal
Move the demo executables, launch/demo_*.launch.py, and RViz demo configs into a separate moveit_servo_demos package (or moveit2_tutorials), so moveit_servo can drop moveit_ros_visualization and joy from its <exec_depend> list.
If maintainers are on board with this direction, I am happy to work on the PR.
Hi @gordon-n-stevenson, this seems genuinely helpful. A few other <exec_depend>s also look demo/launch-only and could move too: controller_manager, joint_state_broadcaster, joint_trajectory_controller, robot_state_publisher, moveit_configs_utils, launch_param_builder. Any the integration tests need could become <test_depend>. I also checked that moveit_ros_planning_interface only has rviz2 as a test_depend, so moveit_servo should end up genuinely headless .
Also, shouldn't moveit_servo_demos be in this repo rather than moveit2_tutorials, so the C++ API demos keep building in CI alongside servo changes.
Also (more of a tangent but) since servo_keyboard_input has no RViz/joy dependency and is closer to a teleop utility than a demo. It might make sense to keep it in moveit_servo, right ?
Thanks, I checked these against main and agree on all three, with two corrections to my own description, with a bit of Claude help.
Other exec_depend. Neither servo_node nor the two libraries use any of the six. The demo launch files and the three launch tests do, so they would become <test_depend> here and <exec_depend> in the demos package, and only once the launch files move.
joy. Nothing on main uses it, so I was wrong to tie it to the demos. It can be deleted on its own. Humble is different (its example launch file loads joy::Joy), so I would leave Humble out of scope.
Location. Agreed on moveit_servo_demos in this repo. I suggested moveit2_tutorials as an alternative, but it is not released, so binary users would lose the demos.
servo_keyboard_input. Agreed that it stays, mainly because the tutorial runs ros2 run moveit_servo servo_keyboard_input. It is Panda-specific, so it is closer to a demo than a general teleop tool, but it needs nothing beyond what moveit_servo already depends on.
Beyond install size, this also stops servo's binaries depending on RViz and on demo-only packages being releasable (#3978, #3474).
Proposed scope:
A small PR that removes <exec_depend>joy</exec_depend> on main.
A draft PR on main for the split. moveit_servo_demos gets demo_joint_jog, demo_twist, demo_pose, the four demo launch files and the two RViz configs. moveit_servo keeps servo_node, the libraries, servo_keyboard_input and panda_simulated_config.yaml, which one test loads. It would come with a MIGRATION.md entry and a tutorials PR for the renamed launch commands.
The cost is a new package and renamed launch commands for the demos. I'll open 1 now if that is welcome, and wait for a maintainer on 2? @sea-bass ? @nbbrooks? 🙏
@130s sure. demo_joint_jog, demo_twist and demo_pose are C++ programs that link against moveit_servo_lib_cpp, so they actually use servo's C++ API. If, lets say, moveit_servo_demos stays in this repo, they get rebuilt in CI on every servo PR which is good behaviour as, if someone changes the API in a way that breaks them, the same PR fails and gets fixed before it merges.
If they were in moveit2_tutorials, nobody would find out until the tutorials CI ran later, after the servo change was already merged. Also, like gordon pointed out here, moveit2_tutorials isn't released, so binary users wouldn't get the demos at all.
Thanks @130s and @OceanicKr. I have prepared the split along the lines discussed above (item 2 of the proposed scope) and opened it as PR #4042, so that @nbbrooks has something concrete to accept or reject.
What it does
New package moveit_ros/moveit_servo_demos in this repo with demo_joint_jog, demo_twist, demo_pose, the four demo_*.launch.py files and the two RViz configs. The files are moved with git mv; the only edits are the package name in the launch files.
moveit_servo keeps servo_node, the two libraries, servo_keyboard_input and panda_simulated_config.yaml (a test and the Jupyter tutorial load it).
moveit_ros_visualization and the six packages @OceanicKr listed move to the demos package. moveit_servo keeps the six as <test_depend>, since its three launch tests use them.
On Rolling the run-dependency closure of moveit_servo goes from 199 to 143 ROS packages, with no RViz, Qt or OGRE left. What remains of that kind is joy and SDL, which #4006 removes.
CI
As @OceanicKr explained, with the package in this repo the three C++ demos are still built against servo on every PR, as today. That catches a change that stops them compiling, but they were never run, so the PR also adds that:
The demo launch files get an rviz argument that defaults to true.
Launch tests start each demo with rviz:=false. The three C++ demos have to exit with code 0 and move the tip frame as far as they command. For demo_ros_api the test sends twist commands to servo_node and checks that the arm moves, and that it stops when the commands stop.
So a servo change that breaks a demo at run time fails the same PR. That part is in separate commits and can be dropped if you only want the move.
A launch file that loads one of the two demo RViz configs from moveit_servo has to read it from moveit_servo_demos.
A package that got RViz or one of the six packages only through moveit_servo has to declare it.
All three are in MIGRATION.md.
Docs
We would adjust moveit2_tutorials and the docs for this: the realtime servo tutorial and the controller teleoperation guide name the launch commands and link to the demo sources. That change is prepared too and would follow as a moveit2_tutorials PR once this one is agreed. The new package has a short README.
Outside the MoveIt repositories, a code search found a few places that would have to follow once the split is released: the CI of pymoveit2, the Bazel overlay for moveit_servo in ros-central-registry, the ROS-Industrial training slides, and a handful of application and course repositories that include demo_ros_api.launch.py or load the demo RViz config from moveit_servo. The list is in the description of #4042.
Tested on Rolling and on Jazzy with main built from source. The details are in the PR description.
Activity
OceanicKr commentedon Nov 24, 2026
Hi @gordon-n-stevenson, this seems genuinely helpful. A few other
<exec_depend>s also look demo/launch-only and could move too:controller_manager,joint_state_broadcaster,joint_trajectory_controller,robot_state_publisher,moveit_configs_utils,launch_param_builder. Any the integration tests need could become<test_depend>. I also checked thatmoveit_ros_planning_interfaceonly hasrviz2as atest_depend, somoveit_servoshould end up genuinely headless .Also, shouldn't
moveit_servo_demosbe in this repo rather thanmoveit2_tutorials, so the C++ API demos keep building in CI alongside servo changes.Also (more of a tangent but) since
servo_keyboard_inputhas no RViz/joy dependency and is closer to a teleop utility than a demo. It might make sense to keep it inmoveit_servo, right ?gordon-n-stevenson commentedon Nov 24, 2026
Thanks, I checked these against main and agree on all three, with two corrections to my own description, with a bit of Claude help.
Other
exec_depend. Neitherservo_nodenor the two libraries use any of the six. The demo launch files and the three launch tests do, so they would become<test_depend>here and<exec_depend>in the demos package, and only once the launch files move.joy. Nothing on main uses it, so I was wrong to tie it to the demos. It can be deleted on its own. Humble is different (its example launch file loadsjoy::Joy), so I would leave Humble out of scope.Location. Agreed on
moveit_servo_demosin this repo. I suggestedmoveit2_tutorialsas an alternative, but it is not released, so binary users would lose the demos.servo_keyboard_input. Agreed that it stays, mainly because the tutorial runsros2 run moveit_servo servo_keyboard_input. It is Panda-specific, so it is closer to a demo than a general teleop tool, but it needs nothing beyond whatmoveit_servoalready depends on.Beyond install size, this also stops servo's binaries depending on RViz and on demo-only packages being releasable (#3978, #3474).
Proposed scope:
<exec_depend>joy</exec_depend>on main.moveit_servo_demosgetsdemo_joint_jog,demo_twist,demo_pose, the four demo launch files and the two RViz configs.moveit_servokeepsservo_node, the libraries,servo_keyboard_inputandpanda_simulated_config.yaml, which one test loads. It would come with aMIGRATION.mdentry and a tutorials PR for the renamed launch commands.The cost is a new package and renamed launch commands for the demos. I'll open 1 now if that is welcome, and wait for a maintainer on 2? @sea-bass ? @nbbrooks? 🙏
130s commentedon Dec 2, 2026
Off the top of my head, making servo pkg as lean as possible, e.g. removing visualization components, makes sense to me.
Splitting such additional parts as a *_demo pkg sounds like a moveit-way I think? So I vote to that but I leave that up to others esp. @nbbrooks
@OceanicKr Could you elaborate what that means?
OceanicKr commentedon Dec 2, 2026
@130s sure. demo_joint_jog, demo_twist and demo_pose are C++ programs that link against moveit_servo_lib_cpp, so they actually use servo's C++ API. If, lets say, moveit_servo_demos stays in this repo, they get rebuilt in CI on every servo PR which is good behaviour as, if someone changes the API in a way that breaks them, the same PR fails and gets fixed before it merges.
If they were in moveit2_tutorials, nobody would find out until the tutorials CI ran later, after the servo change was already merged. Also, like gordon pointed out here, moveit2_tutorials isn't released, so binary users wouldn't get the demos at all.
gordon-n-stevenson commentedon Dec 3, 2026
[written by AI]
Thanks @130s and @OceanicKr. I have prepared the split along the lines discussed above (item 2 of the proposed scope) and opened it as PR #4042, so that @nbbrooks has something concrete to accept or reject.
What it does
moveit_ros/moveit_servo_demosin this repo withdemo_joint_jog,demo_twist,demo_pose, the fourdemo_*.launch.pyfiles and the two RViz configs. The files are moved withgit mv; the only edits are the package name in the launch files.moveit_servokeepsservo_node, the two libraries,servo_keyboard_inputandpanda_simulated_config.yaml(a test and the Jupyter tutorial load it).moveit_ros_visualizationand the six packages @OceanicKr listed move to the demos package.moveit_servokeeps the six as<test_depend>, since its three launch tests use them.joyis left to Remove the unused joy dependency from moveit_servo #4006.On Rolling the run-dependency closure of
moveit_servogoes from 199 to 143 ROS packages, with no RViz, Qt or OGRE left. What remains of that kind isjoyand SDL, which #4006 removes.CI
As @OceanicKr explained, with the package in this repo the three C++ demos are still built against servo on every PR, as today. That catches a change that stops them compiling, but they were never run, so the PR also adds that:
rvizargument that defaults totrue.rviz:=false. The three C++ demos have to exit with code 0 and move the tip frame as far as they command. Fordemo_ros_apithe test sends twist commands toservo_nodeand checks that the arm moves, and that it stops when the commands stop.So a servo change that breaks a demo at run time fails the same PR. That part is in separate commits and can be dropped if you only want the move.
Cost
ros2 launch moveit_servo demo_*.launch.pybecomesros2 launch moveit_servo_demos demo_*.launch.py.moveit_servohas to read it frommoveit_servo_demos.moveit_servohas to declare it.All three are in
MIGRATION.md.Docs
We would adjust moveit2_tutorials and the docs for this: the realtime servo tutorial and the controller teleoperation guide name the launch commands and link to the demo sources. That change is prepared too and would follow as a moveit2_tutorials PR once this one is agreed. The new package has a short README.
Outside the MoveIt repositories, a code search found a few places that would have to follow once the split is released: the CI of pymoveit2, the Bazel overlay for
moveit_servoin ros-central-registry, the ROS-Industrial training slides, and a handful of application and course repositories that includedemo_ros_api.launch.pyor load the demo RViz config frommoveit_servo. The list is in the description of #4042.Tested on Rolling and on Jazzy with
mainbuilt from source. The details are in the PR description.