Bratmobile
Public Member Functions | Static Public Member Functions | List of all members
Planner Class Referenceabstract

Searches the transition system and extracts a plan. More...

#include <planner.h>

Inheritance diagram for Planner:
Inheritance graph
[legend]

Public Member Functions

virtual std::vector< vertexDescriptor > plan (TransitionSystem &g, vertexDescriptor src, ExecutionInfo &info, bool *finished)=0
 Implements custom algorithm to search transition system for a plan. More...
 

Static Public Member Functions

static float evaluationFunction (EndedResult er, const vertexDescriptor &v, std::vector< vertexDescriptor > &p)
 calculates cumulative cost phi, add discount factor if in plan More...
 
static EndedResult estimateCost (const State &state, b2Transform start, Direction d, Task &_goal)
 Estimates cost (phi) of a state as a measure of: past cost (gamma): the position relative to an obstacle, if present future cost heuristic (chi): the position relative to a goal, if present. More...
 

Detailed Description

Searches the transition system and extracts a plan.

Member Function Documentation

◆ estimateCost()

EndedResult Planner::estimateCost ( const State state,
b2Transform  start,
Direction  d,
Task _goal 
)
static

Estimates cost (phi) of a state as a measure of: past cost (gamma): the position relative to an obstacle, if present future cost heuristic (chi): the position relative to a goal, if present.

Parameters
statethe current state
startwhere the task started from
dtask direction
_goalthe overaraching goal
Returns
EndedResult

◆ evaluationFunction()

float Planner::evaluationFunction ( EndedResult  er,
const vertexDescriptor &  v,
std::vector< vertexDescriptor > &  p 
)
static

calculates cumulative cost phi, add discount factor if in plan

Parameters
ercontains information on whether a Task has ended and with that cumulative cost (phi)
vthe vertex that the Task corresponds to
pthe plan
Returns
float

◆ plan()

virtual std::vector<vertexDescriptor> Planner::plan ( TransitionSystem &  g,
vertexDescriptor  src,
ExecutionInfo info,
bool *  finished 
)
pure virtual

Implements custom algorithm to search transition system for a plan.

Parameters
gthe transitionSystem
srcvertex from which the planning start
infoexecution info
finishedwill return true if the planning process reaches the goal
Returns
std::vector<vertexDescriptor>

Implemented in HorizonStarPlanner.


The documentation for this class was generated from the following files: