Environment class.
More...
#include <environment.hpp>
|
| Environment (size_t maxx, size_t maxy, std::unordered_set< Location > obstacles, std::multimap< int, State > dynamic_obstacles, std::vector< State > goals) |
|
| Environment (const Environment &)=delete |
|
Environment & | operator= (const Environment &)=delete |
|
bool | getFirstConflict (const std::vector< PlanResult< State, Action, double >> &solution, Conflict &result) |
| High Level Environment functions. More...
|
|
void | createConstraintsFromConflict (const Conflict &conflict, std::map< size_t, Constraints > &constraints) |
|
void | onExpandHighLevelNode (int) |
|
int | highLevelExpanded () |
|
void | setLowLevelContext (size_t agentIdx, const Constraints *constraints) |
| Low Level Environment functions. More...
|
|
int | admissibleHeuristic (const State &s) |
|
bool | isSolution (const State &state, double gscore, std::unordered_map< State, std::tuple< State, Action, double, double >, std::hash< State >> &_camefrom) |
|
void | getNeighbors (const State &s, Action action, std::vector< Neighbor< State, Action, double >> &neighbors) |
|
State | getGoal () |
|
uint64_t | calcIndex (const State &s) |
|
void | onExpandLowLevelNode (const State &, int, int) |
|
int | lowLevelExpanded () const |
|
bool | startAndGoalValid (const std::vector< State > &m_starts, const size_t iter, const int batchsize) |
|
template<typename Location, typename State, typename Action, typename Cost, typename Conflict, typename Constraint, typename Constraints>
class libMultiRobotPlanning::Environment< Location, State, Action, Cost, Conflict, Constraint, Constraints >
Environment class.
- Template Parameters
-
Location | |
State | |
Action | |
Cost | |
Conflict | |
Constraint | |
Constraints | |
- Examples:
- cl_cbs.cpp, and sh_astar.cpp.
template<typename Location , typename State , typename Action , typename Cost , typename Conflict , typename Constraint , typename Constraints >
libMultiRobotPlanning::Environment< Location, State, Action, Cost, Conflict, Constraint, Constraints >::Environment |
( |
size_t |
maxx, |
|
|
size_t |
maxy, |
|
|
std::unordered_set< Location > |
obstacles, |
|
|
std::multimap< int, State > |
dynamic_obstacles, |
|
|
std::vector< State > |
goals |
|
) |
| |
|
inline |
template<typename Location , typename State , typename Action , typename Cost , typename Conflict , typename Constraint , typename Constraints >
libMultiRobotPlanning::Environment< Location, State, Action, Cost, Conflict, Constraint, Constraints >::Environment |
( |
const Environment< Location, State, Action, Cost, Conflict, Constraint, Constraints > & |
| ) |
|
|
delete |
template<typename Location , typename State , typename Action , typename Cost , typename Conflict , typename Constraint , typename Constraints >
template<typename Location , typename State , typename Action , typename Cost , typename Conflict , typename Constraint , typename Constraints >
template<typename Location , typename State , typename Action , typename Cost , typename Conflict , typename Constraint , typename Constraints >
void libMultiRobotPlanning::Environment< Location, State, Action, Cost, Conflict, Constraint, Constraints >::createConstraintsFromConflict |
( |
const Conflict & |
conflict, |
|
|
std::map< size_t, Constraints > & |
constraints |
|
) |
| |
|
inline |
template<typename Location , typename State , typename Action , typename Cost , typename Conflict , typename Constraint , typename Constraints >
template<typename Location , typename State , typename Action , typename Cost , typename Conflict , typename Constraint , typename Constraints >
template<typename Location , typename State , typename Action , typename Cost , typename Conflict , typename Constraint , typename Constraints >
void libMultiRobotPlanning::Environment< Location, State, Action, Cost, Conflict, Constraint, Constraints >::getNeighbors |
( |
const State & |
s, |
|
|
Action |
action, |
|
|
std::vector< Neighbor< State, Action, double >> & |
neighbors |
|
) |
| |
|
inline |
template<typename Location , typename State , typename Action , typename Cost , typename Conflict , typename Constraint , typename Constraints >
template<typename Location , typename State , typename Action , typename Cost , typename Conflict , typename Constraint , typename Constraints >
bool libMultiRobotPlanning::Environment< Location, State, Action, Cost, Conflict, Constraint, Constraints >::isSolution |
( |
const State & |
state, |
|
|
double |
gscore, |
|
|
std::unordered_map< State, std::tuple< State, Action, double, double >, std::hash< State >> & |
_camefrom |
|
) |
| |
|
inline |
template<typename Location , typename State , typename Action , typename Cost , typename Conflict , typename Constraint , typename Constraints >
template<typename Location , typename State , typename Action , typename Cost , typename Conflict , typename Constraint , typename Constraints >
template<typename Location , typename State , typename Action , typename Cost , typename Conflict , typename Constraint , typename Constraints >
template<typename Location , typename State , typename Action , typename Cost , typename Conflict , typename Constraint , typename Constraints >
Environment& libMultiRobotPlanning::Environment< Location, State, Action, Cost, Conflict, Constraint, Constraints >::operator= |
( |
const Environment< Location, State, Action, Cost, Conflict, Constraint, Constraints > & |
| ) |
|
|
delete |
template<typename Location , typename State , typename Action , typename Cost , typename Conflict , typename Constraint , typename Constraints >
void libMultiRobotPlanning::Environment< Location, State, Action, Cost, Conflict, Constraint, Constraints >::setLowLevelContext |
( |
size_t |
agentIdx, |
|
|
const Constraints * |
constraints |
|
) |
| |
|
inline |
template<typename Location , typename State , typename Action , typename Cost , typename Conflict , typename Constraint , typename Constraints >
bool libMultiRobotPlanning::Environment< Location, State, Action, Cost, Conflict, Constraint, Constraints >::startAndGoalValid |
( |
const std::vector< State > & |
m_starts, |
|
|
const size_t |
iter, |
|
|
const int |
batchsize |
|
) |
| |
|
inline |
The documentation for this class was generated from the following file: