Code Monkey home page Code Monkey logo

centertrackros's Introduction

CenterTrackROS

ROS implementation of https://github.com/xingyizhou/CenterTrack in Docker

Using Docker Image

# Build Docker image.
# Inside CenterTrackROS directory which contains Dockerfile:
docker build -t center-track-ros .
export CENTERTRACK_IMAGE_ID=$(docker images --filter=reference=center-track-ros --format "{{.ID}}")

# Mount directory that contains CenterTrack models as a volume.
# i.e. My models are located at /home/swarm/unreal_ssd/CenterTrack
docker run -v /home/swarm/unreal_ssd/CenterTrack:/home/CenterTrackModels \
           -v /tmp/.X11-unix:/tmp/.X11-unix:rw \
           --env="DISPLAY" --env="QT_X11_NO_MITSHM=1" \
           -it $CENTERTRACK_IMAGE_ID bash
# Inside Docker container:
exit

export CENTERTRACK_CONTAINER_ID=$(docker ps -a | grep $CENTERTRACK_IMAGE_ID | awk '{ print $1 }')
# Permit docker container to connect to X windows display.
xhost +local:`docker inspect --format='{{ .Config.Hostname }}' $CENTERTRACK_CONTAINER_ID`

# Start the container again:
docker start $CENTERTRACK_CONTAINER_ID
docker exec -it $CENTERTRACK_CONTAINER_ID /bin/bash
# This will leave the Docker container continuously running until it is killed.

# Inside Docker container, run:
sourceros

NOTES:

  • WARNING: xhost not the safest.
    • To remove permissions after done using display: xhost -local:`docker inspect --format='{{ .Config.Hostname }}' $CENTERTRACK_CONTAINER_ID`

centertrackros's People

Contributors

susanni avatar

Watchers

 avatar  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.