SMACC2
Loading...
Searching...
No Matches
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
16#include <pluginlib/class_list_macros.hpp>
17#include <string>
18
19namespace cl_nav2z
20{
21// Define "Base" as a SmaccActionClientBase with NavigateToPose as action argument, tie to WrappedResult.
24
25// Define Client class constructor.
26ClNav2Z::ClNav2Z(std::string moveBaseName) : Base(moveBaseName)
27{
28 // RCLCPP_INFO(getLogger(),"Smacc Move Base Action Client");
29}
30
31// Define Client class destructor.
33
34} // namespace cl_nav2z
35
36// Export the ClNav2Z class as type smacc2::ISmaccClient as an implementation of the ISmaccClient interface.
37PLUGINLIB_EXPORT_CLASS(cl_nav2z::ClNav2Z, smacc2::ISmaccClient)
ClNav2Z(std::string navigateToPoseAction="/navigate_to_pose")
Base::WrappedResult WrappedResult
smacc2::client_bases::SmaccActionClientBase< nav2_msgs::action::NavigateToPose > Base