Hi all, I'm trying to do some offline test regarding the traffic light detection function of Apollo.
Since I don't have cameras, I download the bag files provided by Apollo(demo-2.0, 3.2G).
Here is what I do:

@jinghaomiao @xiaohuitu Hi, do you have updates about this? Really appreciate your help.
I've download rosbag from here(http://data.apollo.auto/help?name=data-sensor%20demostration-user%20guide&data_key=sensor&data_type=1&locale=zh-cn&lang=en). I found the timestamp is around 1513807824~1513807884 second, which is different from yours.
So where did you get the bag? could you give me the link?
@ghdawn I use the same bag. The one named "demo-sensor-data-apollo-2.0.tar.gz", which size is 3.2GB. Have you successfully run the traffic light detection with rosbag playing?
I can run detection with this bag. However, there is only one light at the beginning of bag, about 3 second. Then there is no light and you won't see any detection result.

@ghdawn How did you manage to see the video output with detection on it?
vim modules/perception/conf/perception.conf
find --output_debug_img
set to true
rerun perception , when querying hdmap successfully,you will see the video
@ghdawn
Are you able to explain the difference between?
--output_debug_img and --output_raw_img ?
I tried toggling both of these, and still do not understand how to see the video/images?
when using a camera or by playing one of the demo rosbags
Can you help?
@ghdawn Just want to know, do you run the apollo system in docker? And do you have apollo RT kernel on your computer?
@snuffysasa
Hi, output_debug_img means : when traffic light module has query pose and hd-map successfully, a window (as I pasted) will show the image we choosed with some infomation.
output_raw_img means, write images received to disk. User should create the directories, which names are defined in modules/perception/traffic_light/base/image.h ("short_focus_camera_6mm" and "long_focus_camera_25mm")
@hzdsdhr
I run the apollo system in docker following steps below:
*./docker/scripts/dev_start.sh *
*./docker/scripts/dev_into.sh *
I don't known what apollo RT kernel is .
Thank you for your answer. And do you run /apollo/scripts/time_sync.sh before you run apollo?
@ghdawn Should I re-build apollo after enabling --output_debug_img ?
Most helpful comment
I can run detection with this bag. However, there is only one light at the beginning of bag, about 3 second. Then there is no light and you won't see any detection result.