ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Ros2 bag deserialize

asked 2020-12-04 04:20:02 -0600

rostyv gravatar image

Hi everybody, I have problem related to the reading of the data contained in a bag. I've recorded data coming from sensors in a bag (.db3) and I would like to read this with sqlite browser, but the data column is filled with BLOB since the record produces binary stream data. I've seen on internet that this problem is related to the serialization of the messages sent over the topic. Is there a simple way to deserialize it, using python?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-12-07 07:39:34 -0600

Ana de Sousa gravatar image

You may use rosidl_runtime_py.utilities.get_message() and rclpy.serialization.deserialize_message(). They wrap around rmw_deserialize.

I suggest checking this discussion for more details: https://github.com/ros2/rosbag2/issue...

edit flag offensive delete link more

Comments

Python is not finding rclpy.serialization. Is this only available in releases for Foxy and after? I am currently on Eloquent

wilkinsaf gravatar image wilkinsaf  ( 2021-05-04 10:15:26 -0600 )edit

Yes, pretty sure it is in Foxy & later, I have a Foxy docker to use it.

stevman gravatar image stevman  ( 2021-11-24 08:54:24 -0600 )edit

Question Tools

3 followers

Stats

Asked: 2020-12-04 04:20:02 -0600

Seen: 2,303 times

Last updated: Dec 07 '20