Advice for PointCloud2 msg types
When trying to use rosbags
deserialize_cdr
function on a PointCloud2
message I am getting this error:
File "rosbag2_parser_script_example.py", line 42, in <module>
msg = deserialize_cdr(rawdata, connection.msgtype)
File "/home/user/.local/lib/python3.8/site-packages/rosbags/serde/serdes.py", line 32, in deserialize_cdr
message, pos = func(rawdata[4:], 0, msgdef.cls)
File "<string>", line 49, in deserialize_cdr
ValueError: buffer is smaller than requested size
Any ideas how to get around this? It looks like PointCloud2
is an already supported message type...maybe there is something I am missing?
Edited by Evan Flynn