ROS toolbox (ROS2 bag)

40 visualizaciones (últimos 30 días)
Jesús Ferrándiz Alarcón
Jesús Ferrándiz Alarcón el 3 de Nov. de 2020
Comentada: Remo Pillat el 18 de Jun. de 2024
I would like to read bag files from ROS2 (.db3) format. Is it possible to do it with the current ROS toolbox as the information is serialized into cdr format?
  2 comentarios
Daniel Montgomery
Daniel Montgomery el 17 de Ag. de 2021
A similar problem, but now using ros2bag from matlab R2021a, I am trying to open a ros2 bag as follows:
bag = ros2bag('pathToBag') I am getting the following error message that I dont know how to interpret
>> bag = ros2bag('D:\data\rosbag2\rosbag2_2021_07_26-14_41_47')
Loading C:\Program Files\MATLAB\R2021a\bin\win64\builtins\ros\mlros2_builtins\mwros2bag_cpp_builtinimpl.dllfailed with
error: The specified procedure could not be found.
: state not recoverable: state not recoverable
***************************************************************
In the specified folder, there are 4 files
metadata.yaml 2 KB
rosbag2_2021_07_26-14_41_47.db3 1.547 MB
rosbag2_2021_07_26-14_41_47.db3-shm 32 KB
rosbag2_2021_07_26-14_41_47.db3-wal 0 KB
I'm not sure why this is not working as I just upgraded to R2021a and installed ros toolbox
Are you able to assist me in debugging this issue?
Thanks.
Cam Salzberger
Cam Salzberger el 18 de Ag. de 2021
It's probably better to make a separate question for this issue, to keep things organized.

Iniciar sesión para comentar.

Respuesta aceptada

Cam Salzberger
Cam Salzberger el 3 de Nov. de 2020
Hello Jesús,
It is not possible to read data out of ROS 2 bag databases using R2020b. There is a lot of focus on ROS 2 now though, so keep an eye on future releases for this feature.
-Cam
  2 comentarios
Cam Salzberger
Cam Salzberger el 18 de Ag. de 2021
Update: As of R2021a, you can use ros2bag to read ROS 2 bag databases!
Remo Pillat
Remo Pillat el 18 de Jun. de 2024
Thanks, Cam. The ros2bag function has been renamed to ros2bagreader.
As of R2022b, writing ROS2 bag files is also supported through the ros2bagwriter function.

Iniciar sesión para comentar.

Más respuestas (0)

Productos


Versión

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by