ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

ROS2 one action client calling multiple servers

asked 2021-06-09 11:23:21 -0600

avzmpy gravatar image

updated 2021-06-09 11:24:05 -0600

I would like to call multiple action servers with a single client, however, with the current rclcpp implementation server name is only passed in the constructor, so the only option currently seems to be maintaining a number of client instances with dedicated names. It would seem that having one instance and calling multiple servers should be the optimal way of doing it, maybe by passing an additional argument to async_send_goal function. Am I missing something?

Are there any ways of achieving this with the current implementation of rclcpp?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-06-09 11:43:29 -0600

No, there is not, nor was there that ability in ROS 1. It has to setup pubs/subs behind the scene to exchange information so the client will need to be unique per server instance.

edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2021-06-09 11:23:21 -0600

Seen: 606 times

Last updated: Jun 09 '21