diff --git a/moveit_configs_utils/moveit_configs_utils/launches.py b/moveit_configs_utils/moveit_configs_utils/launches.py index 206ae94115..808d520d86 100644 --- a/moveit_configs_utils/moveit_configs_utils/launches.py +++ b/moveit_configs_utils/moveit_configs_utils/launches.py @@ -327,9 +327,11 @@ def generate_demo_launch(moveit_config): package="controller_manager", executable="ros2_control_node", parameters=[ - moveit_config.robot_description, str(moveit_config.package_path / "config/ros2_controllers.yaml"), ], + remappings=[ + ("/controller_manager/robot_description", "/robot_description"), + ], ) ) diff --git a/moveit_core/collision_detection/CMakeLists.txt b/moveit_core/collision_detection/CMakeLists.txt index 70aa54d263..2bf8b6bfa2 100644 --- a/moveit_core/collision_detection/CMakeLists.txt +++ b/moveit_core/collision_detection/CMakeLists.txt @@ -17,6 +17,7 @@ include(GenerateExportHeader) generate_export_header(moveit_collision_detection) ament_target_dependencies(moveit_collision_detection + pluginlib rclcpp rmw_implementation urdf diff --git a/moveit_planners/test_configs/prbt_moveit_config/launch/demo.launch.py b/moveit_planners/test_configs/prbt_moveit_config/launch/demo.launch.py index a71023ecc5..019cc86823 100644 --- a/moveit_planners/test_configs/prbt_moveit_config/launch/demo.launch.py +++ b/moveit_planners/test_configs/prbt_moveit_config/launch/demo.launch.py @@ -189,7 +189,10 @@ def generate_launch_description(): ros2_control_node = Node( package="controller_manager", executable="ros2_control_node", - parameters=[robot_description, ros2_controllers_path], + parameters=[ros2_controllers_path], + remappings=[ + ("/controller_manager/robot_description", "/robot_description"), + ], output="screen", ) diff --git a/moveit_planners/test_configs/prbt_support/urdf/prbt.ros2_control.xacro b/moveit_planners/test_configs/prbt_support/urdf/prbt.ros2_control.xacro index a497fed692..9d96b0cdb3 100644 --- a/moveit_planners/test_configs/prbt_support/urdf/prbt.ros2_control.xacro +++ b/moveit_planners/test_configs/prbt_support/urdf/prbt.ros2_control.xacro @@ -21,9 +21,15 @@ -3.15 3.15 - - - + + 0.0 + + + 0.0 + + + 0.0 + ${initial_positions['joint_1']} @@ -35,9 +41,15 @@ -3.15 3.15 - - - + + 0.0 + + + 0.0 + + + 0.0 + ${initial_positions['joint_2']} @@ -49,9 +61,15 @@ -3.15 3.15 - - - + + 0.0 + + + 0.0 + + + 0.0 + ${initial_positions['joint_3']} @@ -63,9 +81,15 @@ -3.15 3.15 - - - + + 0.0 + + + 0.0 + + + 0.0 + ${initial_positions['joint_4']} @@ -77,9 +101,15 @@ -3.15 3.15 - - - + + 0.0 + + + 0.0 + + + 0.0 + ${initial_positions['joint_5']} @@ -91,9 +121,15 @@ -3.15 3.15 - - - + + 0.0 + + + 0.0 + + + 0.0 + ${initial_positions['joint_6']} diff --git a/moveit_ros/hybrid_planning/test/launch/hybrid_planning_common.py b/moveit_ros/hybrid_planning/test/launch/hybrid_planning_common.py index f88681dbc3..ea4f1fbea3 100644 --- a/moveit_ros/hybrid_planning/test/launch/hybrid_planning_common.py +++ b/moveit_ros/hybrid_planning/test/launch/hybrid_planning_common.py @@ -198,7 +198,10 @@ def generate_common_hybrid_launch_description(): ros2_control_node = Node( package="controller_manager", executable="ros2_control_node", - parameters=[robot_description, ros2_controllers_path], + parameters=[ros2_controllers_path], + remappings=[ + ("/controller_manager/robot_description", "/robot_description"), + ], output="screen", ) diff --git a/moveit_ros/moveit_servo/launch/demo_joint_jog.launch.py b/moveit_ros/moveit_servo/launch/demo_joint_jog.launch.py index 6167c23083..31e5f50f00 100644 --- a/moveit_ros/moveit_servo/launch/demo_joint_jog.launch.py +++ b/moveit_ros/moveit_servo/launch/demo_joint_jog.launch.py @@ -48,7 +48,10 @@ def generate_launch_description(): ros2_control_node = launch_ros.actions.Node( package="controller_manager", executable="ros2_control_node", - parameters=[moveit_config.robot_description, ros2_controllers_path], + parameters=[ros2_controllers_path], + remappings=[ + ("/controller_manager/robot_description", "/robot_description"), + ], output="screen", ) diff --git a/moveit_ros/moveit_servo/launch/demo_pose.launch.py b/moveit_ros/moveit_servo/launch/demo_pose.launch.py index 674c40b9da..2da4555ed6 100644 --- a/moveit_ros/moveit_servo/launch/demo_pose.launch.py +++ b/moveit_ros/moveit_servo/launch/demo_pose.launch.py @@ -48,7 +48,10 @@ def generate_launch_description(): ros2_control_node = launch_ros.actions.Node( package="controller_manager", executable="ros2_control_node", - parameters=[moveit_config.robot_description, ros2_controllers_path], + parameters=[ros2_controllers_path], + remappings=[ + ("/controller_manager/robot_description", "/robot_description"), + ], output="screen", ) diff --git a/moveit_ros/moveit_servo/launch/demo_ros_api.launch.py b/moveit_ros/moveit_servo/launch/demo_ros_api.launch.py index 41ba40d3bc..ea0abcc25d 100644 --- a/moveit_ros/moveit_servo/launch/demo_ros_api.launch.py +++ b/moveit_ros/moveit_servo/launch/demo_ros_api.launch.py @@ -56,7 +56,10 @@ def generate_launch_description(): ros2_control_node = launch_ros.actions.Node( package="controller_manager", executable="ros2_control_node", - parameters=[moveit_config.robot_description, ros2_controllers_path], + parameters=[ros2_controllers_path], + remappings=[ + ("/controller_manager/robot_description", "/robot_description"), + ], output="screen", ) diff --git a/moveit_ros/moveit_servo/launch/demo_twist.launch.py b/moveit_ros/moveit_servo/launch/demo_twist.launch.py index 63bd829c3b..274c14f51f 100644 --- a/moveit_ros/moveit_servo/launch/demo_twist.launch.py +++ b/moveit_ros/moveit_servo/launch/demo_twist.launch.py @@ -48,7 +48,10 @@ def generate_launch_description(): ros2_control_node = launch_ros.actions.Node( package="controller_manager", executable="ros2_control_node", - parameters=[moveit_config.robot_description, ros2_controllers_path], + parameters=[ros2_controllers_path], + remappings=[ + ("/controller_manager/robot_description", "/robot_description"), + ], output="screen", ) diff --git a/moveit_ros/moveit_servo/tests/launch/servo_cpp_integration.test.py b/moveit_ros/moveit_servo/tests/launch/servo_cpp_integration.test.py index ea6c730428..99c45de1f8 100644 --- a/moveit_ros/moveit_servo/tests/launch/servo_cpp_integration.test.py +++ b/moveit_ros/moveit_servo/tests/launch/servo_cpp_integration.test.py @@ -34,7 +34,10 @@ def generate_test_description(): ros2_control_node = launch_ros.actions.Node( package="controller_manager", executable="ros2_control_node", - parameters=[moveit_config.robot_description, ros2_controllers_path], + parameters=[ros2_controllers_path], + remappings=[ + ("/controller_manager/robot_description", "/robot_description"), + ], output="screen", ) diff --git a/moveit_ros/moveit_servo/tests/launch/servo_ros_integration.test.py b/moveit_ros/moveit_servo/tests/launch/servo_ros_integration.test.py index 94519096ca..b5123ba530 100644 --- a/moveit_ros/moveit_servo/tests/launch/servo_ros_integration.test.py +++ b/moveit_ros/moveit_servo/tests/launch/servo_ros_integration.test.py @@ -41,7 +41,10 @@ def generate_test_description(): ros2_control_node = launch_ros.actions.Node( package="controller_manager", executable="ros2_control_node", - parameters=[moveit_config.robot_description, ros2_controllers_path], + parameters=[ros2_controllers_path], + remappings=[ + ("/controller_manager/robot_description", "/robot_description"), + ], output="screen", ) diff --git a/moveit_ros/moveit_servo/tests/launch/servo_utils.test.py b/moveit_ros/moveit_servo/tests/launch/servo_utils.test.py index a656655334..c081af9574 100644 --- a/moveit_ros/moveit_servo/tests/launch/servo_utils.test.py +++ b/moveit_ros/moveit_servo/tests/launch/servo_utils.test.py @@ -34,7 +34,10 @@ def generate_test_description(): ros2_control_node = launch_ros.actions.Node( package="controller_manager", executable="ros2_control_node", - parameters=[moveit_config.robot_description, ros2_controllers_path], + parameters=[ros2_controllers_path], + remappings=[ + ("/controller_manager/robot_description", "/robot_description"), + ], output="screen", ) diff --git a/moveit_ros/planning_interface/test/launch/move_group_launch_test_common.py b/moveit_ros/planning_interface/test/launch/move_group_launch_test_common.py index 23195c8ed2..e9136be339 100644 --- a/moveit_ros/planning_interface/test/launch/move_group_launch_test_common.py +++ b/moveit_ros/planning_interface/test/launch/move_group_launch_test_common.py @@ -60,7 +60,10 @@ def generate_move_group_test_description(*args, gtest_name: SomeSubstitutionsTyp ros2_control_node = Node( package="controller_manager", executable="ros2_control_node", - parameters=[moveit_config.robot_description, ros2_controllers_path], + parameters=[ros2_controllers_path], + remappings=[ + ("/controller_manager/robot_description", "/robot_description"), + ], output="screen", )