Detecting ROS master failure in a non ROS checker C++ program

asked 2021-04-28 04:02:51 -0500

alixxx gravatar image

Hello,

How to determine and monitor ROS master failure in a non ROS checker C++ program ?

Thanks, Best regards.

edit retag flag offensive close merge delete

Comments

Does the accepted answer to Best way to check if ROS is running work for you? Feel free to elaborate more on the overall problem you're trying to solve, if someone knows a better approach than "Detecting ROS master failure"

abhishek47 gravatar image abhishek47  ( 2021-04-28 04:53:31 -0500 )edit

Thanks for your support. Doing this check with ros commands (ex: rostopic list) : I think this method so basic. Methods using python : I need to use C ++ ros::master::check() : If I use this method I have to use ros node. I want to make a cpp program (Ros master checker) that works independently of ROS.

When ros master is active, a process called rosmaster starts up. I see on System Monitor on Linux. How can I monitor rosmaster process with a c ++ program? I searched on this but could not reach a sufficient result.

I would be very happy if you have any other suggestions,

Thanks, Best regards.

alixxx gravatar image alixxx  ( 2021-04-28 06:16:04 -0500 )edit