SMACC2
smacc2_sm_reference_library
sm_dance_bot_warehouse_2
include
sm_dance_bot_warehouse_2
superstates
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
23
namespace
sm_dance_bot_warehouse_2
24
{
25
namespace
SS1
26
{
27
namespace
sm_dance_bot_warehouse_2
28
{
29
namespace
radial_motion_states
30
{
31
//FORWARD DECLARATION OF INNER STATES
32
class
StiRadialRotate;
33
class
StiRadialReturn;
34
class
StiRadialEndPoint;
35
class
StiRadialLoopStart;
36
37
}
// namespace radial_motion_states
38
}
// namespace sm_dance_bot_warehouse_2
39
using namespace
sm_dance_bot_warehouse_2::radial_motion_states
;
40
41
// STATE DECLARATION
42
struct
SsRadialPattern1
43
:
smacc2::SmaccState
<SsRadialPattern1, MsDanceBotRunMode, StiRadialLoopStart>
44
{
45
public
:
46
using
SmaccState::SmaccState;
47
48
// TRANSITION TABLE
49
typedef
mpl::list<
50
51
// Transition<EvLoopEnd<StiRadialLoopStart>, StRotateDegrees1, ENDLOOP>
52
Transition<EvLoopEnd<StiRadialLoopStart>,
StNavigateToWaypointsX
,
ENDLOOP
>
53
54
>
reactions
;
55
56
static
constexpr
int
total_iterations
() {
return
35; }
57
static
constexpr
float
ray_angle_increment_degree
() {
return
360.0 /
total_iterations
(); }
58
static
constexpr
float
ray_length_meters
() {
return
4; }
59
60
int
iteration_count
= 0;
61
62
// STATE FUNCTIONS
63
static
void
staticConfigure
()
64
{
65
//configure_orthogonal<OrObstaclePerception, CbLidarSensor>();
66
}
67
68
void
runtimeConfigure
() {}
69
};
70
71
// FORWARD DECLARATION FOR THE SUPERSTATE
72
using
SS
=
SsRadialPattern1
;
73
#include <
sm_dance_bot_warehouse_2/states/radial_motion_states/sti_radial_end_point.hpp
>
74
#include <
sm_dance_bot_warehouse_2/states/radial_motion_states/sti_radial_loop_start.hpp
>
75
#include <
sm_dance_bot_warehouse_2/states/radial_motion_states/sti_radial_return.hpp
>
76
#include <
sm_dance_bot_warehouse_2/states/radial_motion_states/sti_radial_rotate.hpp
>
77
}
// namespace SS1
78
}
// namespace sm_dance_bot_warehouse_2
smacc2::SmaccState
Definition:
smacc_state_base.hpp:41
sm_dance_bot_warehouse_2::radial_motion_states
Definition:
sti_radial_end_point.hpp:24
sm_dance_bot_warehouse_2
Definition:
cl_led.hpp:27
smacc.hpp
sm_dance_bot_warehouse_2::SS1::SsRadialPattern1
Definition:
ss_radial_pattern_1.hpp:44
sm_dance_bot_warehouse_2::SS1::SsRadialPattern1::staticConfigure
static void staticConfigure()
Definition:
ss_radial_pattern_1.hpp:63
sm_dance_bot_warehouse_2::SS1::SsRadialPattern1::total_iterations
static constexpr int total_iterations()
Definition:
ss_radial_pattern_1.hpp:56
sm_dance_bot_warehouse_2::SS1::SsRadialPattern1::reactions
mpl::list< Transition< EvLoopEnd< StiRadialLoopStart >, StNavigateToWaypointsX, ENDLOOP > > reactions
Definition:
ss_radial_pattern_1.hpp:54
sm_dance_bot_warehouse_2::SS1::SsRadialPattern1::runtimeConfigure
void runtimeConfigure()
Definition:
ss_radial_pattern_1.hpp:68
sm_dance_bot_warehouse_2::SS1::SsRadialPattern1::iteration_count
int iteration_count
Definition:
ss_radial_pattern_1.hpp:60
sm_dance_bot_warehouse_2::SS1::SsRadialPattern1::ray_length_meters
static constexpr float ray_length_meters()
Definition:
ss_radial_pattern_1.hpp:58
sm_dance_bot_warehouse_2::SS1::SsRadialPattern1::ray_angle_increment_degree
static constexpr float ray_angle_increment_degree()
Definition:
ss_radial_pattern_1.hpp:57
sm_dance_bot_warehouse_2::StNavigateToWaypointsX
Definition:
st_navigate_to_waypoints_x.hpp:29
smacc2::default_transition_tags::ENDLOOP
Definition:
smacc_types.hpp:93
sti_radial_end_point.hpp
sti_radial_loop_start.hpp
sti_radial_return.hpp
sti_radial_rotate.hpp
Generated by
1.9.4