SMACC2
Loading...
Searching...
No Matches
smacc2_client_library
nav2z_client
nav2z_client
include
nav2z_client
nav2z_client.hpp
Go to the documentation of this file.
1
// Copyright 2024 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
#pragma once
16
#include <nav2_msgs/action/navigate_to_pose.hpp>
17
#include <
smacc2/client_bases/smacc_action_client_base.hpp
>
18
#include <
smacc2/smacc.hpp
>
19
20
namespace
cl_nav2z
21
{
22
// Declare Client class, inherit from SmaccActionClientBase template with default action argument.
23
class
ClNav2Z
24
:
public
smacc2::client_bases::SmaccActionClientBase
<nav2_msgs::action::NavigateToPose>
25
{
26
public
:
27
// Bring the SmaccActionClientBase types into the current scope.
28
using
smacc2::client_bases::SmaccActionClientBase
<nav2_msgs::action::NavigateToPose>
::GoalHandle
;
29
using
smacc2::client_bases::SmaccActionClientBase
<
30
nav2_msgs::action::NavigateToPose>
::ResultCallback
;
31
32
// Define "SmaccNavigateResultSignal" as a SmaccSignal that points to the WrappedResult type of SmaccActionClientBase.
33
typedef
smacc2::SmaccSignal
<void(
const
WrappedResult
&)>
SmaccNavigateResultSignal
;
34
35
// Declare Client class constructor with string set to the right ROS action.
36
ClNav2Z
(std::string navigateToPoseAction =
"/navigate_to_pose"
);
37
38
// Declare Client class destructor.
39
virtual
~ClNav2Z
();
40
};
41
42
}
// namespace cl_nav2z
cl_nav2z::ClNav2Z
Definition
nav2z_client.hpp:25
cl_nav2z::ClNav2Z::SmaccNavigateResultSignal
smacc2::SmaccSignal< void(const WrappedResult &)> SmaccNavigateResultSignal
Definition
nav2z_client.hpp:33
cl_nav2z::ClNav2Z::~ClNav2Z
virtual ~ClNav2Z()
Definition
nav2z_client.cpp:32
smacc2::SmaccSignal
Definition
smacc_signal.hpp:43
smacc2::client_bases::SmaccActionClientBase
Definition
smacc_action_client_base.hpp:38
smacc2::client_bases::SmaccActionClientBase< nav2_msgs::action::NavigateToPose >::GoalHandle
rclcpp_action::ClientGoalHandle< nav2_msgs::action::NavigateToPose > GoalHandle
Definition
smacc_action_client_base.hpp:51
smacc2::client_bases::SmaccActionClientBase< nav2_msgs::action::NavigateToPose >::WrappedResult
GoalHandle::WrappedResult WrappedResult
Definition
smacc_action_client_base.hpp:52
smacc2::client_bases::SmaccActionClientBase< nav2_msgs::action::NavigateToPose >::ResultCallback
typename GoalHandle::ResultCallback ResultCallback
Definition
smacc_action_client_base.hpp:58
cl_nav2z
Definition
backward_global_planner.hpp:28
smacc.hpp
smacc_action_client_base.hpp
Generated by
1.9.8