Questions tagged [rosbag]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
24 views

jade - rosbag play with remap

Hi, I would like to play a bag file with rosbag and remap the topics (e.g.: /myTopic:=/playback/myTopic). I tried with launch file: ...
1 vote
2 answers
691 views

Converting a ros2 bag of color raw images to image files or video

This is using ros2 Humble in Ubuntu 22.04 and native Python 3.10 Eventual goal: capturing depth aligned RGB and Depth streams from Intel RealSense D435 camera and converting them to RGB and Depth ...
0 votes
2 answers
36 views

rosbags-convert fails with assertion error

I am trying to convert some fairly large (~50GB) bag files recorded in melodic so that I can use it with humble. I'm using the rosbags python library. It fails with ...
0 votes
0 answers
7 views

How to get information about a bag without downlaoding the whole thing

I have a bunch of huge bags stored in the cloud and I am trying to build a database of all the data. I want to try to gather information about this bags, like the date, which topics it has, etc., by ...
0 votes
0 answers
18 views

Convert rosbag file into carmen log file

Is it possible to convert a rosbag file to a slam log file in carmen format? I have the bag file available and I need CARMEN style logfiles in a format like the follow: ...
0 votes
3 answers
590 views

Can I filter out or rename topics from a bag file?

I have a bag file with several topics (a lot of them, actually), and I'm trying to launch it from a launch file. However, in my test case that I want to run, I want to exclude a topic and insert my ...
0 votes
0 answers
35 views

Recover data from incorrectly terminated bag

I have bag whose recording was abruptly terminated due to a power outage. When I run rosbag reindex I can see that the reindexed bag is around 300 KB smaller than ...
1 vote
1 answer
98 views

Read h264 compressed images with rosbag API

Below is an example of how to use the ROSBag API to extract image data from a ROSBag file, and then visualize that data using OpenCV. ...
0 votes
1 answer
103 views

Does rosbag play with multiple bags and -s and -u parameters know not to fully load bags that don't overlap with those times?

If rosbag play were to quickly get start and end times for each bag provided for playback it could discard those that don't overlap at all, once it knows what the full time span of all the bags are (...
0 votes
0 answers
286 views

plotjuggler read rosbag error

when i run run plotjuggler plotjuggler to read data from a bag file, i encounter the following errors: ...
0 votes
2 answers
178 views

How to convert the kittti dataset into ros2 bags?

How to convert the kitti dataset into ros2 bags, or is possible to download it already converted?
1 vote
1 answer
46 views

How to keep track of different robot configurations/ versions (urdf) over time

At my company, we are facing the following problem. We have a platform on which we often try different sensor configurations. Often the amount of sensors and type stay the same, but the extrinsic ...
1 vote
0 answers
13 views

rosbag clock different

When I run command "rosbag play --clock A.bag" and "rostopic echo /clock" two times for catching the simulated clock time, there start time and time duration is not the same, e.g. ...
0 votes
3 answers
772 views

Formatting ROS data to .csv file

I created a Rosbag of turtlesim data and would like to export the x and y coordinates only to a .csv file. Right now, however the formatting is as such: ...
0 votes
2 answers
128 views

How to subscribe to sensor_msgs/CompressedImage without the raw image?

Recently, I recorded a large set of image data using a rosbag, but I am not able to get the subscriber working for the compressed image topic. I did not save the image_raw topic. I only saved the ...
1 vote
3 answers
191 views

Recording Large Rosbags of Lidar & Camera Data

I have been trying to find some documentation on this but was unable to really see anyhting helpful. We have 5 cameras and 3 Lidars and need to record data from all sensors. For now we have been ...
0 votes
0 answers
22 views

rqt_bag only shows first part of split bagfile

When opening a ros2-bagfile, that consists of multiple part (recorded with --max-bag-duration option), rqt_bag only shows the messages from the first part. ...
1 vote
1 answer
276 views

depth aligned capture doesn't yield same number of rgb and depth frames -- cv_bridge exception: '[16UC1] is not a color format. but [bgr8] is

