Skip to main content

Efficient and user-friendly point cloud data loader for the KAIST dataset, supporting multiple coordinate systems and numpy compatibility.

Project description

中文文档

This document is a translation of the original Chinese documentation. For the original version, please refer to README_CN.md.

KAIST Dataloader

Easily read point cloud data and pose information from the KAIST dataset.

Project Overview

This project aims to provide an efficient and user-friendly point cloud data loader for the KAIST dataset, supporting multiple coordinate system conversions, iteration, slicing operations, and more. It is suitable for scenarios such as autonomous driving, SLAM, and 3D reconstruction.

Features

  • Multiple Coordinate Systems Supported:
    • base_link: Vehicle local coordinate system
    • map: Coordinate system with the first frame as the origin
    • world: Global GPS coordinate system
  • Iterator & Slicing: Supports iteration, slicing, and random access
  • Numpy Compatibility: Can read directly from numpy arrays
  • Dataset Length Retrieval: Supports the len() method
  • Mixed Loading: Automatically mixes and loads VLP_Left and VLP_Right point clouds sorted by timestamp

Installation

pip install -e .
# Or use uv
uv pip install -e .

Quick Start

from kaist_dataloader import KaistPointCloudLoader

loader = KaistPointCloudLoader("/path/to/kaist/campus00", frame_id="map")
cld, pose = loader[0]  # Read the first point cloud and its pose

# Iterative access
for cld, pose in loader[:10]:
    # Process point cloud and pose
    pass

# Get dataset length
print(len(loader))

C++/pybind11 Example

This project supports direct invocation of the Python loader in C++ via pybind11, suitable for integration with C++ projects.
Sample code can be found in example/cpp/main.cc. Ensure the root path points to a valid KAIST dataset directory.

Build and Run Steps

  1. Activate Python virtual environment (ensure kaist-dataloader and pybind11 are installed)
  2. Modify line 18 in main.cc to set the root variable to your dataset path, e.g., /ws/data/kaist/campus00
  3. Build the project:
    cd example/cpp
    cmake -S . -B build
    cmake --build build
    
  4. Run the example:
    ./build/embed_loader
    

After running, the output will show the dataset length, and the shapes of the point cloud and pose.

Notes

  • The loader mixes left and right LiDAR data by default, and the returned pose is in the specified coordinate system.
  • For fine-grained control over loading, use the kaist_dataloader.basic module.
  • Point cloud data format: [x, y, z, intensity]; pose format: 4x4 transformation matrix.

Dependencies

  • numpy
  • scipy

Development/testing dependencies:

  • open3d
  • matplotlib
  • pytest
  • ipykernel

Changelog

  • v0.1.0: Initial version, implemented the

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

kaist_dataloader-0.1.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kaist_dataloader-0.1.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file kaist_dataloader-0.1.0.tar.gz.

File metadata

  • Download URL: kaist_dataloader-0.1.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.12

File hashes

Hashes for kaist_dataloader-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2f34156cb819a3bd87e98269919e796ef9f6bcffbbe73b15317a50430ef6e22d
MD5 b378f4a645f01f21e19ef2edd7a67f88
BLAKE2b-256 b7626e81d409ba3a2d3d8a600e5d8b796999be38deac24129e0d9c61617a07fe

See more details on using hashes here.

File details

Details for the file kaist_dataloader-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kaist_dataloader-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4375ba8b802a8a75d578444c1f2db1b33dcd0d4204c868a8214693463c7340f0
MD5 71625bcd2aa9a79bec1a16861929ccb1
BLAKE2b-256 135f36769e51ac1cd5842ed94abd2d6a422fdc460a3a4e24fb42f4589b9e3d10

See more details on using hashes here.

Supported by

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