Skip to content

how to run perception module with rosbag playing? #4170

@hzdsdhr

Description

@hzdsdhr

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:

  1. scripts/bootstrap.sh
  2. chose map sunnyvale_loop and vehicle mkz8 in dreamview
  3. rosbag play -l demo2.0.bag
  4. check all the topics the traffic light detection needs:/tf, /tf_static, /apollo/sensor/camera/traffic/image_short(long), /apollo/localization/pose
  5. enable the perception module in dreamview
    I can see that the obstacle detection of perception works, since I can see obstacles in dreamview(there is no obstacle topic in bag file, only PointCLoud2 topic).But the traffic detection is not working, since in dreamview, the traffic light detection result is no signal, even when the car stops at the instersection.
    I check the log file named perception.ERROR, here it is:
    issue
    It seems to be the time issue of tf in ros, then I tried to play the bag file with /use_sim_time to be true and false, the same error occurs.
    Has someone figure this out? Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Module: PerceptionIndicates perception related issuesType: Help wantedIndicates that a maintainer wants help on an issue/pull request from the rest of the community

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions