SMACC2
st_navigate_to_waypoints_x.hpp
Go to the documentation of this file.
1// Copyright 2021 RobosoftAI Inc.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15/*****************************************************************************************************************
16 *
17 * Authors: Pablo Inigo Blasco, Brett Aldrich
18 *
19 ******************************************************************************************************************/
20
21#pragma once
22
23#include <smacc2/smacc.hpp>
24
26{
27// STATE DECLARATION
28struct StNavigateToWaypointsX : smacc2::SmaccState<StNavigateToWaypointsX, MsDanceBotRunMode>
29{
30 using SmaccState::SmaccState;
31
32 // CUSTOM TRANSITION TAGS
39
40 // TRANSITION TABLE
41 typedef mpl::list<
42
43 Transition<EvWaypoint0<ClNav2Z, OrNavigation>, SS4::SsFPattern1, TRANSITION_1>,
44 Transition<EvWaypoint1<ClNav2Z, OrNavigation>, SS1::SsRadialPattern1, TRANSITION_2>,
45 Transition<EvWaypoint2<ClNav2Z, OrNavigation>, SS2::SsRadialPattern2, TRANSITION_3>,
46 Transition<EvWaypoint3<ClNav2Z, OrNavigation>, SS5::SsSPattern1, TRANSITION_5>,
47 Transition<EvWaypoint4<ClNav2Z, OrNavigation>, SS6::SsSPattern2, TRANSITION_6>,
48 Transition<EvCbFailure<CbNavigateNextWaypoint, OrNavigation>, StNavigateToWaypointsX, ABORT>
49
51
52 // STATE FUNCTIONS
53 static void staticConfigure()
54 {
55 configure_orthogonal<OrLED, CbLEDOn>();
56 configure_orthogonal<OrNavigation, CbNavigateNextWaypoint>();
57 configure_orthogonal<OrNavigation, CbResumeSlam>();
58 configure_orthogonal<OrObstaclePerception, CbLidarSensor>();
59 }
60
62
64 {
65 }
66};
67} // namespace sm_dance_bot_warehouse
mpl::list< Transition< EvWaypoint0< ClNav2Z, OrNavigation >, SS4::SsFPattern1, TRANSITION_1 >, Transition< EvWaypoint1< ClNav2Z, OrNavigation >, SS1::SsRadialPattern1, TRANSITION_2 >, Transition< EvWaypoint2< ClNav2Z, OrNavigation >, SS2::SsRadialPattern2, TRANSITION_3 >, Transition< EvWaypoint3< ClNav2Z, OrNavigation >, SS5::SsSPattern1, TRANSITION_5 >, Transition< EvWaypoint4< ClNav2Z, OrNavigation >, SS6::SsSPattern2, TRANSITION_6 >, Transition< EvCbFailure< CbNavigateNextWaypoint, OrNavigation >, StNavigateToWaypointsX, ABORT > > reactions