Skip to main content

Development kit for VBR SLAM dataset

Project description

VBR Development Kit

PyPI - Version PyPI - Downloads

This kit contains utilities to work on the VBR SLAM dataset

Install

pip install vbr-devkit

You can install autocompletion for our package by typing:

vbr --install-completion

you might need to restart the shell for the autocompletion to take effect.

Usage

Download sequences

You can list the available sequences you can download by typing:

vbr list

You should see something similar to this list

After choosing your sequence, you can type

vbr download <sequence_name> <save_directory>

For instance, we could save campus_train0 as follows:

vbr download campus_train0 ~/data/

N.B. The script will actually save the sequence at <save_directory>/vbr_slam/<sequence_prefix>/<sequence_name>. Moreover, by calling the previous command, we expect the following directory:

data
  - vbr_slam
    - campus
      - campus_train0
        - vbr_calib.yaml
        - campus_train0_gt.txt
        - campus_train0_00.bag
        - campus_train0_01.bag
        - campus_train0_02.bag
        - campus_train0_03.bag
        - campus_train0_04.bag                     

Convert format

The sequences are provided in ROS1 format. We offer a convenient tool to change representation if you prefer working on a different format. You can see the supported formats by typing:

vbr convert --help

To convert a bag or a sequence of bags, type:

vbr convert <desired_format> <input_directory/input_bag> <output_directory>

for instance, we could convert the campus_train0 sequence to kitti format as follows:

vbr convert kitti ~/data/vbr_slam/campus/campus_train0/campus_train0_00.bag ~/data/campus_train0_00_kitti/

We can expect the following result:

data
  - campus_train0_00_kitti
    - camera_left
      - timestamps.txt
      - data
        - 0000000000.png
        - 0000000001.png
        - ...
    - camera_right
      - timestamps.txt
      - data
        - 0000000000.png
        - 0000000001.png
        - ...
    - ouster_points
      - timestamps.txt
      - data
        - .dtype.pkl
        - 0000000000.bin
        - 0000000001.bin
        - ...
    - ... 

N.B. In KITTI format, point clouds are embedded in binary files that can be opened using Numpy and pickle as follows:

import numpy as np
import pickle

with open("campus_train0_00_kitti/ouster_points/data/.dtype.pkl", "rb") as f:
    cdtype = pickle.load(f)

cloud_numpy = np.fromfile("/campus_train0_00_kitti/ouster_points/data/0000000000.bin", dtype=cdtype)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vbr_devkit-0.0.3.tar.gz (12.0 kB view details)

Uploaded Source

File details

Details for the file vbr_devkit-0.0.3.tar.gz.

File metadata

  • Download URL: vbr_devkit-0.0.3.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for vbr_devkit-0.0.3.tar.gz
Algorithm Hash digest
SHA256 cb65c8a342b68598a1ab5a48a54e5634044db28a7023dbe2839d8204f194fd1e
MD5 4ba283138a9e72a1a37f32e8f4e83475
BLAKE2b-256 af85a1d9fa1d5ed968f700b8b76cb92bdf6a0d67fedffc851119d91d2815c14c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page