Course project for CMU 16-825 - Occupancy Grid prediction using Multi-View Fisheye cameras
These instructions are for processing the bag files in ROS2. If not needed, these steps can be skipped.
sudo apt-get install ros-$ROS_DISTRO-rosbag2Next, get the rosbags python library by installing them from requirements.txt or by running the following command:
pip install rosbags
pip install rosbags-imageFor future reference, the rosbags library can be found here. This library is convenient as we don't need to setup a ROS2 environment to process the bag files.
First convert the ROS1 bag files to ROS2 using the following command:
rosbags-convert lidar_points-007.bagThis will generate a folder with a sqlite database and metadata. Copy the folder to the data directory (create if it doesn't exist) and update the path in config.py.
Then run the following script to extract the lidar data.
# From the root directory
mkdir -p data/lidar
python scripts/lidar_extractor.pyThis will take a couple of minutes and will extract the lidar data to the data directory.