ApolloAuto / apollo

An open autonomous driving platform
Apache License 2.0
25.22k stars 9.72k forks source link

Failed to load default routing. Please make sure the file exists at /apollo/modules/map/data/demo_default_cycle_routing.txt #15423

Closed fengmao31 closed 5 months ago

fengmao31 commented 5 months ago

Failed to load default routing. Please make sure the file exists at /apollo/modules/map/data/demo_default_cycle_routing.txt image

YuqiHuai commented 5 months ago

I did not encounter this error message when I launched Dreamview. I noticed once you use Route Editing (4th option on the left) and use Add Default Routing (5th option on the top), then a file named demo_default_cycle_routing.txt would appear in modules/map/data. Filename is defined here, I am not sure why they choose _ over / when concatenating ...

https://github.com/ApolloAuto/apollo/blob/03e6dddcc065355281af2e7c4eb27fa8db4d919f/modules/common/configs/config_gflags.cc#L34-L36

https://github.com/ApolloAuto/apollo/blob/03e6dddcc065355281af2e7c4eb27fa8db4d919f/modules/map/hdmap/hdmap_util.h#L64-L70

I manually created a file named demo_default_cycle_routing.txt with the following content

landmark {
  name: "default"
  waypoint {
    pose {
      x: 586392.840030000
      y: 4140673.012320000
    }
  }
  waypoint {
    pose {
      x: 586365.33
      y: 4140777.35
    }
  }
}

and now I can see this "default routing" when clicking the bottom left

image

Also looks like you would create one default routing for each map you want to use.

fengmao31 commented 5 months ago

Let's make a conclusion. IF you lack some map, please delete the container. IF you failed to load default routing, manually create the file or create default routing file in route editing. It is 5th option on the top. IF you can see nothing in module controller,please delete the container and reclone apollo repository, and rebuild the project. The last two will happen togther. I don't know whether module controller problem is caused by missing default route file.

fengmao31 commented 5 months ago

image