SMACC2
Loading...
Searching...
No Matches
smacc2_client_library
cl_nav2z
cl_nav2z
include
cl_nav2z
client_behaviors
cb_wait_pose.hpp
Go to the documentation of this file.
1
// Copyright 2025 Robosoft 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 <
cl_nav2z/cl_nav2z.hpp
>
23
#include <
smacc2/smacc_asynchronous_client_behavior.hpp
>
24
25
namespace
cl_nav2z
26
{
27
// Waits a new pose using the Pose Component. Usually used for the startup synchronization.
28
// the specific pose to wait is configured in that component
29
class
CbWaitPose
:
public
smacc2::SmaccAsyncClientBehavior
30
{
31
public
:
32
// waits a new pose update of the Pose Component
33
CbWaitPose
();
34
35
~CbWaitPose
()
override
;
36
37
template
<
typename
TOrthogonal,
typename
TSourceObject>
38
void
onStateOrthogonalAllocation
()
39
{
40
this->
requiresClient
(
nav2zClient_
);
41
smacc2::SmaccAsyncClientBehavior::onStateOrthogonalAllocation<TOrthogonal, TSourceObject>
();
42
}
43
44
void
onEntry
()
override
;
45
46
protected
:
47
cl_nav2z::ClNav2Z
*
nav2zClient_
=
nullptr
;
48
};
49
}
// namespace cl_nav2z
cl_nav2z.hpp
cl_nav2z::CbWaitPose
Definition
cb_wait_pose.hpp:30
cl_nav2z::CbWaitPose::CbWaitPose
CbWaitPose()
Definition
cb_wait_pose.cpp:31
cl_nav2z::CbWaitPose::~CbWaitPose
~CbWaitPose() override
Definition
cb_wait_pose.cpp:33
cl_nav2z::CbWaitPose::nav2zClient_
cl_nav2z::ClNav2Z * nav2zClient_
Definition
cb_wait_pose.hpp:47
cl_nav2z::CbWaitPose::onStateOrthogonalAllocation
void onStateOrthogonalAllocation()
Definition
cb_wait_pose.hpp:38
cl_nav2z::CbWaitPose::onEntry
void onEntry() override
Definition
cb_wait_pose.cpp:35
cl_nav2z::ClNav2Z
Definition
cl_nav2z.hpp:29
smacc2::ISmaccClientBehavior::requiresClient
void requiresClient(SmaccClientType *&storage)
Definition
smacc_client_behavior_impl.hpp:74
smacc2::SmaccAsyncClientBehavior
Definition
smacc_asynchronous_client_behavior.hpp:57
smacc2::SmaccAsyncClientBehavior::onStateOrthogonalAllocation
void onStateOrthogonalAllocation()
Definition
smacc_asynchronous_client_behavior_impl.hpp:29
cl_nav2z
Definition
cl_nav2z.hpp:24
smacc_asynchronous_client_behavior.hpp
Generated by
1.12.0