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

Revision history [back]

click to hide/show revision 1
initial version

import rosgraph

if rosgraph.is_master_online():

 print 'ROS MASTER is Online'

else:

 print 'ROS MASTER is Offline'
click to hide/show revision 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'