Classes | Functions | Variables
rocon_gateway::utils Namespace Reference

Classes

class  Connection
 Rule. More...
class  Registration

Functions

def create_empty_connection_type_dictionary
 Factories.
def decrypt
def decrypt_connection
def deserialize
def deserialize_connection
def deserialize_key
def deserialize_request
def encrypt
def encrypt_connection
def format_rule
 Formatters.
def generate_private_public_key
def get_connection_from_list
def get_rule_from_list
def is_all_pattern
 Regex.
def serialize
def serialize_connection
def serialize_connection_request
def serialize_key
def serialize_rule_request

Variables

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

Function Documentation

Factories.

  Used to initialise a dictionary with rule type keys
  and empty lists.

Definition at line 318 of file utils.py.

def rocon_gateway.utils.decrypt (   ciphertext,
  key 
)

Definition at line 268 of file utils.py.

def rocon_gateway.utils.decrypt_connection (   connection,
  key 
)

Definition at line 273 of file utils.py.

Definition at line 180 of file utils.py.

Definition at line 201 of file utils.py.

def rocon_gateway.utils.deserialize_key (   serialized_key)

Definition at line 250 of file utils.py.

Definition at line 224 of file utils.py.

def rocon_gateway.utils.encrypt (   plaintext,
  public_key 
)

Definition at line 258 of file utils.py.

def rocon_gateway.utils.encrypt_connection (   connection,
  key 
)

Definition at line 280 of file utils.py.

Formatters.

Definition at line 310 of file utils.py.

Definition at line 244 of file utils.py.

def rocon_gateway.utils.get_connection_from_list (   connection_argument_list)

Definition at line 229 of file utils.py.

def rocon_gateway.utils.get_rule_from_list (   rule_argument_list)

Definition at line 234 of file utils.py.

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 291 of file utils.py.

Definition at line 175 of file utils.py.

Definition at line 192 of file utils.py.

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

Definition at line 210 of file utils.py.

Definition at line 254 of file utils.py.

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

Definition at line 220 of file utils.py.


Variable Documentation

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

Definition at line 31 of file utils.py.

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

Definition at line 30 of file utils.py.

Initial value:
00001 frozenset([ConnectionType.PUBLISHER, ConnectionType.SUBSCRIBER,
00002                              ConnectionType.SERVICE, ConnectionType.ACTION_CLIENT, ConnectionType.ACTION_SERVER])

Constants.

Definition at line 26 of file utils.py.

Initial value:
00001 [ConnectionType.PUBLISHER, ConnectionType.SUBSCRIBER,
00002                          ConnectionType.SERVICE, ConnectionType.ACTION_CLIENT, ConnectionType.ACTION_SERVER]

Definition at line 28 of file utils.py.

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

Definition at line 328 of file utils.py.

Encryption/Decryption.

Definition at line 241 of file utils.py.



rocon_gateway
Author(s): Daniel Stonier , Jihoon Lee , Piyush Khandelwal
autogenerated on Sat Jun 8 2019 18:48:44