SMACC2
smacc2_sm_reference_library
sm_test_moveit_ur5_sim
include
sm_test_moveit_ur5_sim
sm_test_moveit_ur5_sim.hpp
Go to the documentation of this file.
1
// Copyright 2021 MyName/MyCompany Inc.
2
// Copyright 2021 RobosoftAI Inc. (template)
3
//
4
// Licensed under the Apache License, Version 2.0 (the "License");
5
// you may not use this file except in compliance with the License.
6
// You may obtain a copy of the License at
7
//
8
// http://www.apache.org/licenses/LICENSE-2.0
9
//
10
// Unless required by applicable law or agreed to in writing, software
11
// distributed under the License is distributed on an "AS IS" BASIS,
12
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
// See the License for the specific language governing permissions and
14
// limitations under the License.
15
16
/*****************************************************************************************************************
17
*
18
* Authors: Pablo Inigo Blasco, Brett Aldrich
19
*
20
*****************************************************************************************************************/
21
22
#pragma once
23
24
#include <memory>
25
26
#include "rclcpp/rclcpp.hpp"
27
#include "
smacc2/smacc.hpp
"
28
29
// ORTHOGONALS
30
#include "
sm_test_moveit_ur5_sim/orthogonals/or_arm.hpp
"
31
32
#include <
move_group_interface_client/cl_movegroup.hpp
>
33
#include <
move_group_interface_client/client_behaviors.hpp
>
34
35
#include <
smacc2/client_behaviors/cb_wait_topic_message.hpp
>
36
37
38
namespace
sm_test_moveit_ur5_sim
39
{
40
41
using namespace
cl_move_group_interface
;
42
43
//STATES
44
struct
StAcquireSensors;
45
struct
StMoveJoints;
46
struct
StMoveEndEffector;
47
struct
StMoveCartesianRelative;
48
struct
StMoveCartesianRelative2;
49
struct
StCircularPivotMotion;
50
struct
StAttachObject;
51
struct
StDetatchObject;
52
struct
StEndEffectorRotate;
53
struct
StExecuteLastTrajectory;
54
struct
StMoveKnownState;
55
struct
StPouringMotion;
56
struct
StUndoLastTrajectory;
57
58
//--------------------------------------------------------------------
59
//STATE_MACHINE
60
struct
SmTestMoveitUr5Sim
:
public
smacc2::SmaccStateMachineBase
<SmTestMoveitUr5Sim, StAcquireSensors>
61
{
62
using
SmaccStateMachineBase::SmaccStateMachineBase
;
63
64
void
onInitialize
()
override
{ this->createOrthogonal<OrArm>(); }
65
};
66
67
}
// namespace sm_test_moveit_ur5_sim
68
69
// STATES
70
#include "states/st_acquire_sensors.hpp"
71
#include "
states/st_attach_object.hpp
"
72
#include "
states/st_move_end_effector.hpp
"
73
#include "
states/st_circular_pivot_motion.hpp
"
74
#include "
states/st_move_joints.hpp
"
75
#include "
states/st_detach_object.hpp
"
76
#include "
states/st_move_known_state.hpp
"
77
#include "
states/st_end_effector_rotate.hpp
"
78
#include "
states/st_move_last_trajectory_initial_state.hpp
"
79
#include "
states/st_execute_last_trajectory.hpp
"
80
#include "
states/st_move_named_target.hpp
"
81
#include "
states/st_move_cartesian_relative2.hpp
"
82
#include "
states/st_pouring_motion.hpp
"
83
#include "
states/st_move_cartesian_relative.hpp
"
84
#include "
states/st_undo_last_trajectory.hpp
"
cb_wait_topic_message.hpp
cl_movegroup.hpp
cl_move_group_interface
Definition:
cl_movegroup.hpp:35
sm_test_moveit_ur5_sim
Definition:
or_arm.hpp:27
or_arm.hpp
client_behaviors.hpp
smacc.hpp
st_attach_object.hpp
st_circular_pivot_motion.hpp
st_detach_object.hpp
st_end_effector_rotate.hpp
st_execute_last_trajectory.hpp
st_move_cartesian_relative2.hpp
st_move_cartesian_relative.hpp
st_move_end_effector.hpp
st_move_joints.hpp
st_move_known_state.hpp
st_move_last_trajectory_initial_state.hpp
st_move_named_target.hpp
st_pouring_motion.hpp
st_undo_last_trajectory.hpp
sm_test_moveit_ur5_sim::SmTestMoveitUr5Sim
Definition:
sm_test_moveit_ur5_sim.hpp:61
sm_test_moveit_ur5_sim::SmTestMoveitUr5Sim::onInitialize
void onInitialize() override
this function should be implemented by the user to create the orthogonals
Definition:
sm_test_moveit_ur5_sim.hpp:64
smacc2::SmaccStateMachineBase
State Machine.
Definition:
smacc_state_machine_base.hpp:34
smacc2::SmaccStateMachineBase::SmaccStateMachineBase
SmaccStateMachineBase(my_context ctx, SignalDetector *signalDetector)
Definition:
smacc_state_machine_base.hpp:36
Generated by
1.9.4