remapping of Action Clients

asked 2022-12-28 06:44:25 -0500

mk.maddin gravatar image

Hi all,

I am very new with ROS2 (in fact currently still within the beginner tutorials). While following the turtlesim instructions from here:

https://docs.ros.org/en/humble/Tutorials/Beginner-CLI-Tools/Introducing-Turtlesim/Introducing-Turtlesim.html#remapping

and here:

https://docs.ros.org/en/humble/Tutori...

I found that this changes the "Publishers" & "Service Servers", but NOT the Action Clients. (In fact I am not able to rotate turtle2 after creating it)

I tried to execute the following:

ros2 run turtlesim turtle_teleop_key --ros-args -r __node:=teleop_turtle2 -r turtle1/cmd_vel:=turtle2/cmd_vel -r turtle1/rotate_absolute:=turtle2/rotate_absolute

but based on "ros2 node info" the rotation client is still unchanged

$> ros2 node info /teleop_turtle2
/teleop_turtle2
  Subscribers:
    /parameter_events: rcl_interfaces/msg/ParameterEvent
  Publishers:
    /parameter_events: rcl_interfaces/msg/ParameterEvent
    /rosout: rcl_interfaces/msg/Log
    /turtle2/cmd_vel: geometry_msgs/msg/Twist
  Service Servers:
    /teleop_turtle2/describe_parameters: rcl_interfaces/srv/DescribeParameters
    /teleop_turtle2/get_parameter_types: rcl_interfaces/srv/GetParameterTypes
    /teleop_turtle2/get_parameters: rcl_interfaces/srv/GetParameters
    /teleop_turtle2/list_parameters: rcl_interfaces/srv/ListParameters
    /teleop_turtle2/set_parameters: rcl_interfaces/srv/SetParameters
    /teleop_turtle2/set_parameters_atomically: rcl_interfaces/srv/SetParametersAtomically
  Service Clients:

  Action Servers:

  Action Clients:
    /turtle1/rotate_absolute: turtlesim/action/RotateAbsolute

I was not able to find any information on how to change the "Action Client".

Thank you in advance :)

edit retag flag offensive close merge delete