diff --git a/husarion_ugv_manager/CONFIGURATION.md b/husarion_ugv_manager/CONFIGURATION.md index 0d1e78b6..adc2337a 100644 --- a/husarion_ugv_manager/CONFIGURATION.md +++ b/husarion_ugv_manager/CONFIGURATION.md @@ -93,14 +93,6 @@ For a BehaviorTree project to work correctly, it must contain a tree with correc ### Trees -#### Docking - -A tree responsible for waiting for the joystick command and trigger `Docking`/`Undocking` action. - -

- Docking Behavior Tree -

- #### Lights A tree responsible for scheduling animations displayed on the Bumper Lights based on the Husarion Panther robot's system state. @@ -214,7 +206,6 @@ To use your customized project, you can modify the `bt_project_file` ROS paramet Groot2 also provides a real-time visualization tool that allows you to see and debug actively running trees. To use this tool with trees launched with the `husarion_ugv_manager` package, you need to specify the port associated with the tree you want to visualize. The ports for each tree are listed below: -- Docking tree: `10.15.20.2:4444` - Lights tree: `10.15.20.2:5555` - Safety tree: `10.15.20.2:6666` - Shutdown tree: `10.15.20.2:7777` diff --git a/husarion_ugv_manager/include/husarion_ugv_manager/docking_manager_node.hpp b/husarion_ugv_manager/include/husarion_ugv_manager/docking_manager_node.hpp deleted file mode 100644 index 7c311b75..00000000 --- a/husarion_ugv_manager/include/husarion_ugv_manager/docking_manager_node.hpp +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2024 Husarion sp. z o.o. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef PANTHER_MANAGER_DOCKING_MANAGER_NODE_HPP_ -#define PANTHER_MANAGER_DOCKING_MANAGER_NODE_HPP_ - -#include -#include - -#include -#include - -#include - -#include "panther_manager/behavior_tree_manager.hpp" -#include "panther_utils/moving_average.hpp" - -namespace panther_manager -{ - -using BoolMsg = std_msgs::msg::Bool; - -/** - * @brief This class is responsible for creating a BehaviorTree responsible for docking management, - * spinning it, and updating blackboard entries based on subscribed topics. - */ -class DockingManagerNode : public rclcpp::Node -{ -public: - DockingManagerNode( - const std::string & node_name, const rclcpp::NodeOptions & options = rclcpp::NodeOptions()); - ~DockingManagerNode() = default; - - /** - * @brief Initializes the docking manager, setting up parameters and behavior tree. - * @throws std::runtime_error if initialization fails - */ - void Initialize(); - -protected: - void DeclareParameters(); - void RegisterBehaviorTree(); - - std::unique_ptr docking_tree_manager_; - -private: - void TimerCB(); - - rclcpp::TimerBase::SharedPtr docking_tree_timer_; - - BT::BehaviorTreeFactory factory_; -}; - -} // namespace panther_manager - -#endif // PANTHER_MANAGER_DOCKING_MANAGER_NODE_HPP_