VIPRA Documentation
|
Goals module that uses the A* algorithm to find the path to the goal. More...
#include <astar.hpp>
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 | |
![]() | |
void | register_params (Parameters ¶mIn) |
Registers the modules parameters with the parameter reader. | |
void | config (Parameters ¶mIn, VIPRA::Random::Engine &engine) |
Loads in all parameters for the module. | |
![]() | |
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 | |
![]() | |
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 | |
![]() | |
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) |
Goals module that uses the A* algorithm to find the path to the goal.