VIPRA Documentation
Loading...
Searching...
No Matches
VIPRA::Goals::AStar Class Reference

Goals module that uses the A* algorithm to find the path to the goal. More...

#include <astar.hpp>

Inheritance diagram for VIPRA::Goals::AStar:
Collaboration diagram for VIPRA::Goals::AStar:

Public Member Functions

 VIPRA_REGISTER_PARAMS (VIPRA_PARAM("endGoalType", _endGoalType), VIPRA_PARAM("goalRange", _goalRange), VIPRA_PARAM("gridSize", _gridSize), VIPRA_PARAM("closestObstacle", _closestObstacle), VIPRA_PARAM("pathSmoothing", _pathEpsilon)) VIPRA_GOALS_INIT_STEP
 
- Public Member Functions inherited from VIPRA::Modules::Module< AStar >
void register_params (Parameters &paramIn)
 Registers the modules parameters with the parameter reader.
 
void config (Parameters &paramIn, VIPRA::Random::Engine &engine)
 Loads in all parameters for the module.
 
- Public Member Functions inherited from VIPRA::Modules::Goals
void initialize (VIPRA::Modules::Pedestrians const &pedset, VIPRA::Modules::Map const &map, VIPRA::Random::Engine &engine)
 
void update (Modules::Pedestrians const &pedset, Modules::Map const &map, VIPRA::delta_t deltaT)
 
void change_end_goal (VIPRA::idx pedIdx, VIPRA::f3d currPos, VIPRA::f3d goalPos, VIPRA::Random::Engine &engine)
 
VIPRA_INLINE auto current_goals () const -> const VIPRA::f3dVec &
 
VIPRA_INLINE auto end_goals () const -> const VIPRA::f3dVec &
 
VIPRA_INLINE auto current_goal (VIPRA::idx pedIdx) const -> VIPRA::f3d const &
 
VIPRA_INLINE auto end_goal (VIPRA::idx pedIdx) const -> VIPRA::f3d const &
 
VIPRA_INLINE auto is_goal_met (VIPRA::idx pedIdx) const -> bool
 
VIPRA_INLINE auto is_sim_goal_met () const -> bool
 
VIPRA_INLINE auto time_since_last_goal (VIPRA::idx pedIdx) const -> VIPRA::f_pnt
 
 Goals (const Goals &)=default
 
 Goals (Goals &&) noexcept=default
 
auto operator= (const Goals &) -> Goals &=default
 
auto operator= (Goals &&) noexcept -> Goals &=default
 

Public Attributes

 VIPRA_GOALS_UPDATE_STEP
 
 VIPRA_GOALS_NEXT_GOAL
 
 VIPRA_GOALS_CHANGE_GOAL
 
 VIPRA_GOALS_RESET
 
- Public Attributes inherited from VIPRA::Modules::Goals
virtual VIPRA_GOALS_INIT_STEP = 0
 
virtual VIPRA_GOALS_UPDATE_STEP = 0
 
virtual VIPRA_GOALS_NEXT_GOAL = 0
 
virtual VIPRA_GOALS_CHANGE_GOAL = 0
 
virtual VIPRA_GOALS_RESET = 0
 

Additional Inherited Members

- Protected Member Functions inherited from VIPRA::Modules::Goals
VIPRA_INLINE void set_goal_met (VIPRA::idx pedIdx, bool met)
 
VIPRA_INLINE void set_end_goal (VIPRA::idx pedIdx, VIPRA::f3d pos)
 
VIPRA_INLINE void set_current_goal (VIPRA::idx pedIdx, VIPRA::f3d pos)
 

Detailed Description

Goals module that uses the A* algorithm to find the path to the goal.


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