module documentation

Undocumented

Function extract_cbor_values Extract a dictionary of CBOR-friendly values from a ROS message.
Constant BOOL_ARRAY_TYPES Undocumented
Constant BOOL_TYPES Undocumented
Constant BYTESTREAM_TYPES Undocumented
Constant FLOAT_TYPES Undocumented
Constant INT_TYPES Undocumented
Constant LIST_TYPES Undocumented
Constant PYTHON2 Undocumented
Constant STRING_TYPES Undocumented
Constant TAGGED_ARRAY_FORMATS Undocumented
Constant TIME_TYPES Undocumented
def 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.

BOOL_ARRAY_TYPES: list[str] =

Undocumented

Value
['bool[]']
BOOL_TYPES: list[str] =

Undocumented

Value
['bool']
BYTESTREAM_TYPES: list[str] =

Undocumented

Value
['uint8[]', 'char[]']
FLOAT_TYPES: list[str] =

Undocumented

Value
['float32', 'float64']
INT_TYPES: list[str] =

Undocumented

Value
['byte',
 'char',
 'int8',
 'uint8',
 'int16',
 'uint16',
 'int32',
...
LIST_TYPES =

Undocumented

Value
[list, tuple]
PYTHON2 =

Undocumented

Value
(sys.version_info < (3, 0))
STRING_TYPES: list[str] =

Undocumented

Value
['string']
TAGGED_ARRAY_FORMATS: dict[str, tuple] =

Undocumented

Value
{'uint16[]': (69, '<{}H'),
 'uint32[]': (70, '<{}I'),
 'uint64[]': (71, '<{}Q'),
 'byte[]': (72, '{}b'),
 'int8[]': (72, '{}b'),
 'int16[]': (77, '<{}h'),
 'int32[]': (78, '<{}i'),
...
TIME_TYPES: list[str] =

Undocumented

Value
['time', 'duration']