Skip to main content

Questions tagged [rosbag2]

Use this tag for questions related to the rosbag2 framework for logging data in ROS 2, including the command line interface (ros2 bag) and client library APIs like rosbag2_py and rosbag2_cpp.

Filter by
Sorted by
Tagged with
0 votes
0 answers
6 views

How to quit a rosbag2_transport::Player instance in C++ for ROS Humble?

I am writing a user interface for various ROS2 related functionalities. One of these functionalities is that users should be able to play or stream a ROS2 bag file. For this, I have two different ...
Bakefish's user avatar
0 votes
2 answers
57 views

How do I set publish_time on a ROS2 mcap?

I am generating synthetic data in ROS2, and the rendering step takes longer than the sensor frame rate. This isn't a problem, or hasn't been in ROS1 - I just write the stamp I want in the message ...
Chuck's user avatar
  • 15.9k
0 votes
0 answers
8 views

rosbag2 with time replaced to now

I recorded with rosbag2 some messages without the clock msg. I like now to play the bag file, but I like to get my header timestamps replaced with the current ROS time. Is there an option to do that?
Max's user avatar
  • 111
0 votes
0 answers
17 views

Method to Deserialize ROS2 mcap files without ROS environment

I am working with rosbag2 to deserialize ROS 2 logs but am facing an issue where the message definitions have changed over time. Is there a way to deserialize a ROS message without the definitions ...
Mugdha's user avatar
  • 1
0 votes
1 answer
37 views

Time synchronized messages from ros2 bags using message filters without ros2 node in C++

ROS2 Humble, Ubuntu 22.04 I have a ros2 bag which contains laserscan (~30Hz) and imu(~200Hz) messages. I am trying to do time synchronization of the two. I have seen several examples of such ...
ASH's user avatar
  • 21
0 votes
0 answers
6 views

Record itinerary of a robot with ros2 bag and replay it

I am trying to evaluate a slam algorithm and for that, I want to create several maps of my environment with the same itinerary of the robot. To do that I have tried: I recorded the topic /odom alone, ...
Agrorobotdev's user avatar
0 votes
0 answers
13 views

Replaying twist messages from a rosbag2 adds drift to the movement

I am working on a SLAM solution and I am simulating a robot with a planar_move plugin to control it on Gazebo. I am working on an Ubuntu 22.04 with ros2 humble. I can control the robot well with a ...
janonespe's user avatar
0 votes
1 answer
31 views

How to remove a specific TF message in the rosbag file?

I created a rosbag file in the humble of ros2. But I want to remove a specific message of /tf topic from the bag file. Want to remove follow message all in /tf topic. ...
PStars Lee's user avatar
0 votes
2 answers
216 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 ...
ALNA_Perera's user avatar
0 votes
0 answers
150 views

ROS2: Record two rosbags at a time - snapshot and continous - and control it via service

i want to trigger several rosbag records from a node and wonder what is the best way to do it. I know that there is a tutorial about recording from a node but i think the described way is not the best ...
Jens's user avatar
  • 1
1 vote
1 answer
54 views

Is it possible to record or log specific topics in ROS2 without publishing?

I apologize if this is a somewhat naive question, but I don't really know much about ros2's architecture beyond basic utilization. I'm a student working in autonomous vehicle research, and my team ...
2muchdata's user avatar
0 votes
0 answers
127 views

ROS2 bag record from several topics using node

I would like to record ros2 bag using node(python) and that should subscribe to several topics of different message types, can i snippet of code how to do that?
bharadwajsirigadi's user avatar
0 votes
1 answer
210 views

Ros2 bag record from multiple topics using node

I would like to record ros2 bag using node(python) and that should subscribe to several topics of different message types, may i know, how to to do that without using loops. I would like to record ...
bharadwajsirigadi's user avatar
1 vote
1 answer
22 views

Explanation required for duplicate self.subscription

Can someone please explain what the purpose of the 2nd self.subscription line is for? https://github.com/ros2/rosbag2/blob/d6030c4c26443c87a094c3091c3cd2059da3816d/...
Hommus's user avatar
  • 11
0 votes
0 answers
115 views

BagWriter and BagReader attribute not found in rosbag2_py

I'm using ROS2-humble. I would like to create a Program in VSC using python that can manually write data into a Rosbag. Apparently to write i need the attribute BagWriter from rosbag2_py. I tried that ...
Now Now No's user avatar
0 votes
0 answers
25 views

Interfacing ROS2 bag files with DPDK

Has there been any work on interfacing ROS2 and DPDK, Data Plane Development Kit? Given that multiple HD cameras inputting over Ethernet may flood an NIC, DPDK could help out as a middleware ...
Ken Y-N's user avatar
  • 143
0 votes
1 answer
540 views

ROS 2 Bag Record with Topic Remapping

Hello dear ROS Developers, I am trying to record a ros2 bag in my humble, i am having the /scan_filtered topic, now i want to record the /scan_filtered topic in a bag, but it should store inside the ...
Vignesh's user avatar
1 vote
2 answers
736 views

rosbag2 playback timing/synchronization issue

I am running into a strange issue with ros2 where bag data gets played back much too quickly. I have a ~12s recording of a pointcloud stream, but when visualizing the replay in RVIZ there are about 3-...
Xilef11's user avatar
  • 76
1 vote
1 answer
188 views

Triggering Only Error Messages with ROS 2 service call to /rosbag2_recorder/snapshot

I have been using the ROS 2 rosbag2_recorder package to record message data for analysis and testing purposes. Recently, I've been exploring the possibility of capturing only error messages in my bag ...
Dragon's user avatar
  • 41
1 vote
1 answer
1k views

How to stop writing to a bag file when using the rosbag2_py API?

I'd like to modify this example of recording a bag file from a ROS node written in Python to be able to effectively start and stop recording using a service call. My thought is I could create ...
adamconkey's user avatar