Skip to content
This repository has been archived by the owner on Feb 25, 2021. It is now read-only.

Add Dockerfile for ROS #184

Closed
wants to merge 1 commit into from
Closed

Add Dockerfile for ROS #184

wants to merge 1 commit into from

Conversation

Taka-Kazu
Copy link

Thank you for your work!

I added a Dockerfile for running ROS package of openvslam on Docker.

Dockerfile.ros is the modification of Dockerfile.desktop. I changed the version of OpenCV to 3 and added the installation procedure of ROS.

You can try it as follows (mainly same as "Running on Docker"):

$ cd /path/to/openvslam
$ docker build -t openvslam-ros -f Dockerfile.ros .
$ xhost +local:
$ docker run --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix:ro -v /your/vocab/path:/vocab -v /your/config/path:/config openvslam-ros rosrun openvslam run_slam -v /vocab/orb_vocab.dbow2 -c /config/config.yaml

@shinsumicco shinsumicco added the enhancement New feature or request label Jan 15, 2020
@pfedom
Copy link

pfedom commented May 13, 2020

Thank you for creating a Dockerfile for ROS!
I tried to build it with docker build -t openvslam-ros -f Dockerfile.ros . but I get this error:
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/dominik/dev_ws/openvslam/Dockerfile.ros: no such file or directory

Do I have to do anything else before I can build this? The original docker file works fine for me without errors.
Thanks in advance!

@Taka-Kazu
Copy link
Author

@pfedom

Do I have to do anything else before I can build this?

No special preparation should be required.

  • Be sure to checkout this PR brunch
  • The existence of Dockerfile.ros

should be reaffirmed.

See also:
https://stackoverflow.com/questions/35511604/docker-unable-to-prepare-context-unable-to-evaluate-symlinks-in-dockerfile-pat

If it doesn't work out, please comment again.

@ntrlmt
Copy link

ntrlmt commented Jun 12, 2020

@pfedom

Do I have to do anything else before I can build this?

I had a similar issue.
Please Check branch name. Default branch is master, you must change add-ros-dockerfile branch.

$ git clone https://github.com/Taka-Kazu/openvslam.git 
$ cd openvslam && git checkout add-ros-dockerfile
$ docker build -t openvslam-ros -f Dockerfile.ros .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants