packml_transitions_single_cycle.h
Go to the documentation of this file.
1 /*
2  * Software License Agreement (Apache License)
3  *
4  * Copyright (c) 2018 Plus One Robotics
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 #pragma once
19 
20 #include "packml_sm/dlog.h"
24 
25 #include <boost/msm/front/state_machine_def.hpp>
26 #include <boost/msm/front/functor_row.hpp>
27 
28 namespace packml_sm
29 {
31  public boost::msm::front::state_machine_def<PackmlTransitionsSingleCycle>
32 {
33 public:
35 
36  template <class FSM, class Event>
37  void no_transition(Event const&, FSM&, int)
38  {
39  }
40 
42  : boost::mpl::vector<
43  // Start Event Target Action Guard
44  // +---------+------------+-----------+---------------------------+----------------------------+
45  // aborted
46  boost::msm::front::Row<Aborted_impl, clear_event, Clearing_impl>,
47  // clearing
48  boost::msm::front::Row<Clearing_impl, state_complete_event, Stopped_impl>,
49  boost::msm::front::Row<Clearing_impl, abort_event, Aborting_impl>,
50  boost::msm::front::Row<Clearing_impl, error_event, Aborting_impl>,
51  // stopped
52  boost::msm::front::Row<Stopped_impl, reset_event, Resetting_impl>,
53  boost::msm::front::Row<Stopped_impl, abort_event, Aborting_impl>,
54  boost::msm::front::Row<Stopped_impl, error_event, Aborting_impl>,
55  // resetting
56  boost::msm::front::Row<Resetting_impl, state_complete_event, Idle_impl>,
57  boost::msm::front::Row<Resetting_impl, abort_event, Aborting_impl>,
58  boost::msm::front::Row<Resetting_impl, error_event, Aborting_impl>,
59  boost::msm::front::Row<Resetting_impl, stop_event, Stopping_impl>,
60  // idle
61  boost::msm::front::Row<Idle_impl, start_event, Starting_impl>,
62  boost::msm::front::Row<Idle_impl, abort_event, Aborting_impl>,
63  boost::msm::front::Row<Idle_impl, error_event, Aborting_impl>,
64  boost::msm::front::Row<Idle_impl, stop_event, Stopping_impl>,
65  // starting
66  boost::msm::front::Row<Starting_impl, state_complete_event, Execute_impl>,
67  boost::msm::front::Row<Starting_impl, abort_event, Aborting_impl>,
68  boost::msm::front::Row<Starting_impl, error_event, Aborting_impl>,
69  boost::msm::front::Row<Starting_impl, stop_event, Stopping_impl>,
70  // execute
71  boost::msm::front::Row<Execute_impl, hold_event, Holding_impl>,
72  boost::msm::front::Row<Execute_impl, state_complete_event, Completing_impl>,
73  boost::msm::front::Row<Execute_impl, suspend_event, Suspending_impl>,
74  boost::msm::front::Row<Execute_impl, abort_event, Aborting_impl>,
75  boost::msm::front::Row<Execute_impl, error_event, Aborting_impl>,
76  boost::msm::front::Row<Execute_impl, stop_event, Stopping_impl>,
77  // holding
78  boost::msm::front::Row<Holding_impl, state_complete_event, Held_impl>,
79  boost::msm::front::Row<Holding_impl, abort_event, Aborting_impl>,
80  boost::msm::front::Row<Holding_impl, error_event, Aborting_impl>,
81  boost::msm::front::Row<Holding_impl, stop_event, Stopping_impl>,
82  // held
83  boost::msm::front::Row<Held_impl, unhold_event, UnHolding_impl>,
84  boost::msm::front::Row<Held_impl, error_event, Aborting_impl>,
85  boost::msm::front::Row<Held_impl, abort_event, Aborting_impl>,
86  boost::msm::front::Row<Held_impl, stop_event, Stopping_impl>,
87  // unholding
88  boost::msm::front::Row<UnHolding_impl, state_complete_event, Execute_impl>,
89  boost::msm::front::Row<UnHolding_impl, abort_event, Aborting_impl>,
90  boost::msm::front::Row<UnHolding_impl, error_event, Aborting_impl>,
91  boost::msm::front::Row<UnHolding_impl, stop_event, Stopping_impl>,
92  // suspending
93  boost::msm::front::Row<Suspending_impl, state_complete_event, Suspended_impl>,
94  boost::msm::front::Row<Suspending_impl, abort_event, Aborting_impl>,
95  boost::msm::front::Row<Suspending_impl, error_event, Aborting_impl>,
96  boost::msm::front::Row<Suspending_impl, stop_event, Stopping_impl>,
97  // suspended
98  boost::msm::front::Row<Suspended_impl, unsuspend_event, UnSuspending_impl>,
99  boost::msm::front::Row<Suspended_impl, abort_event, Aborting_impl>,
100  boost::msm::front::Row<Suspended_impl, error_event, Aborting_impl>,
101  boost::msm::front::Row<Suspended_impl, stop_event, Stopping_impl>,
102  // unsuspending
103  boost::msm::front::Row<UnSuspending_impl, state_complete_event, Execute_impl>,
104  boost::msm::front::Row<UnSuspending_impl, abort_event, Aborting_impl>,
105  boost::msm::front::Row<UnSuspending_impl, error_event, Aborting_impl>,
106  boost::msm::front::Row<UnSuspending_impl, stop_event, Stopping_impl>,
107  // completing
108  boost::msm::front::Row<Completing_impl, state_complete_event, Complete_impl>,
109  boost::msm::front::Row<Completing_impl, abort_event, Aborting_impl>,
110  boost::msm::front::Row<Completing_impl, error_event, Aborting_impl>,
111  boost::msm::front::Row<Completing_impl, stop_event, Stopping_impl>,
112  // complete
113  boost::msm::front::Row<Complete_impl, reset_event, Resetting_impl>,
114  boost::msm::front::Row<Complete_impl, abort_event, Aborting_impl>,
115  boost::msm::front::Row<Complete_impl, error_event, Aborting_impl>,
116  boost::msm::front::Row<Complete_impl, stop_event, Stopping_impl>,
117  // aborting
118  boost::msm::front::Row<Aborting_impl, state_complete_event, Aborted_impl>,
119  // stopping
120  boost::msm::front::Row<Stopping_impl, state_complete_event, Stopped_impl> >
121  {
122  };
123 };
124 }


packml_sm
Author(s): Shaun Edwards
autogenerated on Fri Jul 12 2019 03:30:55