Call a service from a launch.py file in ROS2

asked 2021-08-18 02:49:44 -0500

ffent gravatar image

updated 2021-08-18 02:51:34 -0500

Question
Is there any possibility to call a service from a launch.py file in ROS2?

Details
I have written a python node with a service which is launched by a launch.py file. Within the same launch file I would like to call the service of this node multiple times (with different argument values). Is there any possibility to realize this in ROS2?

Reference
call-a-service-at-startup-with-a-launch-file

edit retag flag offensive close merge delete