-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
How to save an Intel RealSense D435 capture using ROS2 humble in a .bag file in mp4 format? #2918
Comments
Hi @monajalal The master branch of the rosbag2video repository now states support for Humble. |
@MartyG-RealSense |
@MartyG-RealSense have it recorded it wrongly? I only have a
These were my steps (please correct me if wrong -- I am new to ros2)
You should do these steps after successfully installing realsense-viewer and being able to run it to make sure you have an RGB feed from your camera. After step 3, you should see something like the following in RVIZ.
^^^ actually I am only interested in depth align depth along with RGB bags (no other bags) similar to NVlabs/BundleSDF#82 (comment) Please let me know if further info may be needed. |
You do not need to launch with ros2 run and ros2 launch in separate terminals. One or the other methods should be used but not both at the same time. I would recommend testing with the ros2 launch command in the first terminal with align_depth enabled and run rviz2 in a second terminal.
Then after launch of the camera has completed, record all currently published ROS topics to a bag file by using ros2 bag record -a, which I see that you have already done. Once you have the bag file then you can use it with rosbag2video to convert the bag file to a video. |
@MartyG-RealSense thanks a lot for your response. I followed your instructions and
and
and in second window I see these messages:
and finally, I get an error in rviz and cannot visualize the image: as you see below, the camera is connected:
|
@MartyG-RealSense ^^^ update, I was choosing the image not from the |
@MartyG-RealSense
and with no topic, I get this error:
I also have:
and here's the metadata.yaml file content:
|
@MartyG-RealSense I think I was selecting the wrong topic, I may still be. I selected a different topic from the metadata.yaml but it seems the source is empty. I did capture for a few seconds. Is there a way to check sanity of recorded before converting or why do think I am getting this error?
I have:
|
In regard to the global status error, what happens if you change Fixed Frame from 'map' to camera_link please? In regard to your other questions, I do not have information about how a rosbag recording could be sanity checked and are not familiar with how rosbag2video works. I do apologize. |
Description
I want to save the capture in .mp4 format for use in upstream app. I am able to view the feed in RVIZ and record the capture in bag files. I don't care about the method or package used as long as I can get a depth align RGB feed along with depth from RealSense D435 camera that I can save to a video file (or a series of consecutive frames).
Expected Behavior
** clear and concise description of what you expected to happen **
Actual Behavior
** clear and concise description of what actually happened. include copied logs whenever possible **
To Reproduce
** Steps to reproduce the behavior, e.g.
System (please complete the following information)
Additional context
** Add any other context about the problem here **
and
and
Here, I read that
rosbag2video
package/git repo only works for foxy. So what is the solution for humble?The text was updated successfully, but these errors were encountered: