Object detection and tracking not working in Apollo 6.0
System information
- OS Platform and Distribution (Linux Ubuntu 20.04)
- Apollo version (6.0)
- Graphics card: TU104BM [GeForce RTX 2080 Mobile]
- nvidia version : 455.38
- CUDA version:11.1
- RAM: 32 GB
Hi,
I have cloned latest Apollo 6.0 from github as mentioned in lgsvl installation document (https://www.lgsvlsimulator.com/docs/apollo-master-instructions/) and further followed all steps like installing nvidia drivers and dockers...Everything works fine but i have problem with object detection and tracking . Perception module doesn't work..so i switched to third-party perception module and it is shown in video attached to issue. Please help me in this regard
Steps to reproduce the issue:
-STEP 1: To launch the container navigate to the apollo directory and type: ./docker/scripts/dev_start.sh
-STEP 2: To get into the container.... type in terminal - ./docker/scripts/dev_into.sh
-STEP 3: Build Apollo (optimized, not debug, with GPU support).... type in terminal - ./apollo.sh build_opt_gpu
-STEP 4: Launch bridge (inside docker container): type in terminal - ./scripts/bridge.sh
-STEP 5: Launch lgsvl simulator with appropriate apollo settings mentioned in lgsvl instruction guide and
check whether bridge is connected
-STEP 6: open separate terminal. Navigate to the apollo directory and type again (to go into container) : ./docker/scripts/dev_into.sh
-STEP 7: To start Apollo, run the command : ./scripts/bootstrap_lgsvl.sh
-STEP 8: Then with local host:8888 link open dreamviewer and and select appropriate seetings.... I chose : setup mode - Mkz Lgsvl vehicle - Lincoln2017MKZ LGSVL map (downloaded manually from github) - CUBE TOWN
Supporting materials (screenshots, command lines, code/script snippets):

- I suggest you use lidar perception. Camera may have some issue in apollo 6.0? Because there are other issues mentioning this.
- Then check the topic if there are alright.
- If there are input topics but not output, check the log to see if there are error messages.
You might also wanna run the perception manually in a terminal and take a look at its runtime print.
@daohu527 could you please suggest how to use lidar perception
@ntutangyun
I went through the process is said and tried to run it manually after seeing steps from perception readme file ( Ref: https://github.com/ApolloAuto/apollo/blob/master/docs/howto/how_to_run_perception_module_on_your_local_computer.md)
I was able to open dream view and when i went into container and run the command : cyber_launch start /apollo/modules/transform/launch/static_transform.launch
it shows following error:
manoj@manoj-OMEN-by-HP-Laptop-15-dh0xxx:~/apollo$ ./docker/scripts/dev_into.sh
To run a command as administrator (user "root"), use "sudo
[manoj@in-dev-docker:/apollo]$ cyber_launch start /apollo/modules/transform/launch/static_transform.launch
[cyber_launch_27178] INFO Launch file [/apollo/modules/transform/launch/static_transform.launch]
[cyber_launch_27178] INFO ========================================================================================================================
[cyber_launch_27178] INFO Load module [static_transform] library: [mainboard_default_27178] [CYBER_DEFAULT] conf: [/apollo/modules/transform/dag/static_transform.dag] exception_handler: []
[cyber_launch_27178] INFO Start process [mainboard_default_27178] successfully. pid: 27185
[cyber_launch_27178] INFO ------------------------------------------------------------------------------------------------------------------------
[mainboard_default_27178] WARNING: Logging before InitGoogleLogging() is written to STDERR
[mainboard_default_27178] I1116 11:07:06.829344 27185 module_argument.cc:81] []command: mainboard -d /apollo/modules/transform/dag/static_transform.dag -p mainboard_default_27178 -s CYBER_DEFAULT
[mainboard_default_27178] I1116 11:07:06.830072 27185 global_data.cc:153] []host ip: 192.168.0.103
[mainboard_default_27178] I1116 11:07:06.830343 27185 module_argument.cc:57] []binary_name_ is mainboard, process_group_ is mainboard_default_27178, has 1 dag conf
[mainboard_default_27178] I1116 11:07:06.830353 27185 module_argument.cc:60] []dag_conf: /apollo/modules/transform/dag/static_transform.dag
[mainboard_default_27178] E1116 11:07:06.887687 27185 static_transform_component.cc:60] [static_transform]Extrinsic yaml file does not exist: /apollo/modules/drivers/velodyne/params/lidar16_front_up_novatel_extrinsics.yaml
[mainboard_default_27178] E1116 11:07:06.887732 27185 static_transform_component.cc:60] [static_transform]Extrinsic yaml file does not exist: /apollo/modules/drivers/velodyne/params/lidar16_front_novatel_extrinsics.yaml
[mainboard_default_27178] E1116 11:07:06.887742 27185 static_transform_component.cc:60] [static_transform]Extrinsic yaml file does not exist: /apollo/modules/drivers/velodyne/params/lidar16_rear_left_novatel_extrinsics.yaml
[mainboard_default_27178] E1116 11:07:06.887749 27185 static_transform_component.cc:60] [static_transform]Extrinsic yaml file does not exist: /apollo/modules/drivers/velodyne/params/lidar16_rear_right_novatel_extrinsics.yaml
[mainboard_default_27178] E1116 11:07:06.887993 27185 static_transform_component.cc:60] [static_transform]Extrinsic yaml file does not exist: /apollo/modules/perception/data/params/radar_rear_extrinsics.yaml
[mainboard_default_27178] E1116 11:07:07.096344 27208 node_manager.cc:101] [mainboard]this process will be terminated due to duplicated node[static_transform], please ensure that each node has a unique name.
[mainboard_default_27178]
[cyber_launch_27178] ERROR Process [mainboard_default_27178] has finished. [pid 27185, cmd mainboard -d /apollo/modules/transform/dag/static_transform.dag -p mainboard_default_27178 -s CYBER_DEFAULT].
[cyber_launch_27178] INFO All processes has died.
[cyber_launch_27178] INFO Cyber exit.
[cyber_launch_27178] INFO All processes have been stopped.
[manoj@in-dev-docker:/apollo]$
Could you please suggest what might have went wrong
I check the perception file "modules/perception/production/dag/dag_streaming_perception_lgsvl.dag". It is already used Lidar, could you show the output of cyber_monitor?
It is best to also check the log of perception.INFO under data/log too.
@daohu527 Here is the output of cyber_monitor output

