Functions | Variables
objectutils Namespace Reference

Functions

def _get_special_typedef
def _get_subtypedefs_recursive
def _get_typedef
def _get_typedefs_recursive
def _type_name
def _type_name_from_instance
def get_service_request_typedef
def get_service_request_typedef_recursive
def get_service_response_typedef
def get_service_response_typedef_recursive
def get_typedef
def get_typedef_recursive

Variables

list atomics = ['bool', 'byte','int8', 'uint8', 'int16', 'uint16', 'int32', 'uint32', 'int64', 'uint64', 'float32', 'float64', 'string']
list specials = ['time', 'duration']

Function Documentation

def objectutils._get_special_typedef (   type) [private]

Definition at line 115 of file objectutils.py.

def objectutils._get_subtypedefs_recursive (   typedef,
  typesseen 
) [private]

Definition at line 141 of file objectutils.py.

def objectutils._get_typedef (   instance) [private]
Gets a typedef dict for the specified instance 

Definition at line 66 of file objectutils.py.

def objectutils._get_typedefs_recursive (   type,
  typesseen 
) [private]
returns the type def for this type as well as the type defs for any fields within the type 

Definition at line 127 of file objectutils.py.

def objectutils._type_name (   type,
  instance 
) [private]
given a short type, and an object instance of that type, 
determines and returns the fully qualified type 

Definition at line 152 of file objectutils.py.

def objectutils._type_name_from_instance (   instance) [private]

Definition at line 167 of file objectutils.py.

Returns a typedef dict for the service request class for the specified service type 

Definition at line 31 of file objectutils.py.

Returns a list of typedef dicts for this type and all contained type fields 

Definition at line 48 of file objectutils.py.

Returns a typedef dict for the service response class for the specified service type 

Definition at line 37 of file objectutils.py.

Returns a list of typedef dicts for this type and all contained type fields 

Definition at line 57 of file objectutils.py.

def objectutils.get_typedef (   type)
A typedef is a dict containing the following fields:
     - string type
     - string[] fieldnames
     - string[] fieldtypes
     - int[] fieldarraylen
     - string[] examples 
get_typedef will return a typedef dict for the specified message type 

Definition at line 11 of file objectutils.py.

Returns a list of typedef dicts for this type and all contained type fields 

Definition at line 43 of file objectutils.py.


Variable Documentation

list objectutils::atomics = ['bool', 'byte','int8', 'uint8', 'int16', 'uint16', 'int32', 'uint32', 'int64', 'uint64', 'float32', 'float64', 'string']

Definition at line 7 of file objectutils.py.

list objectutils::specials = ['time', 'duration']

Definition at line 8 of file objectutils.py.



rosapi
Author(s): Jon
autogenerated on Thu Jan 2 2014 11:53:39