Questions tagged [rosbag]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
25 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 ...
Mikkel Tiller's user avatar
0 votes
0 answers
201 views

plotjuggler read rosbag error

when i run run plotjuggler plotjuggler to read data from a bag file, i encounter the following errors: ...
joe qiu's user avatar
1 vote
0 answers
12 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. ...
user37849's user avatar
0 votes
0 answers
14 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. ...
avb's user avatar
  • 1
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 ...
Metz's user avatar
  • 23
0 votes
2 answers
100 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?
Richard Jose's user avatar
1 vote
1 answer
60 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 ...
Now Now No's user avatar
1 vote
1 answer
194 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: ...
Mona Jalal's user avatar
1 vote
2 answers
476 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 ...
Mona Jalal's user avatar
0 votes
0 answers
163 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/...
chade's user avatar
  • 1
2 votes
2 answers
454 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 ...
Ken Y-N's user avatar
  • 143
0 votes
0 answers
56 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 ...
user36943's user avatar
0 votes
0 answers
22 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 ...
Muhammad Hamza Sajjad Abbasi's user avatar
0 votes
1 answer
78 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 ...
tricostume's user avatar
1 vote
1 answer
78 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. ...
Federico Nardi's user avatar
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?
Jay M's user avatar
  • 1
0 votes
0 answers
52 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 ...
Gorgo's user avatar
  • 101
1 vote
0 answers
265 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 ...
Kertu's user avatar
  • 13
0 votes
1 answer
119 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 ...
Mls56 's user avatar
0 votes
1 answer
14 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 ...
user avatar
0 votes
1 answer
136 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. ...
user avatar
0 votes
0 answers
16 views

what is the best workflow to plot rosbag data in a latex format?

I want to know what could be the best workflow to get data from a rosbag to a plot in a latex format? Is anyone familiar with tools for that?
sh_aldeen's user avatar
0 votes
1 answer
9 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. ...
user avatar
0 votes
1 answer
96 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 (...
Lucas Walter's user avatar
  • 3,327
0 votes
1 answer
44 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 ...
user avatar
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 ...
user avatar
1 vote
1 answer
182 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 ...
user avatar
0 votes
1 answer
121 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 ...
user avatar
0 votes
1 answer
89 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 ...
user avatar
1 vote
3 answers
140 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 ...
user avatar
0 votes
3 answers
306 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 ...
user avatar
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 ...
user avatar
0 votes
1 answer
3 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 ...
user avatar
0 votes
1 answer
275 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 ...
user avatar
0 votes
1 answer
13 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
22 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,...
user avatar
0 votes
2 answers
12 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 ...
user avatar
0 votes
1 answer
34 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 ...
user avatar
0 votes
1 answer
49 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 ...
user avatar
0 votes
1 answer
58 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 ...
user avatar
0 votes
1 answer
163 views

How to read ROS2 bag file in ROS1?

Hello, I would like to convert a ROS2 bag file (.db3) to ROS1 bag file (.bag). This question has been asked before but we no answer so I decided to repeat it by adding another question as well. also, ...
user avatar
0 votes
1 answer
7 views

Master-slave, are those can have different rosbags?

HI We are currently dealing with remote communication control strategy and I wonder Mater-Slave returns different rosbags if rosbag package running on different machines. In fact, we want to record ...
user avatar
0 votes
1 answer
14 views

Convert a 3d-point cloud exportable to cloudcompare or meshlab

I have a rosbag file which is saved version of the 3d mapping with the rtabmap_ros. I could visualise the pointcloud on RVIZ and RTABVIZ, but I am not sure how to save this pointcloud as a whole and ...
user avatar
0 votes
1 answer
10 views

How to create topics and synchronize them when recording a bagfile

Hello everyone, thanks for taking the time to check my post. So let me describe what I want to do. For starters I have a bag file containing a topic which carries a directory path at each message, ...
user avatar
0 votes
1 answer
3 views

Autoware.Auto ROS2Bag compatibility with Point Cloud Map Builder

We have a Livox Lidar which we plan to use to map out a route which can be used with the Autoware.Auto track. We noticed that using this tool: https://tools.tier4.jp/feature/point_cloud_map_builder/ ...
user avatar
0 votes
2 answers
11 views

How to filterout a type from a rosbag record?

I have on my hands a 18GiB rosbag that contains multiple topics of PointCloud2 type. From my experience those are the main contributors to the rosbags' size. After the bag is recorded I can use the ...
user avatar
0 votes
1 answer
5 views

Rosbag Record Until Disk is Almost Full

I am using ROS1 Noetic on a high altitude balloon payload running Ubuntu Mate 20.04 on a Raspberry Pi 4 collecting camera imagery and other sensor data. During the first flight it worked well but ...
user avatar
0 votes
1 answer
30 views

How do you start to play a bag paused?

I am playing a rosbag through a launch file (that also contains a python script and rviz) and it works fine. However, rosbag play starts to run after some time (of course). I can pause it by pressing ...
user avatar
0 votes
1 answer
12 views

Empty frame_id in `geometry_msgs/PoseStamped`

I am working on a problem where rosbag files are the benchmarking datasets provided by an external research group. I would like to visualize the 6-DoF pose of the robot which is in the bag. ...
user avatar
0 votes
1 answer
49 views

Get timestamp of current message starting from zero in rospy

I seem to have a misunderstanding regarding time in ros, especially sim-time. Aim I process a rosbag that contains many pointcloud2s and want to transform the timestamps of the incoming pointcloud to ...
user avatar

1
2 3 4 5
11