Shared ROS 2 utilities for WoLF controller and estimation modules. The workspace uses ROS 2 Jazzy and ament/colcon. The package supplies trajectory helpers, SRDF parsing, TF/pose helpers, parameter access, and reusable bounded command/lifetime primitives.
Mux gives each input an independently expiring lease. Priority preemption does
not pause the lower-priority source's timer; a fresh zero command can own the
stop lease. BoundedCommandQueue provides fixed-capacity transport from executor
callbacks to a control-thread consumer that uses try_lock. CallbackGate
drains callbacks during owner destruction without adding a mutex to the control
loop. Their regression test exercises stale-source replay, stop preemption,
lifecycle reset, bounded queue overflow, FIFO concurrency and callback teardown.
For source development or image maintenance, run these checks inside a prepared builder/development container:
colcon build --packages-up-to wolf_controller_utils --cmake-args -DBUILD_TESTING=ON
source install/setup.bash
colcon test --packages-select wolf_controller_utilsThe ROS 2 parameter helpers support a scoped local controller node so task
construction can read parameters before its executor starts. Ownership requires
an exact match to the normalized controller name (/<robot>/wolf_controller, or
/wolf_controller for an empty robot namespace). Similar namespace prefixes and
the global controller cannot supply another robot's parameters.
For a known local owner, missing, unset, wrong-type or nonfinite double values return the caller's default immediately; missing, unset or wrong-type strings do the same. An absent, expired or mismatched local owner retains native remote parameter lookup. The lower-level bool getter still reports whether a typed local value was read, leaving its output unchanged on failure. Registered native tests cover construction without an executor, exact namespace ownership, and real ROS parameter service responses, including an expired local owner.
The installed replace_yaml_placeholders.py resolver creates fresh output
directories and writes completed YAML through a temporary file in the same
directory. Atomic replacement keeps the previous valid output available to
simulator readers during resolution; a write or replacement failure leaves that
output intact and removes the temporary file. Existing file permissions are
preserved, and new files use normal open/umask permissions. Regression tests
cover typed substitutions, fresh/nested paths, concurrent reads during writing,
failure preservation and private/shared file permissions.
ROS 1 helpers/build exports and unused logger/GUI dependencies are removed. See wolf-setup for the compiled Docker image containing the coordinated controller, planner and descriptions. The image entrypoint loads installed packages; deployment does not install a host WoLF workspace or compile packages at startup.