SMACC2
Loading...
Searching...
No Matches
smacc2_client_library
nav2z_client
nav2z_client
src
nav2z_client
nav2z_client.cpp
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
#include <
nav2z_client/nav2z_client.hpp
>
16
#include <pluginlib/class_list_macros.hpp>
17
#include <string>
18
19
namespace
cl_nav2z
20
{
21
// Define "Base" as a SmaccActionClientBase with NavigateToPose as action argument, tie to WrappedResult.
22
typedef
smacc2::client_bases::SmaccActionClientBase<nav2_msgs::action::NavigateToPose>
Base
;
23
typedef
Base::WrappedResult
WrappedResult
;
24
25
// Define Client class constructor.
26
ClNav2Z::ClNav2Z
(std::string moveBaseName) :
Base
(moveBaseName)
27
{
28
// RCLCPP_INFO(getLogger(),"Smacc Move Base Action Client");
29
}
30
31
// Define Client class destructor.
32
ClNav2Z::~ClNav2Z
() {}
33
34
}
// namespace cl_nav2z
35
36
// Export the ClNav2Z class as type smacc2::ISmaccClient as an implementation of the ISmaccClient interface.
37
PLUGINLIB_EXPORT_CLASS(
cl_nav2z::ClNav2Z
,
smacc2::ISmaccClient
)
cl_nav2z::ClNav2Z
Definition
nav2z_client.hpp:25
cl_nav2z::ClNav2Z::ClNav2Z
ClNav2Z(std::string navigateToPoseAction="/navigate_to_pose")
Definition
nav2z_client.cpp:26
cl_nav2z::ClNav2Z::~ClNav2Z
virtual ~ClNav2Z()
Definition
nav2z_client.cpp:32
smacc2::ISmaccClient
Definition
smacc_client.hpp:45
smacc2::client_bases::SmaccActionClientBase< nav2_msgs::action::NavigateToPose >
smacc2::client_bases::SmaccActionClientBase< nav2_msgs::action::NavigateToPose >::WrappedResult
GoalHandle::WrappedResult WrappedResult
Definition
smacc_action_client_base.hpp:52
cl_nav2z
Definition
backward_global_planner.hpp:28
cl_nav2z::WrappedResult
Base::WrappedResult WrappedResult
Definition
nav2z_client.cpp:23
cl_nav2z::Base
smacc2::client_bases::SmaccActionClientBase< nav2_msgs::action::NavigateToPose > Base
Definition
nav2z_client.cpp:22
nav2z_client.hpp
smacc2::default_events::EvTopicMessage
Definition
smacc_default_events.hpp:155
Generated by
1.9.8