Nav2 Navigation Stack - lyrical  lyrical
ROS 2 Navigation Stack
follow_object_cancel_node.hpp
1 // Copyright (c) 2024 Open Navigation LLC
2 // Copyright (c) 2024 Alberto J. Tudela Roldán
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 
16 #ifndef NAV2_BEHAVIOR_TREE__PLUGINS__ACTION__FOLLOW_OBJECT_CANCEL_NODE_HPP_
17 #define NAV2_BEHAVIOR_TREE__PLUGINS__ACTION__FOLLOW_OBJECT_CANCEL_NODE_HPP_
18 
19 #include <memory>
20 #include <string>
21 
22 #include "nav2_behavior_tree/bt_cancel_action_node.hpp"
23 #include "nav2_ros_common/lifecycle_node.hpp"
24 #include "nav2_msgs/action/follow_object.hpp"
25 
26 namespace nav2_behavior_tree
27 {
28 
38  : public nav2_behavior_tree::BtCancelActionNode<nav2_msgs::action::FollowObject>
39 {
40 public:
48  const std::string & xml_tag_name,
49  const std::string & action_name,
50  const BT::NodeConfiguration & conf);
51 
56  static BT::PortsList providedPorts()
57  {
58  return providedBasicPorts(
59  {
60  });
61  }
62 };
63 
64 } // namespace nav2_behavior_tree
65 
66 #endif // NAV2_BEHAVIOR_TREE__PLUGINS__ACTION__FOLLOW_OBJECT_CANCEL_NODE_HPP_
Abstract class representing an action for cancelling BT node.
static BT::PortsList providedBasicPorts(BT::PortsList addition)
Any subclass of BtCancelActionNode that accepts parameters must provide a providedPorts method and ca...
A nav2_behavior_tree::BtActionNode class that wraps nav2_msgs::action::FollowObject.
static BT::PortsList providedPorts()
Creates list of BT ports.
FollowObjectCancel(const std::string &xml_tag_name, const std::string &action_name, const BT::NodeConfiguration &conf)
A constructor for nav2_behavior_tree::FollowObject.