- Download the nuScenes mini dataset. You will need to make an account and agree to the terms of use.
- Extract the following files into the
data/
directory:can_bus.zip
todata/
nuScenes-map-expansion-v1.3.zip
todata/maps
v1.0-mini.tgz
todata/
- Build and run the converter container with
./convert_to_ros2bag.sh
The file of /data
structure is the same as that of foxglove/nuscenes2mcap
/data
├── can_bus
├── maps
│ ├── basemap
│ ├── expansion
│ └── prediction
├── samples
│ ├── CAM_BACK
│ ├── CAM_BACK_LEFT
│ ├── CAM_BACK_RIGHT
│ ├── CAM_FRONT
│ ├── CAM_FRONT_LEFT
│ ├── CAM_FRONT_RIGHT
│ ├── LIDAR_TOP
│ ├── RADAR_BACK_LEFT
│ ├── RADAR_BACK_RIGHT
│ ├── RADAR_FRONT
│ ├── RADAR_FRONT_LEFT
│ └── RADAR_FRONT_RIGHT
├── sweeps
│ ├── CAM_BACK
│ ├── CAM_BACK_LEFT
│ ├── CAM_BACK_RIGHT
│ ├── CAM_FRONT
│ ├── CAM_FRONT_LEFT
│ ├── CAM_FRONT_RIGHT
│ ├── LIDAR_TOP
│ ├── RADAR_BACK_LEFT
│ ├── RADAR_BACK_RIGHT
│ ├── RADAR_FRONT
│ ├── RADAR_FRONT_LEFT
│ └── RADAR_FRONT_RIGHT
└── v1.0-mini
nuScenes is a large-scale dataset of autonomous driving in urban environments, provided free for non-commercial use. This project provides helper scripts to download the nuScenes dataset and convert scenes into MCAP files for easy viewing in tools such as Foxglove Studio.
- Download the nuScenes mini dataset. You will need to make an account and agree to the terms of use.
- Extract the following files into the
data/
directory:can_bus.zip
todata/
nuScenes-map-expansion-v1.3.zip
todata/maps
v1.0-mini.tgz
todata/
- Build and run the converter container with
./convert_mini_scenes.sh
If you have a Foxglove Data Platform API key, you can use it to upload your scene data with:
docker build -t mcap_converter .
export FOXGLOVE_DATA_PLATFORM_TOKEN=<your secret token>
docker run -e FOXGLOVE_DATA_PLATFORM_TOKEN -v $(pwd)/output:/output \
mcap_converter python3 upload_mcap.py /output
This repo also contains a script that can create synthetic events from the MCAP data.
docker run -e FOXGLOVE_DATA_PLATFORM_TOKEN -v $(pwd)/output:/output \
mcap_converter python3 upload_events.py /output
pip install mypy-protobuf
protoc --python_out=. --mypy_out=. --proto_path /path/to/foxglove/schemas/schemas/proto/ /path/to/foxglove/schemas/schemas/proto/foxglove/*.proto
nuscenes2mcap is licensed under the MIT License.
Join our Slack channel to ask questions, share feedback, and stay up to date on what our team is working on.