-
Notifications
You must be signed in to change notification settings - Fork 699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(freespace_planning_algorithms): add Astar search by python #6398
feat(freespace_planning_algorithms): add Astar search by python #6398
Conversation
9e50de7
to
ac8f592
Compare
planning/freespace_planning_algorithms/scripts/example/example.py
Outdated
Show resolved
Hide resolved
// #include <pybind11/stl.h> | ||
// #include <pybind11/stl_bind.h> | ||
// #include <pybind11/eigen.h> | ||
// #include <pybind11/chrono.h> | ||
// #include <pybind11/complex.h> | ||
// #include <pybind11/functional.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are neeeded?
@@ -0,0 +1,103 @@ | |||
#include "freespace_planning_algorithms/astar_search.hpp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please write copyright
@TakumIto you also can run in local
|
c23dace
to
e776033
Compare
@kosuke55 |
@kosuke55 |
ab8383b
to
3b81383
Compare
@kosuke55 I have done updates just now. |
thanks!!!!!!!!!!!!!!!!!!!!!!!!!!! |
planning/freespace_planning_algorithms/scripts/bind/astar_search_pybind.cpp
Outdated
Show resolved
Hide resolved
0748c54
to
744fd03
Compare
744fd03
to
4a4c8cc
Compare
4a4c8cc
to
5248c96
Compare
return self.astar_search.makePlan(start_pose_byte, goal_pose_byte) | ||
|
||
def getWaypoints(self): | ||
waypoints_vetor = self.astar_search.getWaypoints() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
waypoints_vetor = self.astar_search.getWaypoints() | |
waypoints_vector = self.astar_search.getWaypoints() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and others
5248c96
to
ae93f77
Compare
1532c89
to
36b736a
Compare
@kosuke55 I modified some typos and inserted the document. Could you check them? |
could you please fix spellcheck? |
@kosuke55 I fixed it. |
planning/freespace_planning_algorithms/scripts/bind/astar_search_pybind.cpp
Outdated
Show resolved
Hide resolved
356aef6
to
ce99373
Compare
@@ -0,0 +1,50 @@ | |||
import freespace_planning_algorithms.freespace_planning_algorithms_pybind as _fp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add copyright
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed it
@@ -0,0 +1,79 @@ | |||
import freespace_planning_algorithms.astar_search as fp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add copyright
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed it
hmm, please check this
|
@kosuke55 fixed it. Could you please check? |
@TakumIto
|
06cb432
to
2e319c3
Compare
planning/freespace_planning_algorithms/scripts/bind/astar_search_pybind.cpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Takumi Ito <takumi.ito@tier4.jp>
Signed-off-by: Takumi Ito <takumi.ito@tier4.jp>
- No need to convert to serial when user passes ros2 message to methods. Signed-off-by: Takumi Ito <takumi.ito@tier4.jp>
Signed-off-by: Takumi Ito <takumi.ito@tier4.jp>
Signed-off-by: Takumi Ito <takumi.ito@tier4.jp>
Signed-off-by: Takumi Ito <takumi.ito@tier4.jp>
…ch_pybind.cpp Co-authored-by: Kosuke Takeuchi <kosuke.tnp@gmail.com>
Signed-off-by: Takumi Ito <takumi.ito@tier4.jp> fix copyright Signed-off-by: Takumi Ito <takumi.ito@tier4.jp> add copyright Signed-off-by: Takumi Ito <takumi.ito@tier4.jp>
4086808
to
54fff6d
Compare
@kosuke55 Thanks!!! |
…warefoundation#6398) * feat(freespace_planning_algorithms): add Astar search by python Signed-off-by: Takumi Ito <takumi.ito@tier4.jp> * add copywrite and remove unneeded comment Signed-off-by: Takumi Ito <takumi.ito@tier4.jp> * - Add method getWaypoints() into the astar class. - No need to convert to serial when user passes ros2 message to methods. Signed-off-by: Takumi Ito <takumi.ito@tier4.jp> * insert astar python documents into the README Signed-off-by: Takumi Ito <takumi.ito@tier4.jp> * trivial modification Signed-off-by: Takumi Ito <takumi.ito@tier4.jp> * modify typo Signed-off-by: Takumi Ito <takumi.ito@tier4.jp> * Update planning/freespace_planning_algorithms/scripts/bind/astar_search_pybind.cpp Co-authored-by: Kosuke Takeuchi <kosuke.tnp@gmail.com> * ad copyright Signed-off-by: Takumi Ito <takumi.ito@tier4.jp> fix copyright Signed-off-by: Takumi Ito <takumi.ito@tier4.jp> add copyright Signed-off-by: Takumi Ito <takumi.ito@tier4.jp> * Update planning/freespace_planning_algorithms/scripts/bind/astar_search_pybind.cpp --------- Signed-off-by: Takumi Ito <takumi.ito@tier4.jp> Co-authored-by: Takumi Ito <takumi.ito@tier4.jp> Co-authored-by: Kosuke Takeuchi <kosuke.tnp@gmail.com>
Description
Make the following feature into the freespace_planning_algorithms package.
setMap()
function that sets "costmap" into the Astar classmakePlan()
function in the Astar classTests performed
Test with the data: settings, costmap, initial pose, and goalpose.
These data were successful in finding the goal in planning simulation with autoware.
evaluator_description: feat/freespace_astar_python
2024/03/13 https://evaluation.tier4.jp/evaluation/reports/3b522d1a-59f5-56a3-aaeb-de18be2c5042/?project_id=prd_jt
-- success to find goal by python, too.
https://evaluation.tier4.jp/evaluation/reports/d4a8a1ce-15b6-5301-95c6-23092a8dbe18?project_id=prd_jt
Effects on system behavior
There is no affection in autoware by this feature.
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.