Functions | |
def | _get_special_typedef (type) |
def | _get_subtypedefs_recursive (typedef, typesseen) |
def | _get_typedef (instance) |
def | _get_typedefs_recursive (type, typesseen) |
def | _type_name (type, instance) |
def | _type_name_from_instance (instance) |
def | get_service_request_typedef (servicetype) |
def | get_service_request_typedef_recursive (servicetype) |
def | get_service_response_typedef (servicetype) |
def | get_service_response_typedef_recursive (servicetype) |
def | get_typedef (type) |
def | get_typedef_recursive (type) |
Variables | |
list | atomics = ['bool', 'byte','int8', 'uint8', 'int16', 'uint16', 'int32', 'uint32', 'int64', 'uint64', 'float32', 'float64', 'string'] |
list | specials = ['time', 'duration'] |
|
private |
Definition at line 145 of file objectutils.py.
|
private |
Definition at line 171 of file objectutils.py.
|
private |
Gets a typedef dict for the specified instance
Definition at line 96 of file objectutils.py.
|
private |
returns the type def for this type as well as the type defs for any fields within the type
Definition at line 157 of file objectutils.py.
|
private |
given a short type, and an object instance of that type, determines and returns the fully qualified type
Definition at line 182 of file objectutils.py.
|
private |
Definition at line 197 of file objectutils.py.
def rosapi.objectutils.get_service_request_typedef | ( | servicetype | ) |
Returns a typedef dict for the service request class for the specified service type
Definition at line 61 of file objectutils.py.
def rosapi.objectutils.get_service_request_typedef_recursive | ( | servicetype | ) |
Returns a list of typedef dicts for this type and all contained type fields
Definition at line 78 of file objectutils.py.
def rosapi.objectutils.get_service_response_typedef | ( | servicetype | ) |
Returns a typedef dict for the service response class for the specified service type
Definition at line 67 of file objectutils.py.
def rosapi.objectutils.get_service_response_typedef_recursive | ( | servicetype | ) |
Returns a list of typedef dicts for this type and all contained type fields
Definition at line 87 of file objectutils.py.
def rosapi.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 41 of file objectutils.py.
def rosapi.objectutils.get_typedef_recursive | ( | type | ) |
Returns a list of typedef dicts for this type and all contained type fields
Definition at line 73 of file objectutils.py.
list rosapi.objectutils.atomics = ['bool', 'byte','int8', 'uint8', 'int16', 'uint16', 'int32', 'uint32', 'int64', 'uint64', 'float32', 'float64', 'string'] |
Definition at line 37 of file objectutils.py.
list rosapi.objectutils.specials = ['time', 'duration'] |
Definition at line 38 of file objectutils.py.