-
Notifications
You must be signed in to change notification settings - Fork 685
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remapping action names does not work #1312
Comments
Yeah, this is a feature for actions that we never implemented. It is probably possible to implement it relatively straightforwardly in https://github.com/ros2/rcl/tree/rolling/rcl_action , but it just isn't done so currently. There is a workaround that can be used, which is to remap all of the topics and services that are associated with an action. For the
And for the client:
I don't know if we are going to have time to look at this soon, but we'll keep it on the list to eventually fix. |
I can confirm that remapping the topics as you suggested @clalancette does the job. This caught me by surprise, though - I wasn't expecting this feature to be missing, so I was troubleshooting locally for a bit. I'm sure it's documented somewhere though in the release notes :-) just fyi This would probably be a good issue for a new contributor to work on, do you think? Perhaps "just" a call to In the meantime here's a launch example for someone else who comes across this:
|
Same for XML: <?xml version="1.0"?>
<launch>
<node pkg="action_tutorials_cpp" exec="fibonacci_action_server" namespace="action_tutorials_cpp">
<remap from="/action_tutorials_cpp/fibonacci" to="/foobar"/>
</node>
</launch> |
Bug report
Required Info:
ros:humble
Steps to reproduce issue
Run the following launch file to launch the
fibonacci
action server fromaction_tutorials_py
with remapping of the action name:Expected behavior
Launching the
fibonnaci_action_server
node running with the/remapped_fibonacci
action server, and also exposing the/fibonacci_list_parameters
service instead of the/fibonacci_action_server/fibonacci_list_parameters
service.Actual behavior
The service is remapped correctly, but the action is not.
Output from
ros2 action list
Output from
ros2 service list
The text was updated successfully, but these errors were encountered: