SMACC2
Loading...
Searching...
No Matches
smacc2_client_library
cl_nav2z
include
cl_nav2z
client_behaviors
cb_abort_navigation.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
#pragma once
21
22
#include <tf2_ros/buffer.h>
23
24
#include <
cl_nav2z/components/nav2_action_interface/cp_nav2_action_interface.hpp
>
25
#include "
cb_nav2z_client_behavior_base.hpp
"
26
#include "
cb_navigate_global_position.hpp
"
27
#include "tf2_geometry_msgs/tf2_geometry_msgs.hpp"
28
29
namespace
cl_nav2z
30
{
31
class
CbAbortNavigation
:
public
smacc2::SmaccAsyncClientBehavior
32
{
33
public
:
34
CbAbortNavigation
();
35
36
template
<
typename
TOrthogonal,
typename
TSourceObject>
37
void
onStateOrthogonalAllocation
()
38
{
39
this->
requiresComponent
(
nav2ActionInterface_
, ComponentRequirement::HARD);
40
smacc2::SmaccAsyncClientBehavior::onStateOrthogonalAllocation<TOrthogonal, TSourceObject>
();
41
}
42
43
void
onEntry
()
override
;
44
void
onExit
()
override
;
45
46
private
:
47
components::CpNav2ActionInterface
*
nav2ActionInterface_
=
nullptr
;
48
};
49
}
// namespace cl_nav2z
cb_nav2z_client_behavior_base.hpp
cb_navigate_global_position.hpp
cl_nav2z::CbAbortNavigation
Definition
cb_abort_navigation.hpp:32
cl_nav2z::CbAbortNavigation::onExit
void onExit() override
Definition
cb_abort_navigation.cpp:42
cl_nav2z::CbAbortNavigation::onEntry
void onEntry() override
Definition
cb_abort_navigation.cpp:34
cl_nav2z::CbAbortNavigation::CbAbortNavigation
CbAbortNavigation()
Definition
cb_abort_navigation.cpp:32
cl_nav2z::CbAbortNavigation::nav2ActionInterface_
components::CpNav2ActionInterface * nav2ActionInterface_
Definition
cb_abort_navigation.hpp:47
cl_nav2z::CbAbortNavigation::onStateOrthogonalAllocation
void onStateOrthogonalAllocation()
Definition
cb_abort_navigation.hpp:37
cl_nav2z::components::CpNav2ActionInterface
Definition
cp_nav2_action_interface.hpp:33
smacc2::ISmaccClientBehavior::requiresComponent
void requiresComponent(SmaccComponentType *&storage, ComponentRequirement requirementType=ComponentRequirement::SOFT)
Definition
smacc_client_behavior_impl.hpp:73
smacc2::SmaccAsyncClientBehavior
Definition
smacc_asynchronous_client_behavior.hpp:56
smacc2::SmaccAsyncClientBehavior::onStateOrthogonalAllocation
void onStateOrthogonalAllocation()
Definition
smacc_asynchronous_client_behavior_impl.hpp:29
cp_nav2_action_interface.hpp
cl_nav2z
Definition
cl_nav2z.hpp:23
Generated by
1.12.0