[Workaround found] Remapping has no effect on controller action names when launching move_group_node
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
:
/testns/executetrajectory
/testns/group1controller/followjointtrajectory
/testns/group2controller/followjointtrajectory
/testns/group3controller/followjointtrajectory
/testns/moveaction
Am I remapping these actions incorrectly?
Asked by Schteve-earl on 2023-03-28 20:11:17 UTC
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.
Asked by Schteve-earl on 2023-04-11 13:01:42 UTC