Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record .bag file containing miscalenous topics (not only RealSense) #3020

Closed
MTDzi opened this issue Jan 7, 2019 · 2 comments
Closed

Record .bag file containing miscalenous topics (not only RealSense) #3020

MTDzi opened this issue Jan 7, 2019 · 2 comments

Comments

@MTDzi
Copy link

MTDzi commented Jan 7, 2019

Required Info
Camera Model D435
Firmware Version 05.10.13.00
Operating System & Version Ubuntu 16 / Ubuntu 16
Kernel Version (Linux Only) 4.15.0-43 / 4.4.38-tegra
Platform PC / NVIDIA Jetson TX1
SDK Version 2.17.1
Language python
Segment Robot

Issue Description

I would like to record a ROS .bag file on my Jetson TX1, capturing data from two topics: /camera/depth/image_rect_raw and /joy. Then, I would like to read the .bag file, use some combination of post-processing functions, and serialize the data (doesn't matter how, but let's say: to TFRecord).

I produced a .bag file using rosbag record -O whatever --lz4 /joy /camera/depth/image_rect_raw, but when I used this script, I learned that:

  File "rs_extract_frames.py", line 47, in <module>
    pipeline.start(config)
RuntimeError: Failed to resolve request. Request to enable_device_from_file("house/bags_2019-01-06-14-33-36.bag") was invalid, Reason: Failed to create ros reader: Invalid file format, file does not contain topic "/file_version" nor "/FILE_VERSION"

So, my question is: how should I record a .bag file containing all the necessary data for later post-processing experiments?

@dorodnic
Copy link
Contributor

dorodnic commented Jan 8, 2019

SDK ROS-bag is (mostly) valid ROS-bag, but not every ROS-bag can be opened by the SDK.
src/media/readme.md
doc/sample-data.md
There are ways to record external data in SDK ROS-bag format, but for what you are trying to do, I'd recommend to use ROS alternatives. librealsense is only designed to handle camera data

@MTDzi
Copy link
Author

MTDzi commented Jan 8, 2019

OK,

Now I know for sure, thanks!

@MTDzi MTDzi closed this as completed Jan 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants