autowarefoundation / autoware_ai_planning

Apache License 2.0
211 stars 148 forks source link

Global path starts far from the current (initial) pose #49

Open squizz617 opened 3 years ago

squizz617 commented 3 years ago

Bug report

Required information:

Description of the bug

Steps to reproduce the bug

  1. Replay the self-contained rosbag file.

Expected behavior

Global path should start from the lane that the vehicle is on.

Actual behavior

Global path starts from the lane next to the vehicle, and the vehicle clumsily pursue the path, ending up crashing.

Screenshots

Additional information

JWhitleyWork commented 3 years ago

@squizz617 There are two problems here:

  1. The incorrect lane is chosen as the current lane for the vehicle start point. This is a problem with the planner.
  2. The control algorithm is unable to accurately follow the path when the target point is so close to the ego vehicle yet the heading error to reach the point is incredibly large.

In order to help resolve these issues, I need to know the following:

squizz617 commented 3 years ago

Thanks for the comment @JWhitleyWork !

Here's the requested information:

JWhitleyWork commented 3 years ago

@hatem-darweesh might be able to help with problem 1 since that's part of the OpenPlanner implementation.

For the control algorithm, you will need to set minimum_lookahead_distance to something closer (try 1.0) in order to handle trajectories that close to the vehicle.

hatem-darweesh commented 3 years ago

Hi @squizz617 There was a lot of issues for OpenPlanner 1.5 to work with CARLA Maps, 1- how do you convert the map. 2- what format you ended using (Vector Map, lanelet2, KML) 3- what version of OpenPlanner you using.

Currently latest OpenPlanner 2.0 is workin on top of Release 1.13 -> https://github.com/hatem-darweesh we have working group specially for that, check the news and development, also document explain how to use openplanner.1.13

https://app.slack.com/client/T3BKJGA7J/C01PTJT7YTX download the OpenPlannet_presentation.pdf Currently we are merging with Autoware.15 release (latest master)

In the other repository , you are using Autoware 1.13 as it is, only OpenPlanner include the new fixed and developments.

squizz617 commented 3 years ago

Thanks for the information @hatem-darweesh . 1 - I've used the vector maps provided by CARLA at carla-autoware and autoware-contents. Not sure how they converted them. 2- The planner is using the vector map (Aisan). 3- I ran the autoware/autoware:1.14.0-melodic-cuda container as is. Not sure what's the version of OpenPlanner, but the one included in the container is https://github.com/Autoware-AI/core_planning/tree/1.14.0/op_global_planner, which is behind your fork.

Just to confirm, are the other issues I reported (#45 and #47) also related to the issues with OpenPlanner & CARLA maps that you've mentioned?

hatem-darweesh commented 3 years ago

Which Town(s) map you have this issue with ? what I can do is to check map connectivity and if it works find with op global planner

squizz617 commented 3 years ago

Thank you. The current issue consistently happens in Town04.