Functions | Variables
rosapi::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 rosapi.objectutils._get_special_typedef (   type) [private]

Definition at line 147 of file objectutils.py.

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

Definition at line 173 of file objectutils.py.

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

Definition at line 98 of file objectutils.py.

def rosapi.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 159 of file objectutils.py.

def rosapi.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 184 of file objectutils.py.

def rosapi.objectutils._type_name_from_instance (   instance) [private]

Definition at line 199 of file objectutils.py.

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

Definition at line 63 of file objectutils.py.

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

Definition at line 80 of file objectutils.py.

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

Definition at line 69 of file objectutils.py.

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

Definition at line 89 of file objectutils.py.

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 43 of file objectutils.py.

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

Definition at line 75 of file objectutils.py.


Variable Documentation

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

Definition at line 39 of file objectutils.py.

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

Definition at line 40 of file objectutils.py.



rosapi
Author(s): Jonathan Mace
autogenerated on Wed Sep 13 2017 03:18:17