Class ChargingDock
Defined in File charging_dock.hpp
Inheritance Relationships
Derived Type
public opennav_docking_core::NonChargingDock
(Class NonChargingDock)
Class Documentation
Abstract interface for a charging dock for the docking framework.
Subclassed by opennav_docking_core::NonChargingDock
Public Types
Public Functions
Virtual destructor.
- Parameters:
parent – pointer to user’s node
name – The name of this planner
tf – A pointer to a TF buffer
Method to cleanup resources used on shutdown.
Method to active Behavior and any threads involved in execution.
Method to deactive Behavior and any threads involved in execution.
Method to obtain the dock’s staging pose. This method should likely be using TF and the dock’s pose information to find the staging pose from a static or parameterized staging pose relative to the docking pose.
- Parameters:
pose – Dock pose
frame – Dock’s frame of pose
- Returns:
PoseStamped of staging pose in the specified frame
Method to obtain the refined pose of the dock, usually based on sensors.
- Parameters:
pose – The initial estimate of the dock pose.
frame – The frame of the initial estimate.
Have we made contact with dock? This can be implemented in a variety of ways: by establishing communications with the dock, by monitoring the the drive motor efforts, etc.
NOTE: this function is expected to return QUICKLY. Blocking here will block the docking controller loop.
Are we charging? If a charge dock requires any sort of negotiation to begin charging, that should happen inside this function as this function will be called repeatedly after the docking loop to check if successful.
NOTE: this function is expected to return QUICKLY. Blocking here will block the docking controller loop.
Undocking while current is still flowing can damage a charge dock so some charge docks provide the ability to disable charging before the robot physically disconnects. The undocking action will not command the robot to move until this returns true.
NOTE: this function is expected to return QUICKLY. Blocking here will block the docking controller loop.
Similar to isCharging() but called when undocking.
Gets if this is a charging-typed dock.
Protected Attributes