ego-planner icon indicating copy to clipboard operation
ego-planner copied to clipboard

3D-2D

Open zrd1234 opened this issue 3 years ago • 2 comments

Hello, thank you very much for your work. I want to use it in 2D to make a plane plan and how to modify it. Please guide me. Thank you.

zrd1234 avatar Sep 16 '22 07:09 zrd1234

You can just inflate the gird map a great amount in z direction.

bigsuperZZZX avatar Oct 08 '22 04:10 bigsuperZZZX

You can just inflate the gird map a great amount in z direction.

Hello, is the z-axis in the configuration file? I have modified the A* algorithm to two-dimensional search, but sometimes there is A star error problem, may I ask what is the reason for this problem? Kazam_screenshot_00000

zrd1234 avatar Oct 08 '22 05:10 zrd1234

Hello, I fixed the search range of A* in the plane, so it is a 2D path planning, but a star error often occurs. If the a* algorithm fails, the path becomes 3 dimensional. Would like to ask the most likely cause of failure.

zrd1234 avatar Oct 17 '22 09:10 zrd1234

I hope that this late response helps. Your error indicates that the openSet_ is empty before finding an A* solution.

bigsuperZZZX avatar Jan 29 '23 05:01 bigsuperZZZX

I hope that this late response helps. Your error indicates that the openSet_ is empty before finding an A* solution. Thank you very much for your reply. Do you mean that this error occurred because openset_ was empty and the node could not be found?

zrd1234 avatar Jan 29 '23 06:01 zrd1234

That's true

bigsuperZZZX avatar Jan 29 '23 06:01 bigsuperZZZX

这是真的

May I ask if there is any good way to solve this problem? I want to do two-dimensional planning, but sometimes I just go three-dimensional.

zrd1234 avatar Jan 29 '23 07:01 zrd1234

The planner is designed for 3D flight, and maybe converting to 2D will be a big project. A relatively easier solution is to modify the inflation function in the mapping code. You can choose a certain layer at a specific height and inflate that layer up and down with enough margin so that the trajectory will not go above the wall. It will make the new 3D map looks like this: image Then implement the planner as normal and ignore the z-component of the trajectory.

bigsuperZZZX avatar Jan 29 '23 07:01 bigsuperZZZX

The planner is designed for 3D flight, and maybe converting to 2D will be a big project. A relatively easier solution is to modify the inflation function in the mapping code. You can choose a certain layer at a specific height and inflate that layer up and down with enough margin so that the trajectory will not go above the wall. It will make the new 3D map looks like this: image Then implement the planner as normal and ignore the z-component of the trajectory.

May I ask how to operate or modify it? I don't understand this part of the code. Because of my limited ability, I did not see how to operate.

zrd1234 avatar Jan 29 '23 08:01 zrd1234

modifying and debugging this is still a little bit complicated. So perhaps it is unavoidable for you to read and understand the code by yourself.

bigsuperZZZX avatar Jan 29 '23 08:01 bigsuperZZZX