Giter Site home page Giter Site logo

anil-kk / 568-final-project Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stevenliu216/lidar-odometry-and-mapping

0.0 1.0 0.0 16.52 MB

Final Project for EECS/NAVARCH 568 (Mobile Robotics)

MATLAB 1.95% CMake 0.53% C++ 97.02% Python 0.50%

568-final-project's Introduction

568-Final-Project

This is Team 18's final project git repository for EECS 568: Mobile Robotics. The title of our project is Visual Lidar Odometry and Mapping with KITTI, and team members include: Ali Abdallah, Alexander Crean, Mohamad Farhat, Alexander Groh, Steven Liu and Christopher Wernette.

A sample ROS bag file, cut from sequence 08 of KITTI, is provided here.

You can see the results of the algorithm running here:

result
LOAM on KITTI 08 (click for full video)

Getting Started

First, we recommend you read through our paper uploaded on this repository. Next, read the three directly related works: VLOAM, LOAM, and DEMO.

We recommend you read through the original V-LOAM paper by Ji Zhang and Sanjiv Singh as a primer. Follow that up with the LOAM paper by the same authors. Finally, conclude with reading DEMO paper by Ji Zhang et all. These will give you theoretical understanding of the V-LOAM algorithm, and all three provide many references for further reading.

Prerequisites

First you will need to install Ubuntu 16.04 in order to run ROS-Kinetic. We recommend primary or dual booting Ubuntu as we encountered many issues using virtual machines, which are discussed in detail in our final paper. Next up, you will need to install ROS-Kinetic as our algorithm has only been validated on this version of ROS. You can find a detailed installation guide here. After that step, you will need to download some KITTI Raw Data. We recommend reading through their odometry eval kit to decide which Sequence you would like to run. Following this, you will need to download and install the kitti2bag utility. Detailed instructions can be found within the github README.md. Convert your KITTI raw data to a ROS .bag file and leave it in your ~/Downloads directory. As a final prerequisite, you will need to have Matlab installed to run our benchmarking code, although it is not necessary in order

Installing

Before installing this package, ensure that velodyne drivers are installed. A ROS package is provided at [https://github.com/ros-drivers/velodyne]. Short summary of installation instructions:

$ sudo apt-get install ros-{YOUR ROS DISTRO}-velodyne  
$ cd ~/catkin_ws/src/  
$ git clone https://github.com/ros-drivers/velodyne.git  
$ cd ~/catkin_ws  
$ catkin_make  

After installing velodyne drivers, proceed by cloning our loam_velodyne directory into your ~/catkin/src directory. This can be done simply by:

$ cd ~/catkin_ws/src/
$ git clone https://github.com/stevenliu216/568-Final-Project.git
$ cd ~/catkin_ws

Move all files not associated with the source code found in the loam_velodyne directory to a new location, since you may want to use it later but don't want to have any issues building the project. Next build the project.

$ catkin_make -DCMAKE_BUILD_TYPE=Release 
$ source ~/catkin_ws/devel/setup.bash

In order to run our code and playback a bag file, in one terminal run:

$ roslaunch loam_velodyne loam_velodyne.launch

And in a second terminal run:

$ rosbag play ~/Downloads/YOUR_BAG_FILE_NAME.bag 

On a slower computer, you may want to set the rate setting to a slower rate in order to give your computer more time between playback steps. This can be done by changing .1 to your preferred rate:

$ rosbag play -r .1 ~/Downloads/YOUR_BAG_FILE_NAME.bag 

You can now play around with the different frames, point cloud objects, etc. to better visualize the LOAM algorithm. We recommend opening a third terminal and typing:

$ rqt_graph &

to see the flow of data throughout the project. This will also help you debug any issues if your .bag file was formatted incorrectly or if you want to add new features to the code.

Visualizing Odometry

Install the Rqt Multiplot Plugin tool found here

On one terminal run:

$ roscore

On a separate terminal run:

$ rqt --force-discover

In the menu bar, select plugins -> visualization -> multiplot Detailed instructions for how to format plots can be found at the github source.

In a third terminal, run this command:

$ roslaunch loam_velodyne loam_velodyne.launch

And finally, in a fourth terminal, run:

$ rosbag play kitti_bag_file

Make sure to hit the play button in top right corner of the plots, after running the kitti .bag file. Allow LOAM to run to completion.

Note: You can also record the topic aft_mapped_to_init or integrated_to_init in a separate bag file, and just use that with rqt_multiplot. This will run much faster.

Running the Benchmarking Code

In order to run the benchmarking code, which computes errors as well as plots the odometry vs ground truth pose, you will need to echo out the x, y, z positions of the vehicle to a text file which we will then post process. To do this, open a third terminal and type this command before running the .bag file:

$ rostopic echo /laser_odom_to_init/pose/pose/position > FILENAME.txt

Next, you will need to download the ground truth data from the KITTI ground truth poses from here. Move your echoed out file and the raw data file to the Benchmarking directory which contains our script. You will need to modify this script to match your filenames but otherwise no additional modification is needed.

Acknowledgments

Thank you to Maani Ghaffari Jadidi our EECS 568 instructor, as well as the GSIs Lu Gan and Steven Parkison for all the support they provided this semester. You can find a link to our course website here. We would like to acknowledge Ji Zhang and Sanjiv Singh, for their original papers and source code, as well as Leonid Laboshin for the modified version of Ji Zhang and Sanjiv Singh's code, which was taken down. Leonid's repository can be found here.

568-final-project's People

Contributors

stevenliu216 avatar chriswernette avatar ahabdallah27 avatar grohup avatar

Watchers

James Cloos 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.