Code Monkey home page Code Monkey logo

afterkitti's Introduction

afterKITTI

Convert the KITTI dataset to python!

The perfect afterparty ๐ŸŽ‰ for python aficionados ๐Ÿ working with the KITTI dataset ๐Ÿš™.

  • Data as numpy arrays
  • Visualization with matplotlib
Camera Spatial (3D) Planar (3D)

Sample 2011_09_26_drive_0005 from the KITTI dataset.
Top: Camera data from the sample.
Bottom: Associated point cloud, car pose and trajectory in numpy & matplotlib (3D left and 2D right)

Requirements

Create a new python environment with the associated requirements:

conda create --name kitti python=3.8.10
conda activate kitti
pip install -r requirements.txt

To ensure that Python paths are properly defined, update the ~/.bashrc by adding the following lines

export AFTERKITTI_PATH=/path_to_afterKITTI
export PYTHONPATH=$PYTHONPATH:/$AFTERKITTI_PATH

Usage

You can convert any of the raw data provided in KITTI by following this procedure:

  1. Convert raw data to ROS by using kitti2bag. When doing so, follow the instructions in this issue and move it to data/rosbags folder.

    You can visualize the generated rosbags with the following commands (in separate terminals):

    rosbag play -l data/rosbags/kitti_2011_09_26_drive_0005_synced.bag
    
    rosrun rviz rviz -d rviz_view.rviz
  2. Convert ROS to Python by running:

    python afterkitti/ros2python.py

    This will generate a pickle file in the data/pickles folder.

  3. Import and visualize the dataset as follows:

       python afterkitti/load_and_visualize.py

afterkitti's People

Contributors

jonarriza96 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.