apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Potentialy bug ¨How to Run the Fusion Obstacle Visualization Tool¨

Open JonathanJones92 opened this issue 8 years ago • 21 comments

Hi,

I was putting effort to run the perception visualizer in my computer, here is my computer configuration: Uploading 2018-01-19 10:05:17屏幕截图.png…

I followed the instructions from :https://github.com/ApolloAuto/apollo/blob/master/docs/howto/how_to_run_offline_sequential_obstacle_perception_visualizer.md

In the end, it failed with some errors regarding graphic card as shown below: default

Can somebody tell me how to solve this?

And, from the step " Run the data exporter using this command:¨ I input the scripts, but it never stop? Is there someone facing the same issue as [me?]

JonathanJones92 avatar Jan 19 '18 02:01 JonathanJones92

configuration:

2018-01-19 10 05 17

JonathanJones92 avatar Jan 19 '18 02:01 JonathanJones92

the script that never stop is:

Run the data exporter using this command:

/apollo/bazel-bin/modules/perception/tool/export_sensor_data/export_sensor_data

I put manually interrupt

2018-01-19 11 34 35 2018-01-19 11 34 35 default

JonathanJones92 avatar Jan 19 '18 02:01 JonathanJones92

can someone help me? @startcode @lianglia-apollo @apollo-jingaowang

JonathanJones92 avatar Jan 19 '18 02:01 JonathanJones92

Hi @JonathanJones92
Your first problem seems to be a cuda driver problem. But if you follow the readme, you should be able to build a cpu-only version by clean the previous build bash apollo.sh clean, and run command

bazel build //modules/perception/tool/export_sensor_data:export_sensor_data

To build again.

startcode avatar Jan 19 '18 06:01 startcode

@startcode thanks let me have a shot :)

JonathanJones92 avatar Jan 19 '18 06:01 JonathanJones92

@startcode Hi,

I clean the previous build but I still have one question regarding following steps:

Run the data exporter using this command:

/apollo/bazel-bin/modules/perception/tool/export_sensor_data/export_sensor_data

Play the ROS bag.

​ The default directory of the ROS bag is /apollo/data/bag. ​ In the following example, the file name of ROS bag is example.bag.

​ Use these commands:

cd /apollo/data/bag rosbag play --clock example.bag --rate=0.1

when I run the data exporter, shall I open the rosbag parallely ? Is there any other config should I make?

JonathanJones92 avatar Jan 19 '18 06:01 JonathanJones92

Apollo reported 2 warnings in step ´Run the data exporter´, can you have a look? @startcode

2018-01-19 14 56 01

JonathanJones92 avatar Jan 19 '18 07:01 JonathanJones92

@JonathanJones92 when you run the exporter, you should see something like: temp_apollo as you paste above, which indicates waiting for the ros message. Following the README, next you should play the rosbag.

xiaohuitu avatar Jan 19 '18 07:01 xiaohuitu

@xiaohuitu shall I ignore the warnings? from this step? for the rosbag, shall I open a new terminal and get into docker?

thanks for your help. 2018-01-19 14 56 01

JonathanJones92 avatar Jan 19 '18 07:01 JonathanJones92

yes, you could ignore the warning, and open another terminal and get into docker, then play the rosbag following the README. @JonathanJones92

xiaohuitu avatar Jan 19 '18 07:01 xiaohuitu

@startcode @xiaohuitu Hi,

Thanks for your timely reply :)

when I trying to get into the docker dev_enviroment using another terminal, the original one got closed automaticlly. can you offer some advise on that? Thanks again

JonathanJones92 avatar Jan 19 '18 07:01 JonathanJones92

I guess you start another docker container in the other terminal, so the original one closed. You just need to get into it when you have started in one terminal, which means you should get into it directly when you open another terminal, but not start then get into it. @JonathanJones92

xiaohuitu avatar Jan 19 '18 07:01 xiaohuitu

@xiaohuitu Yes, Itś getting work now but another issue came across: 2018-01-19 15 49 45

can you help me to check ?

Thank you for your help :)

JonathanJones92 avatar Jan 19 '18 07:01 JonathanJones92

@startcode @xiaohuitu There are more errors coming in this step as below: 2018-01-19 16 11 42

Any ideas my friend :)

JonathanJones92 avatar Jan 19 '18 08:01 JonathanJones92

@JonathanJones92 Did you create the data path? You should create the data paths for lidar and radar, i.e. lidar_path and radar_path in the configuration file.

xiaohuitu avatar Jan 19 '18 08:01 xiaohuitu

@xiaohuitu it seems working fantastic :) thank you

JonathanJones92 avatar Jan 19 '18 08:01 JonathanJones92

@startcode @xiaohuitu I created the radar and lidar folder. The lidar data was successfully dumped but nothing exist in radar folder. 2018-01-19 17 05 35

Can you help me to analyse?

With the Lidar data, I jumped to the final step, the same error occurs: default

I build without GPU but why it come across? Iḿ really confused, please help me.

cheers !

JonathanJones92 avatar Jan 19 '18 09:01 JonathanJones92

@xiaohuitu @xiaohuitu @bigwhite @zhxt @startcode Hi I just want to be humble to all the apollo developers but is there any detailed instructions on how to run the perception visualizer without a GPU/GPU driver? Please help me. Cheers!

JonathanJones92 avatar Jan 20 '18 11:01 JonathanJones92

With only the lidar data, I progress to the next step in the fusion mode from here

I build bazel build -c opt //modules/perception/tool/offline_visualizer_tool:offline_sequential_obstacle_perception_test

and run with /apollo/bazel-bin/modules/perception/tool/offline_visualizer_tool/offline_sequential_obstacle_perception_test

The results were : 2018-01-20 21 02 40

Still driver issue or maybe lacking the radar data. Can you help me to check ?

@startcode @xiaohuitu @bigwhite @weidezhang @zhxt # Otherwise I think this is a bug

Regards, Jonathan

JonathanJones92 avatar Jan 20 '18 13:01 JonathanJones92

I'm facing the same issue. There is no GPU installed on my setup, and I have tried to build with CPU_ONLY and still failed at checking CUDA version.

I0402 13:21:08.735582 22570 layer_factory.hpp:79] Creating layer input I0402 13:21:08.736299 22570 net.cpp:94] Creating Layer input I0402 13:21:08.736336 22570 net.cpp:402] input -> data F0402 13:21:08.736694 22570 syncedmem.hpp:18] Check failed: error == cudaSuccess (35 vs. 0) CUDA driver version is insufficient for CUDA runtime version *** Check failure stack trace: *** Aborted (core dumped)

gmhuili avatar Apr 02 '18 20:04 gmhuili