23 #include "../ElevatorStateMachine.hh"
30 inline namespace GZ_SIM_VERSION_NAMESPACE {
38 template <
bool trigger>
39 struct EnqueueNewTarget
46 public:
template <
typename Event,
typename Fsm,
typename Source,
48 void operator()(
const Event &_event, Fsm &_fsm, Source & ,
51 _fsm.dataPtr->EnqueueNewTarget(_event.target);
66 public:
template <
typename Event,
typename Fsm,
typename Source,
72 if (_fsm.dataPtr->targets.front() == _fsm.dataPtr->system->state)
73 _fsm.dataPtr->targets.pop_front();
86 public:
template <
typename Event,
typename Fsm,
typename Source,
92 _fsm.dataPtr->targets.pop_front();