15 #ifndef OPENNAV_DOCKING_CORE__NON_CHARGING_DOCK_HPP_
16 #define OPENNAV_DOCKING_CORE__NON_CHARGING_DOCK_HPP_
21 #include "opennav_docking_core/charging_dock.hpp"
24 namespace opennav_docking_core
34 using Ptr = std::shared_ptr<NonChargingDock>;
47 const rclcpp_lifecycle::LifecycleNode::WeakPtr & parent,
48 const std::string & name, std::shared_ptr<tf2_ros::Buffer> tf) = 0;
74 const geometry_msgs::msg::Pose & pose,
const std::string & frame) = 0;
81 virtual bool getRefinedPose(geometry_msgs::msg::PoseStamped & pose, std::string
id) = 0;
103 throw std::runtime_error(
"This dock is not a charging dock!");
117 throw std::runtime_error(
"This dock is not a charging dock!");
125 throw std::runtime_error(
"This dock is not a charging dock!");
Abstract interface for a charging dock for the docking framework.
Abstract interface for a non-charging dock for the docking framework.
virtual ~NonChargingDock()
Virtual destructor.
virtual void deactivate()=0
Method to deactivate Behavior and any threads involved in execution.
bool disableCharging() final
Undocking while current is still flowing can damage a charge dock so some charge docks provide the ab...
bool isCharger() final
Gets if this is a charging-typed dock.
virtual bool getRefinedPose(geometry_msgs::msg::PoseStamped &pose, std::string id)=0
Method to obtain the refined pose of the dock, usually based on sensors.
virtual geometry_msgs::msg::PoseStamped getStagingPose(const geometry_msgs::msg::Pose &pose, const std::string &frame)=0
Method to obtain the dock's staging pose. This method should likely be using TF and the dock's pose i...
virtual void activate()=0
Method to active Behavior and any threads involved in execution.
virtual bool isDocked()=0
Have we made contact with dock? This can be implemented in a variety of ways: by establishing communi...
virtual void configure(const rclcpp_lifecycle::LifecycleNode::WeakPtr &parent, const std::string &name, std::shared_ptr< tf2_ros::Buffer > tf)=0
bool hasStoppedCharging() final
Similar to isCharging() but called when undocking.
bool isCharging() final
Are we charging? If a charge dock requires any sort of negotiation to begin charging,...
virtual void cleanup()=0
Method to cleanup resources used on shutdown.