SMACC2
Loading...
Searching...
No Matches
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>
18#include <smacc2/smacc.hpp>
19
20namespace cl_nav2z
21{
22// Declare Client class, inherit from SmaccActionClientBase template with default action argument.
24: public smacc2::client_bases::SmaccActionClientBase<nav2_msgs::action::NavigateToPose>
25{
26public:
27 // Bring the SmaccActionClientBase types into the current scope.
28 using smacc2::client_bases::SmaccActionClientBase<nav2_msgs::action::NavigateToPose>::GoalHandle;
30 nav2_msgs::action::NavigateToPose>::ResultCallback;
31
32 // Define "SmaccNavigateResultSignal" as a SmaccSignal that points to the WrappedResult type of SmaccActionClientBase.
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
smacc2::SmaccSignal< void(const WrappedResult &)> SmaccNavigateResultSignal
rclcpp_action::ClientGoalHandle< nav2_msgs::action::NavigateToPose > GoalHandle