Git Product home page Git Product logo

decentr-vslam's Introduction

Data-Efficient Decentralized Visual SLAM Project

This is a Python implementation of the paper Data-Efficient Decentralized Visual SLAM by Titus Cieslewski, Siddharth Choudhary and Davide Scaramuzza.

This was implemented by Team 13 (Aishwarya Unnikrishnan, Devesha Tewari, Lu Wen, and Haonan Chang) for the course EECS 568: Mobile Robotics at University of Michigan.

Kindly refer to our report and our website. See our wiki for further technical troubleshooting issues.

1. Getting Started

You may want to reference our report before running the code and ensure that you installed all the listed prerequisites beforehand.

Prerequisites:

ORB-SLAM2

Install ORB-SLAM2 for Visual Odometry. You must have the following dependencies: C++11, Pangolin, OpenCV, Eigen3.

ROS

Install the ROS ecosystem. We tested on Ubuntu 16.04 and ROS Kinetic. Additionally, install catkin tools, vcstool, OpenCV-nonfree dev, autoconf and libglew-dev.

sudo add-apt-repository --yes ppa:xqms/opencv-nonfree
sudo apt-get update
sudo apt-get install python-catkin-tools python-vcstool libopencv-nonfree-dev autoconf libglew-dev

ROS DSLAM package

This implementation uses the ROS services to be running with our code. After installing ROS, execute the following:

# Create a new catkin workspace if needed:
mkdir -p my_ws/src
cd my_ws
catkin config --init --mkdirs --extend /opt/ros/<YOUR VERSION> --merge-devel --cmake-args -DCMAKE_BUILD_TYPE=Release

# Clone dslam:
cd src
git clone [email protected]:uzh-rpg/dslam_open.git

# Clone dependencies:
vcs-import < dslam_open/dependencies.yaml

# Build:
catkin build

Distributed Trajectory Estimation

Build the distributed-mapper 'feature/logging' branch in the folder you've cloned the code. The unit tests are not necessary and they may require extra dependencies. You will require the 'runDistributedMapper' executable to run decentralized optimization.

Our Decentralized Visual SLAM System Repository

Clone the repository:

git clone https://github.com/decentr-vslam/decentr-vslam

Download the data to run the experiments. Extract the kitti/ and robotcar_netvlad_feats/ folders inside clone of the repository.

Generate NetVLAD descriptors

You can simply download the NetVLAD descriptors on KITTI dataset and use it for simulation.

If you want to generate NetVLAD descriptors for other dataset, we also provide with the codes.

First, download the well-trained checkpoint. Put the checkpoint folder under the same folder of NetVLAD. Then run the file getNetVLAD.py to generate a .json file of netvlad descriptors.

Configure Parameters

Due to the amount of data generated, we have provided parameters which dictate if data should be generated or reloaded. Once the system was run once, you can change the following parameters to load the previously generated data. This is found in main.py.

# Configure params for generation/loading of data
# (1) - Generate data (default)
# (0) - Load previously generated data
regen_data = 1
regen_robots = 1
regen_stream = 1

2. Running the System

Run a process of the verification_request_server from the ROS package in the same folder you're executing the main function from.

../../<insert your ROS workspace>/devel/lib/dslam/verification_request_server temp_request.txt temp_result.txt temp_lock.txt

Run the system

python3 main.py

3. Make Statics

If you need to watch the average static error (ATE):

Use evalAccuracy in static_tool moudule.

4. Checkpoints for Running the Code

Data is loaded:

GenData

Decentralized Visual Place Recognition (DVPR):

DVPR

Relative Pose Estimation (RelPose):

RelPose

Decentralized Optimization (DOpt):

DOpt

Acknowledgments

  • Thank you to Maani Ghaffari Jadidi, our course instructor for his support.
  • Thank you to Titus Cieslewski, Siddharth Chourdhary and Davide Scaramuzza who authored the paper "Data-Efficient Decentralized Visual SLAM", which our work was based on.
  • Thank you to the contributors of the folowing repositories which we utilized in our project:

decentr-vslam's People

Contributors

d3vesha avatar katanachan avatar changhaonan 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.