Navigation Task and Information Wrapper Interface

An SDK for secondary developers that communicates with the Task Manager directly via native ROS2 topics and aimdk.protocol.* protobuf, invoking the robot’s long-running task capabilities (guided tour, leading) and their prerequisite configurations (tour plans, navigation points, maps).

  • interface/aimdk_msgs/ —— ROS msg package; the schema used when subscribing to /task_master/state is identical to the robot side

  • interface/task_master_interface/ —— protobuf definitions that produce C++ and Python bindings at build time

  • example/ —— the ROS2 package task_demo, containing C++ / Python reference implementations for long-running tasks

  • The code lives in extra/task_manager_dev/ (submodule)

Note

Applicable scenario: you want to invoke the task manager’s long-running task capabilities (fixed-route guided tour TaskFixLineIntro, leading TaskPilot) and their prerequisite configurations (tour plan / navigation point / map fetch and edit) from a secondary-development application, implemented in C++ or Python. This SDK has zero external dependencies: all three ROS packages live in this repository and require only a standard ROS 2 Humble setup, with no aimrte tarball needed.

During a long-running task, observe the task engine state transitions via the /task_master/state topic; its main_state enum and field semantics are described in Navigation - Get task engine state.

Capabilities

Two long-running tasks (issued at runtime):

  • Fixed-route guided tour TaskFixLineIntro —— stop at preset points along a route in turn, play narration, dwell, and execute on-arrival actions

  • Leading task TaskPilot —— guide the robot to a specified navigation point

Three configuration types (prerequisite setup before starting a long-running task):

  • Tour plan configuration TaskUpdateFixLineIntroConfig

  • Navigation point configuration TaskUpdatePilotTaskParams

  • Map fetch / edit TaskGetMap + TaskMapEdit

No external examples for mapping / relocalization are provided.

Quick start

Build

cd extra/task_manager_dev
source /opt/ros/humble/setup.bash
colcon build --packages-select aimdk_msgs task_master_interface task_demo

Runtime environment (run once per new terminal)

source /opt/ros/humble/setup.bash
source install/setup.bash
export ROS_DOMAIN_ID=123      # use a free domain avoiding stale nodes
export ROS_LOCALHOST_ONLY=1
ros2 daemon stop 2>/dev/null

Both terminals must use the same ROS_DOMAIN_ID, otherwise DDS will not see each other.

Testing without a real robot

mock_task_manager_demo is a bundled mock server that responds to /task_master/request, broadcasts /task_master/state at 10 Hz and /task_master/robot_info at 1 Hz, and drives the simplest state transitions for long-running tasks, for two-end testing without a real robot.

# Terminal 1: mock server (keep it running)
ros2 run task_demo mock_task_manager_demo

# Terminal 2: business demo (or any hpp / py example, one at a time)
ros2 run task_demo mock_task_manager_dev_business_demo         # cpp
ros2 run task_demo mock_task_manager_dev_business_demo.py      # py

Further reading

For the detailed system architecture (protocol layering, message payloads, request-response pairing, state observation model) and per-interface references, see README.md and the docs/ directory under extra/task_manager_dev/ (1 system architecture + 5 interface references, one per interface).