SMACC2
Loading...
Searching...
No Matches
WaypointEventDispatcher Class Reference

#include <cp_waypoints_event_dispatcher.hpp>

Collaboration diagram for WaypointEventDispatcher:
Collaboration graph

Public Member Functions

template<typename TDerived , typename TOrthogonal >
void initialize (ClNav2Z *client)
 
void postWaypointEvent (int index)
 

Private Attributes

std::function< void()> postWaypointFn [WAYPOINTS_EVENTCOUNT]
 

Detailed Description

Definition at line 1581 of file cp_waypoints_event_dispatcher.hpp.

Member Function Documentation

◆ initialize()

template<typename TDerived , typename TOrthogonal >
void WaypointEventDispatcher::initialize ( ClNav2Z * client)

Definition at line 1599 of file cp_waypoints_event_dispatcher.hpp.

1600{
1601 // Doygen cond tag
1860 // Doxygen endcond tag
1862}
std::function< void()> postWaypointFn[WAYPOINTS_EVENTCOUNT]
void configurePostEvWaypoint(std::function< void()> *fntarget, ClNav2Z *client, int index)

References configurePostEvWaypoint().

Referenced by cl_nav2z::CpWaypointNavigator::onOrthogonalAllocation().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ postWaypointEvent()

void WaypointEventDispatcher::postWaypointEvent ( int index)

Definition at line 25 of file cp_waypoints_event_dispatcher.cpp.

26{
27 auto & fn = postWaypointFn[index % WAYPOINTS_EVENTCOUNT];
28 if (fn != nullptr) fn();
29}
#define WAYPOINTS_EVENTCOUNT

References WAYPOINTS_EVENTCOUNT.

Referenced by cl_nav2z::CpWaypointNavigator::onGoalReached().

Here is the caller graph for this function:

Member Data Documentation

◆ postWaypointFn

std::function<void()> WaypointEventDispatcher::postWaypointFn[WAYPOINTS_EVENTCOUNT]
private

Definition at line 1583 of file cp_waypoints_event_dispatcher.hpp.


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