Package rocon_gateway :: Module utils
[frames] | no frames]

Module utils

source code

Classes
  Connection
An object that represents a connection containing all the gory details about a connection, allowing a connection to be passed through to a foreign gateway
  Registration
An object that represents a connection registered with the local master (or about to be registered).
Functions
 
convert(data)
Convert unicode to standard string (Not sure how necessary this is) http://stackoverflow.com/questions/1254454/fastest-way-to-convert-a-dicts-keys-values-from-unicode-to-str
source code
 
serialize(data) source code
 
deserialize(str_msg) source code
 
serialize_connection(connection) source code
 
deserialize_connection(connection_str) source code
 
serialize_connection_request(command, source, connection) source code
 
serialize_rule_request(command, source, rule) source code
 
deserialize_request(request_str) source code
 
get_connection_from_list(connection_argument_list) source code
 
get_rule_from_list(rule_argument_list) source code
 
is_all_pattern(pattern)
Convenience function for detecting the 'all' pattern.
source code
 
format_rule(rule) source code
 
create_empty_connection_type_dictionary()
Used to initialise a dictionary with rule type keys and empty lists.
source code
Variables
  connection_types = frozenset(['action_client', 'action_server'...
  connection_types_list = ['publisher', 'subscriber', 'service',...
  connection_type_strings_list = ['publisher', 'subscriber', 'se...
  action_types = ['/goal', '/cancel', '/status', '/feedback', '/...
  __package__ = 'rocon_gateway'
Function Details

is_all_pattern(pattern)

source code 

Convenience function for detecting the 'all' pattern.

Parameters:
  • pattern - the name rule string for the flip all concept @type str @return true if matching, false otherwise @rtype Bool

Variables Details

connection_types

Value:
frozenset(['action_client',
           'action_server',
           'publisher',
           'service',
           'subscriber'])

connection_types_list

Value:
['publisher',
 'subscriber',
 'service',
 'action_client',
 'action_server']

connection_type_strings_list

Value:
['publisher',
 'subscriber',
 'service',
 'action_client',
 'action_server']

action_types

Value:
['/goal', '/cancel', '/status', '/feedback', '/result']