VIPRA Documentation
Loading...
Searching...
No Matches
VIPRA::Goals::PotentialField Class Reference
Inheritance diagram for VIPRA::Goals::PotentialField:
Collaboration diagram for VIPRA::Goals::PotentialField:

Public Member Functions

 VIPRA_REGISTER_PARAMS (VIPRA_PARAM("endGoalType", _endGoalType), VIPRA_PARAM("cellSize", _cellSize), VIPRA_PARAM("densityUpdateFrequency", _densityUpdateFrequency), VIPRA_PARAM("densityCellSize", _densityCellSize), VIPRA_PARAM("densityWeight", _densityWeight)) VIPRA_GOALS_RESET
 
_densityMap intialize (map, _densityCellSize)
 
 fill_grid (map)
 
 for (VIPRA::idx pedIdx=0;pedIdx< pedset.num_pedestrians();++pedIdx)
 
 if (_densityCheckCounter >=_densityUpdateFrequency)
 
 for (VIPRA::idx pedIdx=0;pedIdx< pedset.num_pedestrians();++pedIdx)
 
- Public Member Functions inherited from VIPRA::Modules::Module< PotentialField >
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_INIT_STEP
 
 VIPRA_GOALS_UPDATE_STEP
 
 VIPRA_GOALS_NEXT_GOAL { return false
 
 VIPRA_GOALS_CHANGE_GOAL
 
- 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)
 

Member Data Documentation

◆ VIPRA_GOALS_CHANGE_GOAL

VIPRA::Goals::PotentialField::VIPRA_GOALS_CHANGE_GOAL
Initial value:
{
throw std::runtime_error("Potential Field Goals is unable to change goals")

◆ VIPRA_GOALS_INIT_STEP

VIPRA::Goals::PotentialField::VIPRA_GOALS_INIT_STEP
Initial value:
{
_field.intialize(map, _cellSize)

◆ VIPRA_GOALS_UPDATE_STEP

VIPRA::Goals::PotentialField::VIPRA_GOALS_UPDATE_STEP
Initial value:
{
_densityCheckCounter++

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