lgsvl / simulator

A ROS/ROS2 Multi-robot Simulator for Autonomous Vehicles
Other
2.28k stars 781 forks source link

Apollo 3.5 fails to run with LGSVL Simulator #232

Closed Fibonacci43 closed 4 years ago

Fibonacci43 commented 5 years ago

Hello! I try my best to run apollo 3.5 with lgsvl simulator, but struck into the final problem:get the car to run. I followed this instruction , there is a video to illustrate the running steps and the problem. It seems that the routing process are successed. But some other modules such as perception, planning and control are not start up. Is there a connection between this problem and the warning information when I type "./docker/scripts/dev_start.sh"?

Thanks in advance for any help!

luqiang21 commented 5 years ago

@Fibonacci43 Thank you for your video. The process seems correct. Did you wait for some time before other modules like perception, prediction and planning to work? Typically, apollo 3.5 needs a bit time to start these modules.

The warning/error information with ./docker/scripts/dev_start.sh doesn't matter from our experience. You can refer more info here.

Fibonacci43 commented 5 years ago

@luqiang21 Thank you for your reply. Following your suggestion, I wait for at least five minutes, but nothing change. I tired many times, the problem still unsolved. I check the status of apollo modules. The perception module, prediction module, planning module are not running. Also I found this issue (https://github.com/lgsvl/simulator/issues/184) describes the same problem that I have encountered. The owner solved it by reinstalling the nvidia-docker. I used nvidia docker 2.0 for now and I am sure that it is well installed and running properly in the docker, I wonder what nvidia-docker version does this project use.
By the way, do I have to install cuda in my host computer to let the apollo perception run? I haven't installed cuda on my computer for now. Is there a connection between this and the problem? Looking forward for your advice.

luqiang21 commented 5 years ago

@Fibonacci43 You don't need to install cuda because our docker image has it. Your nvidia docker version is the same as mine. Since your perception module is not working. Can you try to run it in a terminal instead of pressing the button. perception.sh start_fe should work. Then you can paste the error message here and we can look into it.

Fibonacci43 commented 5 years ago

@luqiang21 Hi, thank your for confirming my installation is correct. I have run the ' perception.sh start_fe '. And I got the information like below: Screenshot from 2019-07-12 09-38-47 Screenshot from 2019-07-12 09-39-05 Screenshot from 2019-07-12 09-39-18

xmyqsh commented 5 years ago

@Fibonacci43 The default extrinsic config is just an example. You should modify it to correspond to the LGSVL Simulator's setting of default vehicle in apollo-3.5, XE_Rigged_Apollo3.5. The easiest way is from dreamview.

LGSVL has provided all the materials you needed.

xmyqsh commented 5 years ago

@luqiang21 LGSVL's repo is an important supplementary of BAIDU Apollo!

martins-mozeiko commented 5 years ago

@Fibonacci43 the error happens with cuda initialization - "check failed: error == cudaSuccess (8 vs. 0)" What GPU are you using. Apollo oficially supports only GTX 1080. If you are using supported GPU I suggest to reboot computer. Sometimes Nvidia cuda driver stops working and only way to fix it is to reboot computer.

Fibonacci43 commented 5 years ago

@martins-mozeiko I tried the running steps again, it seems the main reason is actually the cuda initialization. And I check the official apollo repository related page, it suggests to use "375.39" version GPU driver. But my laptop GPU is GTX 1660Ti, which the suggested driver does not supprt. I will try to run on my another computer again , which have GTX 1070 intalled.

martins-mozeiko commented 5 years ago

Yeah, 1660Ti is Turing architecture GPU - meaning it is from newer generation than 1080. It is basically same category as RTX 2080. Which is not supported by Apollo. See ApolloAuto/apollo#4233 and ApolloAuto/apollo#6916 issues with more discussion on this.