ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
import rosgraph
if rosgraph.is_master_online():
print 'ROS MASTER is Online'
else:
print 'ROS MASTER is Offline'
2 | No.2 Revision |
import rosgraph
if rosgraph.is_master_online():An example in Python:
import rosgraph
if rosgraph.is_master_online():
print 'ROS MASTER is Online'
else:
else:
print 'ROS MASTER is Offline'