Classes | Functions | Variables
rocon_gateway.utils Namespace Reference

Classes

class  Connection
 Rule. More...
 
class  Registration
 

Functions

def _get_connections_from_action_chan_dict (ccproxy_channel_dict, connection_type)
 
def _get_connections_from_pub_sub_chan_dict (ccproxy_channel_dict, connection_type)
 
def _get_connections_from_service_chan_dict (ccproxy_channel_dict, connection_type)
 Conversion from Connection Cache Proxy channels (as passed in callback) to Gateway connections. More...
 
def create_empty_connection_type_dictionary (collection_type=list)
 Factories. More...
 
def decrypt (ciphertext, key)
 
def decrypt_connection (connection, key)
 
def deserialize (str_msg)
 
def deserialize_connection (connection_str)
 
def deserialize_key (serialized_key)
 
def deserialize_request (request_str)
 
def encrypt (plaintext, public_key)
 
def encrypt_connection (connection, key)
 
def format_rule (rule)
 Formatters. More...
 
def generate_private_public_key ()
 
def get_connection_from_list (connection_argument_list)
 
def get_rule_from_list (rule_argument_list)
 
def is_all_pattern (pattern)
 Regex. More...
 
def serialize (data)
 
def serialize_connection (connection)
 
def serialize_connection_request (command, source, connection)
 
def serialize_key (key)
 
def serialize_rule_request (command, source, rule)
 

Variables

list action_types = ['/goal', '/cancel', '/status', '/feedback', '/result']
 
list connection_type_strings_list = ["publisher", "subscriber", "service", "action_client", "action_server"]
 
 connection_types
 Constants. More...
 
list connection_types_list
 
 difflist = lambdal1,l2:[x for x in l1 if x not in l2]
 
int MAX_PLAINTEXT_LENGTH = 256
 Encryption/Decryption. More...
 

Function Documentation

def rocon_gateway.utils._get_connections_from_action_chan_dict (   ccproxy_channel_dict,
  connection_type 
)
private

Definition at line 370 of file utils.py.

def rocon_gateway.utils._get_connections_from_pub_sub_chan_dict (   ccproxy_channel_dict,
  connection_type 
)
private

Definition at line 358 of file utils.py.

def rocon_gateway.utils._get_connections_from_service_chan_dict (   ccproxy_channel_dict,
  connection_type 
)
private

Conversion from Connection Cache Proxy channels (as passed in callback) to Gateway connections.

Definition at line 345 of file utils.py.

def rocon_gateway.utils.create_empty_connection_type_dictionary (   collection_type = list)

Factories.

  Used to initialise a dictionary with rule type keys
  and empty lists or sets (or whatever collection_type passed as argument).

Definition at line 327 of file utils.py.

def rocon_gateway.utils.decrypt (   ciphertext,
  key 
)

Definition at line 277 of file utils.py.

def rocon_gateway.utils.decrypt_connection (   connection,
  key 
)

Definition at line 282 of file utils.py.

def rocon_gateway.utils.deserialize (   str_msg)

Definition at line 186 of file utils.py.

def rocon_gateway.utils.deserialize_connection (   connection_str)

Definition at line 209 of file utils.py.

def rocon_gateway.utils.deserialize_key (   serialized_key)

Definition at line 259 of file utils.py.

def rocon_gateway.utils.deserialize_request (   request_str)

Definition at line 233 of file utils.py.

def rocon_gateway.utils.encrypt (   plaintext,
  public_key 
)

Definition at line 267 of file utils.py.

def rocon_gateway.utils.encrypt_connection (   connection,
  key 
)

Definition at line 289 of file utils.py.

def rocon_gateway.utils.format_rule (   rule)

Formatters.

Definition at line 319 of file utils.py.

def rocon_gateway.utils.generate_private_public_key ( )

Definition at line 253 of file utils.py.

def rocon_gateway.utils.get_connection_from_list (   connection_argument_list)

Definition at line 238 of file utils.py.

def rocon_gateway.utils.get_rule_from_list (   rule_argument_list)

Definition at line 243 of file utils.py.

def rocon_gateway.utils.is_all_pattern (   pattern)

Regex.

  Convenience function for detecting the 'all' pattern.

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

Definition at line 300 of file utils.py.

def rocon_gateway.utils.serialize (   data)

Definition at line 181 of file utils.py.

def rocon_gateway.utils.serialize_connection (   connection)

Definition at line 199 of file utils.py.

def rocon_gateway.utils.serialize_connection_request (   command,
  source,
  connection 
)

Definition at line 218 of file utils.py.

def rocon_gateway.utils.serialize_key (   key)

Definition at line 263 of file utils.py.

def rocon_gateway.utils.serialize_rule_request (   command,
  source,
  rule 
)

Definition at line 229 of file utils.py.

Variable Documentation

list rocon_gateway.utils.action_types = ['/goal', '/cancel', '/status', '/feedback', '/result']

Definition at line 32 of file utils.py.

list rocon_gateway.utils.connection_type_strings_list = ["publisher", "subscriber", "service", "action_client", "action_server"]

Definition at line 31 of file utils.py.

rocon_gateway.utils.connection_types
Initial value:
1 = frozenset([gateway_msgs.ConnectionType.PUBLISHER, gateway_msgs.ConnectionType.SUBSCRIBER,
2  gateway_msgs.ConnectionType.SERVICE, gateway_msgs.ConnectionType.ACTION_CLIENT, gateway_msgs.ConnectionType.ACTION_SERVER])

Constants.

Definition at line 27 of file utils.py.

list rocon_gateway.utils.connection_types_list
Initial value:
1 = [gateway_msgs.ConnectionType.PUBLISHER, gateway_msgs.ConnectionType.SUBSCRIBER,
2  gateway_msgs.ConnectionType.SERVICE, gateway_msgs.ConnectionType.ACTION_CLIENT, gateway_msgs.ConnectionType.ACTION_SERVER]

Definition at line 29 of file utils.py.

rocon_gateway.utils.difflist = lambdal1,l2:[x for x in l1 if x not in l2]

Definition at line 337 of file utils.py.

int rocon_gateway.utils.MAX_PLAINTEXT_LENGTH = 256

Encryption/Decryption.

Definition at line 250 of file utils.py.



rocon_gateway
Author(s): Daniel Stonier , Jihoon Lee , Piyush Khandelwal
autogenerated on Mon Jun 10 2019 14:40:10