Steps for reproducing the problem with an Intel RealSense D435 camera using ROS Noetic inside a docker. In the first terminal: ...
1 vote
1 answer
75 views

ROS2bag sample with Images

I wrote a Reader and Writer for ROS2bags in python using the Rosbags API (https://ternaris.gitlab.io/rosbags/index.html). I've recently tried writing an Image file into a ROS2bag. However if i try to ...
0 votes
0 answers
236 views

ROS2 rclcpp serialization : Cannot deserialize message of type geometry_msgs/msg/transform_stamped

I'm trying to plot the trajectory of a Crazyflie2 drone which is record on the /tf topic of a rosbag. I reused the code copied the code from this ROS2 tutorial (https://docs.ros.org/en/rolling/...
2 votes
2 answers
772 views

Convert ROS2 SQLite bag to MCAP format

I've got some ROS2 bags in SQLite format that I'd like to convert to MCAP format, but I cannot find any examples or tools that do it. I'd have hoped there would be an obvious option for ...
0 votes
0 answers
77 views

Rerecording ros bag files leads to different counts on the same topics between recordings

I recorded a rosbag during testing but realized afterwards that I had published one of the messages on the /data topic wrong. I wanted to fix this data and put it on a new topic but still have the ...
1 vote
4 answers
243 views

Is there a way to save all rosbag data into a .csv or text file?

Hi all! I would like to extract the data from the rosbag and convert it into text or .csv file to use the data into Matlab and Excel. Is this possible ? Originally posted by ETS-Dronolab on ROS ...
0 votes
0 answers
27 views

Bag File Produced via launch file has 0 duration

I am writing bag file via rosbag. I have implemented a bagwriter class with singleton pattern for writing in bagfile ...
0 votes
1 answer
158 views

Rosbag delay and time jump

I ran a node that publishes images (with image_transport), laser_scan messages and a simple custom message. I recorded these 3 topics with rosbag. During the time it was running I didn't noticed any ...
0 votes
1 answer
93 views

How to deserialize ROS messages from Bag to ROS defined types in C++?

I want to deserialize messages from a Bag file and publishing part of their contents with ROS for further processing. I read a bagfile with the ROS C++ API. I know exactly the content (topic names and ...
0 votes
0 answers
5 views

Large Dicom File Shares

Neophyte asking- Issue is large dicom files sending to remote workstations and a diagnosis of too many bags. What is best solution?
0 votes
0 answers
65 views

Last incompatible policy: RELIABILITY_QOS_POLICY - ROS2 bag problem

I'm using ROS2 Humble on Ubuntu 20.04 and I'm trying to export my ros bags to CSV files. In order to save the data, I created a python consumer that reads the messages and keep them in memory. This is ...
1 vote
0 answers
335 views

What is the correct procedure for rosbag *.active if it is just not closed properly?

If there is a rosbag *.bag.active instead of *.bag, then according to the documentation and some answers in ROS answers, one should do both: rosbag reindex rosbag fix But if the most likely cause ...
0 votes
1 answer
22 views

Save all recorded bag files with `rosbag record`

I am recording data from a range scanner with ROS Melodic using the following command: rosbag record -o nav310_ws/bagFiles/session --split --duration=1 --max-splits 1 /cloud In the ...
0 votes
1 answer
210 views

Extract timestamp from bag for some topics without the time

Hi to all, unfortunately, I recorded a very long bag file containing some topics that have a timestamp and two topics that do not include it since I forgot to add it before to launch the ROS node. ...
0 votes
1 answer
11 views

Naming a node while playing from rosbag

Greetings As a part of my application logic I have a single callback to obtain data from multiple topics from multiple nodes that are subscribed. Each topic has the same message type. ...
0 votes
1 answer
59 views

Right way to replay laser scan from bag file and visualize in rviz

I recorded a rosbag containing laser scans and while trying to play it back and visualize the output in rviz I get the following warning: Detected jump back in time ...
1 vote
3 answers
252 views

sync ros bag timestamps with ros system

Currently I am publishing frames from a ROS bag file, using recorded timestamps. When I try a publish a pointcloud using from a current node. Frames do not exist to publish the topic, this is because ...
0 votes
2 answers
14 views

What rosbag2 storage plugins are available in ROS2 galactic?

What rosbag2 storage plugins are available in ROS2 galactic? I see sqlite3. Is there any ...
0 votes
2 answers
61 views

Using rosbag to get size of each topic

I'm trying to remove unnecessary topics from a rosbag file to make it easier to distribute. In doing so, i'd like to know the size of each topic, not just the size of the bag file as a whole. However, ...
0 votes
1 answer
2 views

How to change the /tf topic message published in the data?

I use the MIT dataset to evaluate the gmapping algorithm, but the coordinate transformation maintained in the/tf topic published in the dataset is as follows: I need to use the original odom ...
0 votes
1 answer
161 views

How to read ros2 bag file in a node

Hi, I was wondering is there a better method to read ros2 bag files inside the ros2 node, I just want to send a command to run the bag files. The only source I found is this but this requires me to ...
1 vote
1 answer
320 views

convert/use rosbag1 with ROS2 on Ubuntu 22.04

Hi, I just got several datasets in the form of ROS1 rosbags. I would like to use them within ROS2 (humble), either by converting them to ROS2 bags, or by replaying them in ROS2, whatever is easier. Or ...
0 votes
1 answer
107 views

Playback ROS1 bag files in ROS2

What is the method to playback rosbag files recorded from ROS melodic in ROS2 Humble running on Ubuntu 22.04? I know the existence of ros1_bridge, but it seems for this to work I must install ROS1 and ...
0 votes
1 answer
9 views

What happens when rosbag record runs out of diskspace?

Hi, what will happen if I rosbag record ROS topics and don't have enough memory to store it? Will rosbag overwrite something or will automatic shutdown command ? Kind regards Originally posted by ...
0 votes
1 answer
4 views

I can't clean inside my bag file with python

In my code i am trying to clean my bag file in every 10 seconds and then trying to write again, but it doesn't work. I couldn't find any rosbag function to clean inside my bag file. I tried with ...
0 votes
1 answer
365 views

Custom rosbag record in launch file (several args)

Hey guys, i'm trying to use rosbag record to pass multiple arguments in a launch file, but unfortunately the folder is not created and recordings aren't started. I used the following arguments: node ...
0 votes
1 answer
23 views

rosbag: error: Cannot find rosbag/play executable

I am running ROS Noetic on Ubuntu 20.04.3 LTS. I cannot run rosbag play or rosbag record. It was working perfectly last week, ...
user avatar
0 votes
1 answer
25 views

Is it possible in ROS2 to concurrently RW a bag file?

Is it possible in ROS2 to concurrently write-to and read-from the same bag file using two different processes, kind of like using the bag file as a pipe? To my knowledge, this is not possible in ROS1,...
0 votes
2 answers
34 views

Playback of rosbag with tf2-static transforms

Hello ROS users, I've got a robot setup where (most) of the static transforms are defined by an URDF (which results in tf2-static tfs). During a testrun we recoded plenty of bag-files which where ...
0 votes
3 answers
10 views

How to save static transforms in bag files?

How do I save a static transform in a bag file so I get a self contaned bag file that can be replayed? Not it seems like for example rviz do not understand a static transform in a bag file. ...
0 votes
1 answer
72 views

Rosbag + python: reading single message

Good day. Is there any way to read a single message from a rosbag without iterating as is today possible with a txt file (in ROS1, no ROS2)? The point is to "remember" what in the rosbag ...
0 votes
1 answer
60 views

ros2 bag record Regex

Hello, I'm trying to record certain topics using ros2 bag record -a. The topics have different namespaces: /uuid21, /uuid22 and /uuid23. How do I select one ...
0 votes
1 answer
74 views

Convert Time Stamp from rosbag(Topic) to Understandable Format Y/M/D H:M:S

Hi someone would you know what the following TimeStamp means? and how to convert it to seconds or other understable format such year/month/day Hour:Minutes:Seconds? I have a car-robot that has driven ...

1
2 3 4 5
11