Functions | |
def | _succeed (args) |
def | checkNodeExistence (stat) |
def | ping (node_name, max_count=None, verbose=False) |
Variables | |
argv = rospy.myargv() | |
g_robotsound_pub = rospy.Publisher("/robotsound", SoundRequest) | |
nodes = argv[1:] | |
r = rospy.Rate(0.01) | |
speak = rospy.get_param("~speak", False) | |
speak_text = rospy.get_param("~speak_text", "") | |
updater = diagnostic_updater.Updater() | |
rosping_existence.py check the existence of the ros nodes and publish the result to diagnostics
|
private |
Definition at line 22 of file rosping_existence.py.
def rosping_existence.checkNodeExistence | ( | stat | ) |
Definition at line 108 of file rosping_existence.py.
def rosping_existence.ping | ( | node_name, | |
max_count = None , |
|||
verbose = False |
|||
) |
Test connectivity to node by calling its XMLRPC API @param node_name: name of node to ping @type node_name: str @param max_count: number of ping requests to make @type max_count: int @param verbose: print ping information to screen @type verbose: bool @return: True if node pinged @rtype: bool @raise ROSNodeIOException: if unable to communicate with master
Definition at line 28 of file rosping_existence.py.
rosping_existence.argv = rospy.myargv() |
Definition at line 142 of file rosping_existence.py.
rosping_existence.g_robotsound_pub = rospy.Publisher("/robotsound", SoundRequest) |
Definition at line 151 of file rosping_existence.py.
rosping_existence.nodes = argv[1:] |
Definition at line 147 of file rosping_existence.py.
rosping_existence.r = rospy.Rate(0.01) |
Definition at line 152 of file rosping_existence.py.
rosping_existence.speak = rospy.get_param("~speak", False) |
Definition at line 148 of file rosping_existence.py.
rosping_existence.speak_text = rospy.get_param("~speak_text", "") |
Definition at line 149 of file rosping_existence.py.
rosping_existence.updater = diagnostic_updater.Updater() |
Definition at line 139 of file rosping_existence.py.