A reasoner which uses planners to find optimal sequences of behaviors based on goals.
More...
|
| PlannerReasoner (std::unique_ptr< MemoryPool > memory) |
|
| PlannerReasoner (std::unique_ptr< MemoryPool > memory, std::shared_ptr< planner::GoalSelector > goalSelector, std::unique_ptr< planner::DomainTranslator > domainTranslator, const Config &config) |
|
virtual void | StageBehavior (AIEntity &entity) override |
| selectBehavior - Runs reasoner's selection algorithm and assigns chosen behavior to provided entity. More...
|
|
virtual void | SetNewGoal (std::unique_ptr< planner::Goal > newGoal, AIEntity &entity) override |
|
void | SetupNewPlanner (std::unique_ptr< planner::DomainTranslator > domainTranslator, const Config &config) |
|
void | SetFallbackBehavior (std::unique_ptr< Behavior > behavior) |
| Sets the behavior that should be performed during plan computation or if no valid plan is found.
|
|
virtual const planner::Goal * | GetCurrentGoal () const override |
|
void | BindPlanningSucceededCallback (PlannerCallback callback) |
| BindPlanningSucceededCallback - Binds a function handle to call if a sufficient (all goal conditions and plan restrictions met) plan is found. Found plan will be passed as function argument. More...
|
|
void | BindPartialPlanFoundCallback (PlannerCallback callback) |
| BindPartialPlanFoundCallback - Bind a function to call when no sufficient plan could be found, but some plan was formulated, this delegate will be called instead of onPlanningFailed. usePartialPlans needs to be true for this execute Plan with highest score will be passed as a function argument. More...
|
|
void | BindPlanningFailedCallback (std::function< void(const planner::Goal &)> callback) |
| BindPlanningFailedCallback - Bind a function to call when no sufficient plan was found. If reasoner uses partial plans this will only be called if no plan was formulated at all. More...
|
|
void | BindPlanExecutedCallback (std::function< void()> callback) |
| BindPlanExecutedCallback - Bind a function to call when entity has successfully executed chosen plan. More...
|
|
void | SetSnapshotProduction (bool shouldProduce) |
|
bool | IsComputing () const |
|
data::PlannerReasonerSnapshot | ProduceDebugSnapshot () |
|
virtual std::unique_ptr< ISnapshotGenerator > | CreateSnapshotGenerator (std::size_t) override |
|
void | ClearCurrentDebugSnapshot () |
|
void | SetDebugSnapshotFirstIteration (std::size_t iterationNumber) |
|
void | SetDebugSnapshotLastIteration (std::size_t iterationNumber) |
|
std::size_t | GetDebugSnapshotFirstIteration () const |
|
std::size_t | GetDebugSnapshotLastIteration () const |
|
| Reasoner (const Reasoner &)=default |
|
| Reasoner (Reasoner &&)=default |
|
Reasoner & | operator= (const Reasoner &)=default |
|
Reasoner & | operator= (Reasoner &&)=default |
|
virtual std::unique_ptr< ISnapshotGenerator > | CreateSnapshotGenerator (size_t) |
|
A reasoner which uses planners to find optimal sequences of behaviors based on goals.