βοΈ Docking API#
The Docking API provides access to docking functionalities, enabling users to interact with Docking Server and Docking Manager through ROS 2 actions and services.
π Docking Server ROS 2 API#
The Docking Server supports docking, undocking, and other docking-related services through the interfaces below:
Actions |
Services |
---|---|
Attention
For detailed documentation on the Nav2 Docking Server API, including action definitions and usage examples, please visit the official Nav2 Docking Server API reference.
π οΈ Docking Manager ROS 2 API#
The Docking Manager supports learning, navigating, and managing dock stations through the following actions and services:
Actions |
Services |
---|---|
Actions#
π /learn_dock#
Detects and learns dock station. The dockβs location is stored in the database for future use.
Goal:
Parameter |
Description |
Type |
---|---|---|
|
Unique identifier for the dock station (i.e: |
|
|
ID of the target to detect (i.e: |
|
|
Type of dock station (i.e: |
|
|
Indicates whether to validate the dock by performing the docking maneuver. |
|
|
Plugin used for docking operations ( |
|
Result:
Parameter |
Description |
Type |
---|---|---|
|
Indicates if the dock was successfully learned. |
|
|
The pose of the detected dock in the reference frame. |
|
|
Accuracy of the detected dock pose. |
|
π /go_and_dock#
Guides the robot to a previously learned dock station and performs the docking maneuver.
Goal:
Parameter |
Description |
Type |
---|---|---|
|
Full identifier of the dock to navigate to (i.e: |
|
|
Plugin used for docking operations ( |
|
Result:
Parameter |
Description |
Type |
---|---|---|
|
Indicates if the docking maneuver was successful. |
|
Services#
ποΈ /docking_manager/get_docks#
Retrieves a list of all known dock stations stored in the database.
Request:
Parameter |
Description |
Type |
---|---|---|
(none) |
The service does not require any parameters. |
Response:
Parameter |
Description |
Type |
---|---|---|
|
A list of dock stations, each containing |
|
RViz GUI#
The Docking Manager integrates seamlessly with the PAL Navigation 2 Panel
in rviz.
Through this interface, users can:
Learn Dock: Click
Learn Dock
, select a target, and define parameters interactively.Go and Dock: Choose a dock from the list and trigger the docking maneuver.
Undock: Perform undocking operations with ease.
Clear: Remove selected setting.