Skip to content
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

Feature/test astar planner #1753

Merged
merged 11 commits into from
Mar 13, 2019
Merged

Feature/test astar planner #1753

merged 11 commits into from
Mar 13, 2019

Conversation

sgermanserrano
Copy link

Status

DEVELOPMENT

Description

Added initial set of tests for astar_util

Related PRs

#1594

@sgermanserrano
Copy link
Author

@aohsato can you have a look at the calcDiffOfRadian function inside astar_util.h? I have added a basic test to check the function which is failing at the moment. Can you confirm what you expected the function should output for the 3 conditions in the test?

  • Diff < 180 degrees
  • 180 degrees < Diff < 360 degrees
  • Diff > 360 degrees

@aohsato aohsato mentioned this pull request Dec 3, 2018
6 tasks
@HEGALLIS
Copy link

Is this going to be merged for 1.10?

@sgermanserrano
Copy link
Author

sgermanserrano commented Jan 3, 2019

@aohsato @kfunaoka can you review this PR? I have added some initial tests for A* algorithm, it would be worth adding some more to verify full working order of the algorithm.
Also, as discussed in Slack the nav_msgs::OccupancyGrid variable type should be replaced by GridMap

Copy link

@aohsato aohsato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sgermanserrano Thanks and sorry for my late. About calcDiffOfRadian, I fixed that with fmod in this commit.
1bb1fc7
But actually, it's more simple to handle angle diff between -pi~pi by using atan2(sin(t),cos(t)) technique, so I'll fix that in my next chance. Thanks.

@aohsato aohsato merged commit ebf7de6 into autowarefoundation:feature/test_astar_planner Mar 13, 2019
aohsato added a commit that referenced this pull request Mar 14, 2019
* Delete obstacle_sim from astar_planner package, replaced to lidar_fake_perception

* Modify package name, astar_planner -> waypoint_planner, and create astar_planner library package

* Delete obstacle_avoid/astar* and modify its dependency to astar_planner library

* Fix astar_navi with astar_planner library

* Refactor astar_navi by separating HAstar library and fixing coodinate system

* Rename obstacle_avoid -> astar_avoid and under refactoring

* Fix cost function and configures

* Fix backward search and refactor configurations

* Apply clang-format

* Refactor include

* Fix typo and so on

* Improve astar_avoid by incremental goal search

* Apply clang-format

* Revert package names

* Fix package/code names

* Update runtime_manager

* Improve astar_avoid to execute avoidance behavior by state transition (by rebuild decision maker)

* Fix PascalCase message names by #1408

* Remove obstacle_avoid directory

* Fix default parameter for costmap topic

* Fix warning and initialize condition

* Remove use_avoidance_state mode (TODO: after merging rebuild decision maker)

* Improve astar_avoid behavior by simple state transition and multi-threading

* Apply clang-format

* Fix replan_interval in astar_avoid

* Add descriptions for paramters

* Rename pkg name, astar_planner -> waypoint_planner

* Fix param name

* Fix avoid waypoints height

* Fix parameter and formalize code

* Add README for freespace/waypoint_planner

* Add License terms

Co-Authored-By: aohsato <aohsato@gmail.com>

Add License terms

Co-Authored-By: aohsato <aohsato@gmail.com>

Add License terms

Co-Authored-By: aohsato <aohsato@gmail.com>

Add License terms

Co-Authored-By: aohsato <aohsato@gmail.com>

Add License terms

Co-Authored-By: aohsato <aohsato@gmail.com>

Fix CHANGELOG

Co-Authored-By: aohsato <aohsato@gmail.com>

Add License terms

Co-Authored-By: aohsato <aohsato@gmail.com>

Add License terms

Co-Authored-By: aohsato <aohsato@gmail.com>

* Fix astar_navi/README.md

* Add License terms

* Fix const pointer

* Added unit test base

* Restructured folders

* Fix bug by adding AstarSearch reset

* Fix WaveFrontNode initialization

Co-Authored-By: aohsato <aohsato@gmail.com>

* Fix variable name

* Refactor threading

* Re-adding lidar_fake_perception

* Fix the condition to judge reaching goal

* Add 'use_decision state' mode to transit avoidance state by decision_maker