Here is the log of perception module:
perception.log.INFO.20201116-114908.txt
could you please suggest what might the problem be
pls check the topic ""/apollo/sensor/lidar128/compensator/PointCloud2"" is published in lgsvl, there is a sample config here
I didn’t find this topic from the cyber monitor you pasted. Have you tried to turn the page?
@daohu527 I checked whether the topic is published in lgsvl as advised and it's published...

when i checked about the published channelNames using cyber_visualizer...it's showed the image below with information of all relevant topics published.....You can also observe detection of objects through visualizer

when i checked the same in cyber_monitor this was the result

Is there explanation possible for these outputs
Your last picture seems to be working, but the picture you posted earlier is not work, you can found the "apollo/prediction" and "apollo/perception/obstacles" then the perception and prediction module is work.
Next step
- I didn't find the lidar topic published, could you pls use "→ " or "←" to see if there are "/apollo/sensor/lidar128/compensator/PointCloud2", if not try to find what's wrong.
- use "enter" on the topic "apollo/prediction" and "apollo/perception/obstacles" to see if there're any obstacles.
@daohu527
- I used arrows "->" and "<-" as you advised but cyber_monitor shows sometimes "/apollo/sensor/lidar128/compensator/PointCloud2"...when i restart dreamview to repeat the process it doesn't show up...Is it unstable?....Do you think is it something with respect to nvidia driver....i am presently using the one shown below which is open source:

The linux version i am using is 20.04...can i downgrade my version to 18.04 to have stable system response
- i went into /apollo/prediction/perception_obstacles which was non-responsive...i got the following message:

I appreciate your quick response and thank you for the advise
I suggest you turn off the output of the camera and only send lidar in LGSVL. I think your focus is on the output of lidar.
Lidar does not need any processing, as long as the LGSVL simulator and Apollo are connected, I think you can try to debug, reinstalling the system may not make a big improvement.
@daohu527 I found out alternate way to avoid lidar,camera and use 3D truth table and signal sensor from lgsvl.... I am providing the link below so that others with the similar issue in future can look into it:
https://youtu.be/781zkzN2xMg
Thank you very much for your support...