SMACC2
ss_radial_pattern_1.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#include <smacc2/smacc.hpp>
22
24{
25namespace SS1
26{
28{
29namespace radial_motion_states
30{
31//FORWARD DECLARATION OF INNER STATES
32class StiRadialRotate;
33class StiRadialReturn;
34class StiRadialEndPoint;
35class StiRadialLoopStart;
36class StiRadialEndPointRecovery;
37
38} // namespace radial_motion_states
39} // namespace sm_dance_bot_warehouse_3
41
42// STATE DECLARATION
44: smacc2::SmaccState<SsRadialPattern1, MsDanceBotRunMode, StiRadialLoopStart>
45{
46public:
47 using SmaccState::SmaccState;
48
49 // TRANSITION TABLE
50 typedef mpl::list<
51
52 // Transition<EvLoopEnd<StiRadialLoopStart>, StRotateDegrees1, ENDLOOP>
53 Transition<EvLoopEnd<StiRadialLoopStart>, StNavigateToWaypointsX, ENDLOOP>
54
56
57 static constexpr int total_iterations() { return 35; }
58 static constexpr float ray_angle_increment_degree() { return 360.0 / total_iterations(); }
59 static constexpr float ray_length_meters() { return 4; }
60
62
63 // STATE FUNCTIONS
64 static void staticConfigure()
65 {
66 //configure_orthogonal<OrObstaclePerception, CbLidarSensor>();
67 }
68
70};
71
72// FORWARD DECLARATION FOR THE SUPERSTATE
79
80} // namespace SS1
81} // namespace sm_dance_bot_warehouse_3
mpl::list< Transition< EvLoopEnd< StiRadialLoopStart >, StNavigateToWaypointsX, ENDLOOP > > reactions