* Fix calcDiffOfRadian (if diff > 2pi)

* Feature/test astar planner (#1753)

* Restructured folders

* Added unit test base

* Removed remaining folder

* Test WIP

* Added astar_util tests and base file for astar_search tests

* Updated to ROS Cpp Style guidelines

* Added test for SimpleNode constructor

* Updated Copyright date

* Added tests for astar algorithm

* Added default constructor to WaveFront struct

* Revert use_state_decision mode (94af7b6)

* Fix costmap topic names by merging costmap_generator
@sgermanserrano sgermanserrano deleted the feature/test_astar_planner branch March 20, 2019 14:15
@lanhaigit
Copy link

@aohsato hi , i want to ask you one question ,why the hybrid a* cann't work well ,
after checking the code ,it seems like some issues in the code , so could you have solution now?
thank you very much.

@sgermanserrano
Copy link
Author

@lanhaigit please ask your questions on ROS Answers

anubhavashok pushed a commit to NuronLabs/autoware.ai that referenced this pull request Sep 7, 2021
* Delete obstacle_sim from astar_planner package, replaced to lidar_fake_perception

* Modify package name, astar_planner -> waypoint_planner, and create astar_planner library package

* Delete obstacle_avoid/astar* and modify its dependency to astar_planner library

* Fix astar_navi with astar_planner library

* Refactor astar_navi by separating HAstar library and fixing coodinate system

* Rename obstacle_avoid -> astar_avoid and under refactoring

* Fix cost function and configures

* Fix backward search and refactor configurations

* Apply clang-format

* Refactor include

* Fix typo and so on

* Improve astar_avoid by incremental goal search

* Apply clang-format

* Revert package names

* Fix package/code names

* Update runtime_manager

* Improve astar_avoid to execute avoidance behavior by state transition (by rebuild decision maker)

* Fix PascalCase message names by autowarefoundation#1408

* Remove obstacle_avoid directory

* Fix default parameter for costmap topic

* Fix warning and initialize condition

* Remove use_avoidance_state mode (TODO: after merging rebuild decision maker)

* Improve astar_avoid behavior by simple state transition and multi-threading

* Apply clang-format

* Fix replan_interval in astar_avoid

* Add descriptions for paramters

* Rename pkg name, astar_planner -> waypoint_planner

* Fix param name

* Fix avoid waypoints height

* Fix parameter and formalize code

* Add README for freespace/waypoint_planner

* Add License terms

Co-Authored-By: aohsato <aohsato@gmail.com>

Add License terms

Co-Authored-By: aohsato <aohsato@gmail.com>

Add License terms

Co-Authored-By: aohsato <aohsato@gmail.com>

Add License terms

Co-Authored-By: aohsato <aohsato@gmail.com>

Add License terms

Co-Authored-By: aohsato <aohsato@gmail.com>

Fix CHANGELOG

Co-Authored-By: aohsato <aohsato@gmail.com>

Add License terms

Co-Authored-By: aohsato <aohsato@gmail.com>

Add License terms

Co-Authored-By: aohsato <aohsato@gmail.com>

* Fix astar_navi/README.md

* Add License terms

* Fix const pointer

* Added unit test base

* Restructured folders

* Fix bug by adding AstarSearch reset

* Fix WaveFrontNode initialization

Co-Authored-By: aohsato <aohsato@gmail.com>

* Fix variable name

* Refactor threading

* Re-adding lidar_fake_perception

* Fix the condition to judge reaching goal

* Add 'use_decision state' mode to transit avoidance state by decision_maker

* Fix calcDiffOfRadian (if diff > 2pi)

* Feature/test astar planner (autowarefoundation#1753)

* Restructured folders

* Added unit test base

* Removed remaining folder

* Test WIP

* Added astar_util tests and base file for astar_search tests

* Updated to ROS Cpp Style guidelines

* Added test for SimpleNode constructor

* Updated Copyright date

* Added tests for astar algorithm

* Added default constructor to WaveFront struct

* Revert use_state_decision mode (94af7b6)

* Fix costmap topic names by merging costmap_generator
@mitsudome-r mitsudome-r added the version:autoware-ai Autoware.AI label Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants