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

Restart nodes and services

asked 2019-08-09 03:59:26 -0500

madlink306 gravatar image

Hi, I'm learning ROS and trying to create a program that manages the whole application by monitoring the nodes, services, check if everything is working, if not restart the one that failed. But I'm a little bit confuse about nodes and services. So if a node fails, does it mean the service associate with that service also fail? If I restart the node, does the service also restart? Is the same if the service fails?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-08-09 10:52:51 -0500

ct2034 gravatar image

In ROS, services are 'only' means of communication. Not to be confused with a cloud-service or something. When node A, calls a service of node B, whatever runs in the service is executed by node B and the result is passed back to A.

edit flag offensive delete link more


Thank you for your answer. So, that means if I restart the node, the service associate with it will be restart as well?

madlink306 gravatar image madlink306  ( 2019-08-11 21:37:46 -0500 )edit

To stay in the example above: If there is a service called by node A is running in B and then B is restarted, the service is just interrupted and A has to call it again.

ct2034 gravatar image ct2034  ( 2019-08-12 04:27:40 -0500 )edit

Question Tools



Asked: 2019-08-09 03:59:26 -0500

Seen: 1,232 times

Last updated: Aug 09 '19