Functions | |
def | extract_cbor_values (msg) |
Variables | |
list | BOOL_ARRAY_TYPES = ['bool[]'] |
list | BOOL_TYPES = ['bool'] |
list | BYTESTREAM_TYPES = ['uint8[]', 'char[]'] |
list | FLOAT_TYPES = ['float32', 'float64'] |
list | INT_TYPES = ['byte', 'char', 'int8', 'uint8', 'int16', 'uint16', 'int32', 'uint32', 'int64', 'uint64'] |
list | LIST_TYPES = [list, tuple] |
PYTHON2 = sys.version_info < (3, 0) | |
list | STRING_TYPES = ['string'] |
dictionary | TAGGED_ARRAY_FORMATS |
list | TIME_TYPES = ['time', 'duration'] |
def rosbridge_library.internal.cbor_conversion.extract_cbor_values | ( | msg | ) |
Extract a dictionary of CBOR-friendly values from a ROS message. Primitive values will be casted to specific Python primitives. Typed arrays will be tagged and packed into byte arrays.
Definition at line 37 of file cbor_conversion.py.
list rosbridge_library.internal.cbor_conversion.BOOL_ARRAY_TYPES = ['bool[]'] |
Definition at line 18 of file cbor_conversion.py.
list rosbridge_library.internal.cbor_conversion.BOOL_TYPES = ['bool'] |
Definition at line 16 of file cbor_conversion.py.
list rosbridge_library.internal.cbor_conversion.BYTESTREAM_TYPES = ['uint8[]', 'char[]'] |
Definition at line 19 of file cbor_conversion.py.
list rosbridge_library.internal.cbor_conversion.FLOAT_TYPES = ['float32', 'float64'] |
Definition at line 14 of file cbor_conversion.py.
list rosbridge_library.internal.cbor_conversion.INT_TYPES = ['byte', 'char', 'int8', 'uint8', 'int16', 'uint16', 'int32', 'uint32', 'int64', 'uint64'] |
Definition at line 13 of file cbor_conversion.py.
list rosbridge_library.internal.cbor_conversion.LIST_TYPES = [list, tuple] |
Definition at line 12 of file cbor_conversion.py.
rosbridge_library.internal.cbor_conversion.PYTHON2 = sys.version_info < (3, 0) |
Definition at line 4 of file cbor_conversion.py.
list rosbridge_library.internal.cbor_conversion.STRING_TYPES = ['string'] |
Definition at line 15 of file cbor_conversion.py.
dictionary rosbridge_library.internal.cbor_conversion.TAGGED_ARRAY_FORMATS |
Definition at line 23 of file cbor_conversion.py.
list rosbridge_library.internal.cbor_conversion.TIME_TYPES = ['time', 'duration'] |
Definition at line 17 of file cbor_conversion.py.