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)
 
template<typename TDerived , typename TOrthogonal >
void initialize (ClNav2Z *client)
 
void postWaypointEvent (int index)
 

Public Attributes

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

Detailed Description

Definition at line 1581 of file cp_waypoints_event_dispatcher.hpp.

Member Function Documentation

◆ initialize() [1/2]

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

Definition at line 1601 of file cp_waypoints_event_dispatcher.hpp.

1602{
1603 // Doygen cond tag
1605 this->client_ = client;
1863 // Doxygen endcond tag
1865}
std::function< void()> postWaypointFn[WAYPOINTS_EVENTCOUNT]
void configurePostEvWaypoint(std::function< void()> *fntarget, ClNav2Z *client, int index)

References configurePostEvWaypoint().

Referenced by cl_nav2z::CpWaypointNavigator::onStateOrthogonalAllocation(), and cl_nav2z::CpWaypointNavigatorBase::onStateOrthogonalAllocation().

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

◆ initialize() [2/2]

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

◆ postWaypointEvent() [1/2]

void WaypointEventDispatcher::postWaypointEvent ( int index)

Definition at line 27 of file cp_waypoints_event_dispatcher.cpp.

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

References WAYPOINTS_EVENTCOUNT.

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

Here is the caller graph for this function:

◆ postWaypointEvent() [2/2]

void WaypointEventDispatcher::postWaypointEvent ( int index)

Member Data Documentation

◆ client_

ClNav2Z* WaypointEventDispatcher::client_ = nullptr

Definition at line 1584 of file cp_waypoints_event_dispatcher.hpp.

Referenced by configurePostEvWaypoint().

◆ postWaypointFn

std::function< void()> WaypointEventDispatcher::postWaypointFn

Definition at line 1585 of file cp_waypoints_event_dispatcher.hpp.

Referenced by configurePostEvWaypoint().


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