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
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 ...
ALNA_Perera's user avatar
0 votes
0 answers
49 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
48 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
74 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
129 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
20 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
71 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
18 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
315 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
342 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
  • 56
1 vote
1 answer
131 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
  • 31
1 vote
1 answer
897 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