[Workaround found] Remapping has no effect on controller action names when launching move_group_node

asked 2023-03-28 20:11:17 -0500

Schteve-earl gravatar image

updated 2023-04-11 13:00:04 -0500

I am attempting to launch a namespaced move_group node, but it needs to communicate with controllers that are outside of it's namespace. Adding the remapping tag to the launch file doesn't seem to have any effect on the action names. Here is my launch node:

    move_group_node = Node(
    namespace="test_ns",
    package="moveit_ros_move_group",
    executable="move_group",
    output="screen",
    parameters=[
        robot_description,
        robot_description_semantic,
        robot_description_kinematics,
        ompl_planning_pipeline_config,
        trajectory_execution,
        moveit_controllers,
        planning_scene_monitor_parameters,
        {"use_sim_time": True},
    ],
    remappings=[
        ("/test_ns/group_1/follow_joint_trajectory", "/group_1/follow_joint_trajectory"),
        ("/test_ns/group_2/follow_joint_trajectory", "/group_2/follow_joint_trajectory"),
        ("/test_ns/group_3/follow_joint_trajectory", "/group_3/follow_joint_trajectory")
    ]
)

And here is output after runningros2 action list:

/test_ns/execute_trajectory

/test_ns/group1_controller/follow_joint_trajectory

/test_ns/group2_controller/follow_joint_trajectory

/test_ns/group3_controller/follow_joint_trajectory

/test_ns/move_action

Am I remapping these actions incorrectly?

edit retag flag offensive close merge delete

Comments

I was able to work around this issue by creating an action server/client combination that receives goals in the original namespace and recalls them using the remapped namespace. This does allow me to continue development, but the solution is understandably not ideal.

Schteve-earl gravatar image Schteve-earl  ( 2023-04-11 13:01:42 -0500 )edit