GraphSearch class.
More...
#include <graph_search.h>
|
| GraphSearch (bool verbose=false) |
| Simple empty constructor. More...
|
|
decimal_t | Astar (const Coord &start_coord, const std::shared_ptr< env_base< Dim >> &ENV, std::shared_ptr< StateSpace< Dim, Coord >> &ss_ptr, Trajectory< Dim > &traj, int max_expand=-1) |
| Astar graph search. More...
|
|
decimal_t | LPAstar (const Coord &start_coord, const std::shared_ptr< env_base< Dim >> &ENV, std::shared_ptr< StateSpace< Dim, Coord >> &ss_ptr, Trajectory< Dim > &traj, int max_expand=-1) |
| Lifelong Planning Astar graph search. More...
|
|
template<int Dim, typename Coord>
class MPL::GraphSearch< Dim, Coord >
GraphSearch class.
Implement A* and Lifelong Planning A*
◆ GraphSearch()
template<int Dim, typename Coord >
Simple empty constructor.
- Parameters
-
verbose | enable print out debug infos, default is set to False |
◆ Astar()
template<int Dim, typename Coord >
Astar graph search.
- Parameters
-
start_coord | start state |
ENV | object of `env_base' class |
ss_ptr | workspace input |
traj | output trajectory |
max_expand | max number of expanded states, default value is -1 which means there is no limitation |
Comment following if build single connected graph
Comment this block if build multiple connected graph succNode_ptr->pred_coord.front() = currNode_ptr->coord; // Assign new parent succNode_ptr->pred_action_id.front() = succ_act_id[s]; succNode_ptr->pred_action_cost.front() = succ_cost[s];
◆ LPAstar()
template<int Dim, typename Coord >
Lifelong Planning Astar graph search.
- Parameters
-
start_coord | start state |
ENV | object of `env_base' class |
ss_ptr | workspace input |
traj | output trajectory |
max_expand | max number of expanded states, default value is -1 which means there is no limitation |
The documentation for this class was generated from the following file: