Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made docker image of LSD-SLAM for anyone who are struggling with build error (Ubuntu 16.04) #342

Open
gyubeomim opened this issue Dec 25, 2019 · 8 comments

Comments

@gyubeomim
Copy link

run as follows. (tested on Ubuntu 16.04 LTS)

$ docker pull edward0im/starlaw:lsd-slam
$ vim run_lsd_slam.sh
type below

#!/bin/sh
XSOCK=/tmp/.X11-unix
XAUTH=/home/${USER}/.Xauthority

xhost +local:docker

	# --runtime=nvidia \
docker run \
	--net=host \
	--name lsdslam \
	--rm \
    -it \
	--env="XAUTHORITY=${XAUTH}" \
	--env="DISPLAY=unix${DISPLAY}" \
	--env="XDG_RUNTIME_DIR=/run/user/1000" \
	--privileged  \
	-v /run/user/1000:/run/user/1000 \
	-v /dev/bus/usb:/dev/bus/usb \
	-v ${XSOCK}:${XSOCK}:rw \
	-v ${XAUTH}:${XAUTH}:rw \
	edward0im/starlaw:lsd-slam \
	/root/run_lsdslam.sh

$ chmod 777 run_lsd_slam.sh
$ ./run_lsd_slam.sh

if anyone who has got the error while following those steps, comment below.

@AI-ML-Enthusiast
Copy link

would you provide your docker file?

@gyubeomim
Copy link
Author

@IbrahimLearning

Unfortunately, I don't have a Dockerfile of this image. I had built lsd-slam manually while using docker image.
You can find the image in https://hub.docker.com/repository/docker/edward0im/starlaw

@damonftl
Copy link

I'm getting this error:

QGLTempContext: No GL capable X visuals available.

Running "glxinfo" doesn't give any errors, and glxgears runs just fine. Full disclosure though: I'm running this in a virtual machine with VirtualBox running Ubuntu 20.04, so there is no direct access to the GPU. Not sure how to fix this problem or if it is even possible to fix it with my setup.

@gyubeomim
Copy link
Author

hello @damonftl,

could you check Ubuntu version for this docker image? because It was made in Ubuntu 16.04.
If you have a trouble while running on Ubuntu 16.04, I can help you :-)

@kareotoko
Copy link

kareotoko commented Sep 28, 2020

Hi @edward0im
I am following your step above. But I encountered a problem:
I implement it on Native Ubuntu 16.04 LTS
$./run_lsd_slam.sh

non-network local connections being added to access control list
/root/run_lsdslam.sh: line 4: kill: %1: no such job
Started QApplication thread
/root/run_lsdslam.sh: line 6: 76 Illegal instruction (core dumped) rosrun lsd_slam_core live_slam image:=/camera/image_rect camera_info:=/camera/camera_info

Do you know where the problem is?

@gyubeomim
Copy link
Author

Hi @kareotoko,

I've upgraded Ubuntu 16.04 to 18.04 six months ago and I didn't take care of this docker image.
And recently, docker commands have been changed a lot because of the docker version upgrade, but I couldn't follow up on the newest command.

I'm sorry but I'll upload LSD-SLAM docker image running on Ubuntu 18.04 LTS within a week.
Therefore, LSD-SLAM docker image running on Ubuntu 16.04 LTS will not be on update. Sorry about that.

@gyubeomim gyubeomim changed the title Made docker image of LSD-SLAM for anyone who are struggling with build error. Made docker image of LSD-SLAM for anyone who are struggling with build error (Ubuntu 18.04) Sep 28, 2020
@gyubeomim gyubeomim changed the title Made docker image of LSD-SLAM for anyone who are struggling with build error (Ubuntu 18.04) Made docker image of LSD-SLAM for anyone who are struggling with build error (Deprecated) Sep 30, 2020
@gyubeomim gyubeomim changed the title Made docker image of LSD-SLAM for anyone who are struggling with build error (Deprecated) Made docker image of LSD-SLAM for anyone who are struggling with build error (Ubuntu 16.04) Oct 1, 2020
@gyubeomim
Copy link
Author

This docker image is still available in Ubuntu 16.04 LTS but I'm currently using Ubuntu 18.04 LTS.
Then, I can't help you to fix the problem if the docker image is not working properly. Sorry about that.

If I make a docker image of Ubuntu 18.04 LTS in the future, I'll update this thread.

@nur-917Hub
Copy link

This docker image is still available in Ubuntu 16.04 LTS but I'm currently using Ubuntu 18.04 LTS. Then, I can't help you to fix the problem if the docker image is not working properly. Sorry about that.

If I make a docker image of Ubuntu 18.04 LTS in the future, I'll update this thread.

Hi, I want to build LSD-SLAM in Ubuntu 20.04.
Do you have any advice? anything is appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants