path_planner icon indicating copy to clipboard operation
path_planner copied to clipboard

Run instructions and input data

Open steenax86 opened this issue 7 years ago • 23 comments

Hi Karl,

Do you have a set of instructions to run the hybrid astar? What data does it operate on? Do you have performance numbers (run time) for the algorithm?

Thanks in advance!

steenax86 avatar Sep 20 '17 01:09 steenax86

Hey Steena,

you should be able to launch it using roslaunch hybrid_astar manual.launch. It operates on a 2D obstacle grid, and it runs with approximately 10 Hz. Let me know, if you have any further questions :-)

karlkurzer avatar Sep 20 '17 18:09 karlkurzer

Thanks, Karl!

It does not seem to like the manual.launch file, and gives the following error:

Invalid roslaunch XML syntax: not well-formed (invalid token): line 1, column 0

I eliminated the XML comment line, but it still complains. Have you had this happen?

Thanks!

steenax86 avatar Sep 20 '17 18:09 steenax86

Hey Steena, no this does not really ring a bell. I'd suggest that you start up the nodes in separate terminals then, the launch file is really for convenience only.

karlkurzer avatar Sep 20 '17 21:09 karlkurzer

Hey Karl, Thanks! I am having some issues with the DNS on the server, and hence getting ROS to work. I will try this out shortly.

Do you have an estimate of the execution time of the algorithm after the collision look up table is built?

Thanks in advance.

steenax86 avatar Sep 21 '17 00:09 steenax86

Hello, do you use the png diagram under ROS with size restrictions? An error occurs when I use a 500 * 500 pixel image and cellsize 0.2CM

Forrest-Z avatar Sep 21 '17 07:09 Forrest-Z

@Forrest-Z please take a look at this file/line https://github.com/karlkurzer/path_planner/blob/43e78d5ef2376d83c903554cf323ebe2917f3230/include/constants.h#L77 tbh. I never used it with grids smaller grid cells smaller than 0.5m. However, it should be possible, potentially some adjustments need to be made I believe to other parts of the algorithm though. @steenax86, if you guys find issues wit the code, or areas of improvement feel free to create merge requests :-)

karlkurzer avatar Sep 21 '17 11:09 karlkurzer

thank you. now I can run the program in 0.2m grid cell , but I got another problem:

  1. When I change the grid cell to 0.2m , path planning didn't always succeed ,sometimes just planned part of it.
  2. I change the vehicle width , length and minimum turning radiu , so should I need to made some adjustments in the program.

Forrest-Z avatar Oct 09 '17 06:10 Forrest-Z

@Forrest-Z take a look here: https://github.com/karlkurzer/path_planner/blob/master/src/node3d.cpp#L13 I never made the action space adaptive given the grid size, so that could be the issue, if you got a nice fix, feel free to push it :-)

karlkurzer avatar Oct 09 '17 08:10 karlkurzer

How are these values calculated in https://github.com/karlkurzer/path_planner/blob/master/src/node3d.cpp#L13 ?

Forrest-Z avatar Oct 09 '17 12:10 Forrest-Z

It's a forward simulation of the vehicle driving on a circle with the maximum turning radius and a desired change in angle (heading: theta) as well as the trivial case of no turning at all.

karlkurzer avatar Oct 09 '17 13:10 karlkurzer

Hi, I am trying to launch your codes. It seems like codes run without any errors but showing noting in the screen. Could you tell me how I run the demo? ss

k0suke-murakami avatar Nov 05 '17 05:11 k0suke-murakami

You could create a path by specifying a start and an end pose, after that add the respective topics being published to Rviz. I hope that helps.

karlkurzer avatar Nov 05 '17 17:11 karlkurzer

@cirpue49 In case you still stuck with it, you can find the instruction in the master branch now.

toby4548 avatar Jan 17 '18 09:01 toby4548

@karlkurzer I forgot to add another dependency, which is the map-server(http://wiki.ros.org/map_server). Can you add it in the README.md?

toby4548 avatar Jan 17 '18 14:01 toby4548

@toby4548 thanks again, and done ;-)

karlkurzer avatar Jan 17 '18 19:01 karlkurzer

@karlkurzer You are welcome. Thank you for your amazing work. I hope more people will benefit from it :+1:

toby4548 avatar Jan 17 '18 19:01 toby4548

@Forrest-Z Hi, buddy, have you successfully changed the cellsize to 0.2m? I tried to change the path_planner/include/constants.h file to static const float cellSize = 0.5; remake and relauch. The result turned out that, I can not set a start position by RViz, I don't know what happened. The initial point of path planning can not be set. Do you know any other related change that I need to make?

Thank you.

YerikYuan avatar Nov 26 '18 18:11 YerikYuan

Dear @karlkurzer first of all nice job, i'd like to know if anyone have resolved the issue of cellSize?

thanks

emanuelebeliart avatar Jul 12 '19 13:07 emanuelebeliart

Hi everyone, does anyone have resolved the issue of cellSize

tranducthuan1 avatar Oct 30 '19 02:10 tranducthuan1

Hi @karlkurzer ,I have a questions about bbSize. https://github.com/karlkurzer/path_planner/blob/3d9ec015cec0c29395e121226ee97eb247b8a6ee/include/constants.h#L118

sqrt(width * width + length* length) means the diagonal length of the vehicle, the value is 4. what the +4 means? Looking forward your answer, Thanks.

takeoffstd avatar Oct 30 '19 08:10 takeoffstd

This is the bounding box of the vehicle the plus 4 is a safety term ensuring that the entire vehicle is covered for all headings.

karlkurzer avatar Jan 06 '20 15:01 karlkurzer

can you explain how to caculate the value of dx[] ,dy[] in node3D

hebingliu-5 avatar Jan 11 '20 03:01 hebingliu-5

Hi everyone, does anyone have resolved the issue of cellSize I'd like to bring to attention that the 'cellSize' issue is still ongoing. It seems to be a persistent challenge for many users, and addressing it could significantly enhance the user experience. I understand that resolving such issues can be complex, and I appreciate all the effort put into maintaining and improving this software.

If there's any additional information or testing required to help diagnose or fix the problem, I, along with many others in the community, would be more than willing to contribute. This feature is crucial for several of our projects, and a timely resolution would be immensely beneficial.

Thank you for your continuous support and dedication to improving this tool. Looking forward to any updates or suggestions on how we can assist in this matter

zly7 avatar Oct 30 '23 09:10 zly7