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'

import rosgraph

rosgraph if rosgraph.is_master_online():

rosgraph.is_master_online(): print 'ROS MASTER is Online'

else:

Online' else: print 'ROS MASTER is Offline'

import rosgraph if rosgraph.is_master_online(): print 'ROS MASTER is Online' else: print 'ROS MASTER is Offline'

import rosgraph if rosgraph.is_master_online(): print 'ROS MASTER is Online' else: print 'ROS MASTER is Offline'

Python:

import rosgraph
     if rosgraph.is_master_online():
         print 'ROS MASTER is Online'
     else:
         print 'ROS MASTER is Offline'

Offline'

Python:

import rosgraph
 if rosgraph.is_master_online():
     print 'ROS MASTER is Online'
 else:
     print 'ROS MASTER is Offline'

Python:

Gives out a boolean if the master uri is online or not


import rosgraph
if rosgraph.is_master_online():
rosgraph.is_master_online(): # Checks the master uri and results boolean (True or False)
    print 'ROS MASTER is Online'
else:
    print 'ROS MASTER is Offline'
click to hide/show revision 8
No.8 Revision

Python:

Gives out a boolean if the master uri is online or not
not

import rosgraph
if rosgraph.is_master_online(): # Checks the master uri and results boolean (True or False)
    print 'ROS MASTER is Online'
else:
    print 'ROS MASTER is Offline'