Skip to content

Added Script to Convert Sensor Data to ROS ".bag" Files#109

Merged
Averyyy merged 11 commits intoinfra_a_mainfrom
Mohammad
Feb 17, 2025
Merged

Added Script to Convert Sensor Data to ROS ".bag" Files#109
Averyyy merged 11 commits intoinfra_a_mainfrom
Mohammad

Conversation

@Mhdfk
Copy link
Collaborator

@Mhdfk Mhdfk commented Feb 14, 2025

A script was written to convert images, depth maps, and point clouds to a ROS .bag file. The script assumes that all the data is in a single directory and it sorts it by file type, then matches all the 3 file types by looking at the order in which they were collected. For example, color1.png is matched with depth1.tif and lidar1.npz.
The script can be run from the terminal by specifying the directory where the data is located and where the bag file will be saved.
To visualize the .bag file, split the terminal and run in the first one:
rosbag play output.bag
and in the second one:
rviz
In RVIZ, add the data from the sensors by pressing "Add" in the bottom left corner and select which data you want to examine using the "By topic" option. RGB images and depth maps will appear in the bottom left corner of the window and point clouds will appear in the 3D map. You will be able to see the point clouds by setting "Fixed Frame" under "Global Options" to "Velodyne".

@Mhdfk Mhdfk requested a review from krishauser as a code owner February 14, 2025 17:44
@Averyyy Averyyy self-requested a review February 14, 2025 17:50
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
16 Security Hotspots

See analysis details on SonarQube Cloud

@Averyyy
Copy link
Collaborator

Averyyy commented Feb 17, 2025

lgtm

@Averyyy Averyyy merged commit 1fa8f9b into infra_a_main Feb 17, 2025
3 of 4 checks passed
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

Successfully merging this pull request may close these issues.

4 participants