Ask Your Question
1

rospy master status

asked 2013-04-22 07:43:11 -0600

kmaroney gravatar image

Is there a tool for checking if the rosmaster is up using rospy?

Something along the lines of roscpp's ros::master::check()?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-06-15 08:35:20 -0600

130s gravatar image

Might not be the best answer but the sample code in Master_API page might work for your purpose. If no master is running, the follwoing line would fail with socket.error:

code, msg, val = m.getSystemState(caller_id)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-04-22 07:43:11 -0600

Seen: 1,240 times

Last updated: Jun 15 '13