Questions tagged [rosbag]

Questions addressing the rosbag-package of ROS (Robot Operating System). Use it together with the ros-tag.

Being part of the (Robot Operating System), the rosbag package is a set of tools for recording from and playing back to ROS topics. It is intended to be high performance and avoids deserialization and reserialization of the messages.

The rosbag package provides a command-line tool for working with bags as well as code APIs for reading/writing bags in C++ and Python.

48 questions
0
votes
1 answer

ROS2 reading bag files

I have got a bag file in db3 format and I was trying to read its messages, deserialise them and access their fields. I couldn't find any appropriate document or working example anywhere. I only managed to load the file and display all its message…
Amir Int
  • 45
  • 7
0
votes
2 answers

Convert image bytestring entry in pandas dataframe to image in opencv

I am trying to convert image data saved in a rosbag file to numpy arrays and opencv images for further processing. I can not use cv_bridge or any of the other ROS utils. I read the rosbag using the bagpy module here. And convert the data to a pandas…
0
votes
0 answers

"SQLite error (10): disk I/O error" when playing Galactic ros2 bag

I am currently trying to run a ROS2 (Galactic)-YOLOv5 wrapper on a ROS2 bag recorded on Galactic. I know the wrapper works when it's subscribing to my webcam, however I want it to subscribe to a bag I recorded. My process to play the bag seems…
Marie
  • 11
  • 1
0
votes
0 answers

Convert mp4 into .bag file

I'm currently working with computer vision systems and I was just wondering if it is possible to convert .mp4 (or any other type of video format) into .bag files. I've tried some topics and solutions online but so far none of them were…
0
votes
1 answer

ValueError: data_class [Twist] is not a class

I am trying to get values from .yaml file for subscription and writing bag file in ROS. But i encounter with this error and i couldn't solve it. I guess I can't define my values as a class name in code. #!/usr/bin/env python3 # -*- coding: UTF-8…
Onurcan
  • 3
  • 1
0
votes
0 answers

ROS: bag file buffer burst

I am using rosbag's API: write to write messages from one bag to another, but when I run the code, an error occurs: ** terminate called after throwing an instance of 'ros::serialization::StreamOverrunException' what(): Buffer Overrun ** I think…
Jinhao
  • 1
0
votes
1 answer

Install Debian packages to run Airflow DAG

I'm running an Airflow DAG one of the operators is a BashOperator and relies on rosbag package in order to run. I installed airflow and rosbag in a VM in GCP, everything is working fine but when I trigger the DAG it keeps saying rosbag: command not…
0
votes
0 answers

Rosbag record does not record the first messages

I am having a problem with ROS rosbag. I have a python script that generates and publishes messages. I try to record them with rosbag record but the generated rosbag does not seem to contain the first messages. I have done the following: Run the…
KansaiRobot
  • 7,564
  • 11
  • 71
  • 150
0
votes
1 answer

How to generate ".svo" file from rosbag for ZED SDK

I would like to generate a point cloud from stereo videos using the ZED SDK from Stereolabs. What I have now is some rosbags with left and right images (and other data from different sensors). My problem comes when I extract the images and I create…
joseandres94
  • 23
  • 1
  • 5
0
votes
1 answer

incomplete representation of ctrl+c functionality of terminals in python code

I have an application that I execute in terminal by through the following command: rosbag record -O /home/user/some_address/file /topic which makes a file.bag.active in the above address and basically record some information inside it. After a…
Alejandro
  • 879
  • 11
  • 27
0
votes
1 answer

How to create rosbag file using usb camera provide camera images as sensor_msgs/CompressedImage and odometry as nav_msgs/Odometry

Help me to create rosbag file using usb camera which provide camera images as sensor_msgs/CompressedImage and odometry as nav_msgs/Odometry.
0
votes
1 answer

Reading ros bag file in Ubuntu and Windows using the same code yields different formats

I am currently trying to read out data from a ros bag using the python bagpy library. I have written the code for that in Windows but have recently switched to Ubuntu. If I now try to run the same code in Ubuntu the output has a different format.…
Yeggers
  • 11
  • 4
0
votes
1 answer

ROS - SerializationError when writing a bagfile with custom ROS message

I have a created a custom ros message which has the following format # Header information std_msgs/Header header # Model string model # Data uint8[] data The data is a list of 4D lists reading from csv file def createData(csv_file): x,y,z,w…
Mostafa Hussein
  • 361
  • 4
  • 16
0
votes
1 answer

Error occurs when I run command "rosbag play example.bag". Could not find library corresponding to plugin rosbag/NoEncryptor

I am currently learning how to use rosbag, but when I run the command "rosbag play D:\summer_project\20200619_123634.bag", I got the following error: C:\Windows\System32>rosbag play D:\summer_project\20200619_123634.bag [ INFO]…
Feng Bin
  • 21
  • 3
0
votes
2 answers

bash script won't loop over lines in file when certain command executed

My script reads a list of ".bag" files from a textfile supplied as an argument. and does something with each one. (for clarity, I have omitted most of the "stuff") while IFS= read -r bag do echo Extracting from $bag # Play the script for…
ezekiel
  • 427
  • 5
  • 20