Master. More...
Public Member Functions | |
def | __init__ |
def | update |
Private Member Functions | |
def | _get_action_clients |
def | _get_action_servers |
def | _get_actions |
def | _get_connections_from_action_list |
def | _get_connections_from_pub_sub_list |
def | _get_connections_from_service_list |
def | _is_topic_node_in_list |
Private Attributes | |
_connections | |
_get_system_state |
Master.
Definition at line 47 of file master_api.py.
def rocon_gateway.master_api.ConnectionCache.__init__ | ( | self, | |
get_system_state | |||
) |
Definition at line 49 of file master_api.py.
def rocon_gateway.master_api.ConnectionCache._get_action_clients | ( | self, | |
publishers, | |||
subscribers | |||
) | [private] |
Return action clients and pruned publisher, subscriber lists. @param publishers @type list of publishers in the form returned by rosgraph.Master.get_system_state @param subscribers @type list of subscribers in the form returned by rosgraph.Master.get_system_state @return list of actions, pruned_publishers, pruned_subscribers @rtype [base_topic, [nodes]], as param type, as param type
Definition at line 232 of file master_api.py.
def rocon_gateway.master_api.ConnectionCache._get_action_servers | ( | self, | |
publishers, | |||
subscribers | |||
) | [private] |
Return action servers and pruned publisher, subscriber lists. @param publishers @type list of publishers in the form returned by rosgraph.Master.get_system_state @param subscribers @type list of subscribers in the form returned by rosgraph.Master.get_system_state @return list of actions, pruned_publishers, pruned_subscribers @rtype [base_topic, [nodes]], as param type, as param type
Definition at line 218 of file master_api.py.
def rocon_gateway.master_api.ConnectionCache._get_actions | ( | self, | |
pubs, | |||
subs | |||
) | [private] |
Return actions and pruned publisher, subscriber lists. @param publishers @type list of publishers in the form returned by rosgraph.Master.get_system_state @param subscribers @type list of subscribers in the form returned by rosgraph.Master.get_system_state @return list of actions, pruned_publishers, pruned_subscribers @rtype [base_topic, [nodes]], as param type, as param type
Definition at line 158 of file master_api.py.
def rocon_gateway.master_api.ConnectionCache._get_connections_from_action_list | ( | self, | |
connection_list, | |||
connection_type | |||
) | [private] |
Definition at line 107 of file master_api.py.
def rocon_gateway.master_api.ConnectionCache._get_connections_from_pub_sub_list | ( | self, | |
connection_list, | |||
connection_type | |||
) | [private] |
Definition at line 141 of file master_api.py.
def rocon_gateway.master_api.ConnectionCache._get_connections_from_service_list | ( | self, | |
connection_list, | |||
connection_type | |||
) | [private] |
Definition at line 125 of file master_api.py.
def rocon_gateway.master_api.ConnectionCache._is_topic_node_in_list | ( | self, | |
topic, | |||
node, | |||
topic_node_list | |||
) | [private] |
Definition at line 98 of file master_api.py.
def rocon_gateway.master_api.ConnectionCache.update | ( | self, | |
new_system_state = None |
|||
) |
Currently completely regenerating the connections dictionary and then taking diffs. Could be faster if we took diffs on the system state instead, but that's a bit more awkward since each element has a variable list of nodes that we'd have to check against to get good diffs. e.g. old_publishers = ['/chatter', ['/talker']] new_publishers = ['/chatter', ['/talker', '/babbler']]
Definition at line 58 of file master_api.py.
Definition at line 49 of file master_api.py.
Definition at line 49 of file master_api.py.