Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.
/ ai2thor-slam Public archive

Integrating different SLAM algorithms with ai2thor

Notifications You must be signed in to change notification settings

apoorvkh/ai2thor-slam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ai2thor-slam

Prototyping and integrations of different SLAM algorithms with ai2thor.

Currently supports:

Currently, ORB-SLAM2 seems to produce the most accurate trajectory for the ai2thor environment (see demo).

Requirements:

  • Docker
  • nvidia driver and compatible CUDA version

Building container

export SLAM=gradslam # or orbslam2, orbslam3

# Building ai2thor-docker image
if [[ "$(docker images -q ai2thor-docker:latest 2> /dev/null)" == "" ]]; then
    git clone git@github.com:allenai/ai2thor-docker.git
    cd ai2thor-docker
    ./scripts/build.sh
    cd ..
fi

# Building ai2thor + SLAM image
bash ./build_ai2thor_docker.sh && cd $SLAM
docker build -t ai2thor-$SLAM:latest .

Starting the container

export SLAM=gradslam # or orbslam2, orbslam3

docker run --privileged --env="DISPLAY" -v /tmp/.X11-unix:/tmp/.X11-unix:rw -it ai2thor-$SLAM:latest bash

Running demo

Outside of Docker container, run xhost +local:root

In Docker container, run python3 demo/example_agent.py

About

Integrating different SLAM algorithms with ai2thor

Resources

Stars

Watchers

Forks