0
$\begingroup$

Rosanswers logo

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?


Originally posted by avzmpy on ROS Answers with karma: 83 on 2021-06-09

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

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.


Originally posted by stevemacenski with karma: 8272 on 2021-06-09

This answer was ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.