ika-rwth-aachen / acdc

Code Repository for the MOOC "Automated and Connected Driving Challenges" available on edX.
https://www.edx.org/course/automated-and-connected-driving-challenges
MIT License
217 stars 24 forks source link

get some error after running the 'run.sh' file #6

Closed TomyangSydney closed 1 year ago

TomyangSydney commented 1 year ago

Thanks for creating an issue, we will support you as soon as possible.
Please fill out the issue template below by answering all questions.

  1. Are you using a virtual machine or are you using native Ubuntu?

virtual machine (I use WSL2)

  1. If you are using macOS and a virtual machine, does your computer use an M1, M2, ... chip? "Does not apply" if the question does not apply to you.

Does not apply

  1. Which Ubuntu version are you using? (lsb_release -a in a terminal)

Ubuntu 22.04.2 LTS

  1. On your host, in a terminal, navigate to the acdc repository and execute ls -la and paste the content here.

total 20 drwxrwxrwx 1 linchuan linchuan 4096 May 22 19:31 . drwxrwxrwx 1 linchuan linchuan 4096 May 22 19:31 .. drwxrwxrwx 1 linchuan linchuan 4096 May 22 19:31 .git drwxrwxrwx 1 linchuan linchuan 4096 May 22 19:31 .github -rwxrwxrwx 1 linchuan linchuan 2656 May 22 19:31 .gitignore -rwxrwxrwx 1 linchuan linchuan 2001 May 22 19:31 .gitlab-ci.yml -rwxrwxrwx 1 linchuan linchuan 659 May 22 19:31 .gitmodules -rwxrwxrwx 1 linchuan linchuan 1104 May 22 19:31 LICENSE -rwxrwxrwx 1 linchuan linchuan 2422 May 22 19:31 README.md drwxrwxrwx 1 linchuan linchuan 4096 May 22 19:31 assets drwxrwxrwx 1 linchuan linchuan 4096 May 22 19:31 bag drwxrwxrwx 1 linchuan linchuan 4096 May 22 19:31 catkin_workspace drwxrwxrwx 1 linchuan linchuan 4096 May 22 19:31 colcon_workspace drwxrwxrwx 1 linchuan linchuan 4096 May 22 19:31 docker

  1. On your host, in a terminal, navigate to the catkin_workspace folder in the acdc repository and execute ls -la and paste the content here.

total 0 drwxrwxrwx 1 linchuan linchuan 4096 May 22 19:31 . drwxrwxrwx 1 linchuan linchuan 4096 May 22 19:31 .. -rwxrwxrwx 1 linchuan linchuan 98 May 22 19:31 .catkin_workspace -rwxrwxrwx 1 linchuan linchuan 0 May 22 19:31 .gitkeep drwxrwxrwx 1 linchuan linchuan 4096 May 22 19:31 src

  1. On your host, execute docker images and paste the content here.

REPOSITORY TAG IMAGE ID CREATED SIZE hello-world latest 9c7a54a9a43c 2 weeks ago 13.3kB rwthika/acdc latest 82e604df3cde 7 months ago 23.7GB

  1. Briefly explain your problem here. The explanation should contain a description of the expected behavior and the actual behavior.

when I move to docker directory under acdc directory and execute './run.sh', I get error information. I check the output of clone operation, everything looks good.

  1. If you got an error message, paste it here or post a screenshot of it.

Error Message:

xauth: file /home/linchuan/.Xauthority does not exist

find: ‘/proc/28/task/28/fdinfo/5’: No such file or directory find: ‘/proc/28/fdinfo/6’: No such file or directory

Screenshot:

problem

TillBeemelmanns commented 1 year ago

I think the last two "errors" or let's say warnings can be ignored. Depending on the machine that I am using, I also sometimes get these kind of warnings. Did you try to run some of the exercises ? If the exercises run fine, then this warning can be ignored.

However, the error xauth: file /home/linchuan/.Xauthority does not exist might cause problem when using RVIZ or some other UI in the docker environment. Can you try to run RVIZ in the container ? Maybe it is necessary to create the .Xauthority directory in your home directory.

TomyangSydney commented 1 year ago

Thank you for your answer. Currently I have problems when running 'rqt' command under the running container and I got the following error: image

I think this might caused by some errors when setting up the XLaunch configuration. I followed the steps to set up the xlaunch configuration file, but where I should I save this configuration file so that it can be used in WSL?

TillBeemelmanns commented 1 year ago

So do not necessarily need to save your configuration for Xlaunch to a file. It is sufficient to click on finish after "Configuration Complete"

image

Regarding my response above: Did you check if the file /home/linchuan/.Xauthority does exists in your WSL environment ? If this file is missing, it could cause problems like you currently have. Further more you can try to run

xhost +
rqt
TomyangSydney commented 1 year ago

Thank you for your response. I tried to create the file /home/linchuan/.Xauthority following this guide: https://superuser.com/questions/806637/xauth-not-creating-xauthority-file. Although the error xauth: file /home/linchuan/.Xauthority does not exist disappear, I still get the error mentioned in the last post after executing "rqt". Here is the result: image image

Another question is about the VcXsrv, after I run "xhost +", I get the error:
image Do i need to install any other libraries in WSL apart from only choosing the first option in the window? image

Thank you in advance for your help.

TillBeemelmanns commented 1 year ago

Hi, can you try some of the suggestions that are proposed in the following ?

Bests,

TomyangSydney commented 1 year ago

Thank you for your answer! I tried the first one to update wsl and it works this time! image Very appreciated!