karlkurzer / path_planner

Hybrid A* Path Planner for the KTH Research Concept Vehicle
http://karlkurzer.github.io/path_planner/
BSD 3-Clause "New" or "Revised" License
1.59k stars 540 forks source link

How to set the start position and goal position manually? And how to use a dynamical map? Is there a demo for dynamical map? #18

Closed abc283646346 closed 5 years ago

abc283646346 commented 5 years ago

Thank you for your code! It's very nice, and I'm interested in it. But I have meet two problems. One is How to set the start position and goal position manually? I used the "rostopic pub -1 ..." to publish the two topics. But after running one command, the command will latch for 3 seconds, then another command can be allowed to run. Is there a demo for setting the the start position and goal position manually? The other problem is how to use a dynamical map? And is there a dynamical map demo for us to use? I want to simulate a scenario like a real car travelling. Is it suitable for this code to do the simulation? Thank you for your guidance!

karlkurzer commented 5 years ago

Hey,

thanks:

As for the dynamic planning, yes it is possible, see the video below.

https://www.youtube.com/watch?v=GwIU00jukO4

You just have to start the planner for each update of the map.

abc283646346 commented 5 years ago

Thank you for your guiding! And is your update map coming from the sensors of the car? If I want a simulation demo of update map, I maybe have to draw it by myself. Is that right? I'm sorry to borrow you again!

PigletPh commented 1 year ago

Hey,

thanks:

  • Click 2D Pose Estimate to set a start point on the map (p)
  • Click 2D Nav Goal to set a goal point on the map (g)

As for the dynamic planning, yes it is possible, see the video below.

https://www.youtube.com/watch?v=GwIU00jukO4

You just have to start the planner for each update of the map.

Thanks for your excellent work to share. How to achieve the effect in the video? Is there any codes to study?Thanks!

karlkurzer commented 1 year ago

The video is from the planner running in an open-loop fashion based on a recorded trajectory and Lidar point cloud information. Have a look at https://github.com/karlkurzer/path_planner/blob/5f3166e04fc295619d84a4a80b9497aef3cbea24/include/constants.h#LL35-L35C33 and https://github.com/karlkurzer/path_planner/blob/master/launch/velodyne_arlanda.launch.