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
1
vote
2 answers

How can I synchronize two ROS bags?

Imagine I have a rosbag with some messages recorded on it. I want to extract some messages, do some operations on it and then record another "results" bag. Later I want to rosbag play both bag files and I want them to play at the same pace, ergo…
KansaiRobot
  • 7,564
  • 11
  • 71
  • 150
1
vote
2 answers

ROS time. Trying to recover time when recorded to a file

I am trying to get the timestamp for a particular ROS message, record it in a file, read the file and recover the original timestamp. So far unsuccessfully . Here is my code import os import os.path import rosbag from sensor_msgs.msg import…
KansaiRobot
  • 7,564
  • 11
  • 71
  • 150
1
vote
1 answer

Why are Velodyne PointCloud2 messages recording to rosbags inconsistently?

I have a Velodyne VLP-16 "Puck" lidar that I am trying to use with Google Cartographer in ROS. I've set "npackets" in the velodyne driver to 1, to get the message frequency we see in Google's sample bag files, but the messages seem to be published…
Michael Kossin
  • 342
  • 3
  • 14
1
vote
0 answers

Convert bag file to a common pointcloud format

OS: Ubuntu 18.04 Lidar: Livox Mid 40 Hello, im using livox mid 40 which export point cloud to .lvx files or rosbags. I am looking for a way to convert these files to a common pointcloud format like ply, las, laz so i can use it to programs like…
ManChrys
  • 61
  • 6
1
vote
0 answers

rosbag.bag.ROSBagFormatException: Error reading header: expecting 606348583 bytes, read 871518

I am trying to create an UI interface where all the videos in ROS bag file will be played simultaneously. For this I have used threading concept like each thread for each video. I am able to play all videos , but while playing the following error…
vaasu varma
  • 85
  • 1
  • 7
1
vote
1 answer

Frame didn't arrived within 5000 while reading .bag file - pyrealsense2

I'm trying to read the frames in the .bag files with pyrealsense2. I followed the read_bag_example by Intel. Here's the full sample that the code that I'm using. import numpy as np import pyrealsense2 as rs import os import time import cv2 i =…
Physicing
  • 532
  • 5
  • 17
1
vote
0 answers

Publishing Prerecorded Lidar-PCAP file and IMU-Measurments as ros-bag

I have a prerecorded lidar point-clouds as pcap-file and also IMU and GPS records. All sensors were synchronized over gps-time. I would like to publish them as ROS-messages in real-time, which means I should read each point-cloud frame and…
arash javanmard
  • 1,362
  • 2
  • 17
  • 37
0
votes
1 answer

Why am I getting an "Uncaught (in promise)" error while using rosbag.js to open a bag file

I'm trying to open and parse bag file. Using the code below. window.setImmediate = window.setTimeout; import { open } from 'rosbag'; const inputElement = document.getElementById("input"); inputElement.addEventListener("change", handleFiles,…
0
votes
0 answers

ModuleNotFoundError: No module named 'cv_bridge.boost.cv_bridge_boost'

I have already installed ros noetic distribution and the sudo apt-get install ros-noetic-cv-bridge and sudo apt-get install ros-noetic-cv-bridge successfully. However, when I am trying to run the following code in pycharm, I am getting the following…
S.EB
  • 1,966
  • 4
  • 29
  • 54
0
votes
0 answers

roslz is imported in the pycharm terminal but not in the python code. why?

I have installed the ROS Noetic by following the commands in this link in ubuntu 20.4. the installation seems to be successful. When I am importing the roslz4in the Pycharm Terminal, it is importing it as follows: (hsi-env)…
S.EB
  • 1,966
  • 4
  • 29
  • 54
0
votes
1 answer

Save all recorded bag files acquired from a sensor using `rosbag record`

I am recording data from a range scanner with "sick_scan_xd" on ROS Melodic using the following command: rosbag record -o nav310_ws/bagFiles/session --split --duration=1 --max-splits 1 /cloud where nav310_ws/bagFiles is the folder where the latest…
AEW
  • 113
  • 4
0
votes
0 answers

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 the bag…
Gorgo
  • 456
  • 1
  • 7
  • 19
0
votes
2 answers

No module named 'roslib' when convert .bag to .mp4

I used Intel RealSense Depth Camera D435i to record some videos, exported them as a .bag file and try to convert them into .mp4. I just found a GitHub repo that has done a similar thing called rosbag2video. However, when I installed the dependencies…
Vopsix
  • 3
  • 2
0
votes
1 answer

ROS: How to start node and record a rosbag from bash script?

I want to start a ROS node and record all topics which are being published by the node. I plan to do this via a bash script. The problem is when I first start the node and record a bag file, after the processing the bag file is generated but it is…
GutzeK456
  • 39
  • 5
0
votes
1 answer

How can I install rosbag2 plugin in ros2 foxy

I am trying to install ros2bag plugin, while doing this I am encountering with this error. Starting >>> ros1_rosbag_storage_vendor Finished <<< ros1_rosbag_storage_vendor [1.05s] Starting >>> rosbag2_bag_v2_plugins --- stderr:…
draj
  • 1