Only one ControllerCore may exist in a process. A second construction fails
before it can overwrite retained process-wide robot/configuration storage;
destruction releases the lease for later reconfiguration. Multiple robot
controllers require separate processes, including separate Gazebo servers.
Multiple controller managers in one simulator process are not isolated.
Whole-body locomotion algorithms for the ROS 2 Jazzy WoLF workspace. The controller core uses the coordinated RBDL-backed WBID and state estimator. ROS 1 build branches and RT GUI/logger registrations and storage are removed.
For MPC observations, centroidal momentum uses world axes; contact forces are rotated from their local sensor frame without adding the contact translation. Raw external forces are retained separately to avoid rotating an old world sample again between sensor updates. EXT contact diagnostics come from the inverse-dynamics contact schedule rather than the WPG gait generator.
Current and requested control modes use atomic access. The ROS 2 MPC transport
also checks pending EXT requests through getRequestedControlMode(), so a
request waiting for all-foot contact can be canceled if its prepared references
expire before activation. Rebuild the controller and WBID together with this
core revision; the coordinated integration changes shared C++ interfaces.
Each ANOMALY update selects posture DOWN before it can expose IDLE. A fresh stand-up request after that visible IDLE transition survives the deferred fault-exit callback; requests made during a fault cannot carry UP into recovery. Reasserting the current state preserves any pending exit/entry callbacks.
The Eigen-only regression test test/contact_force_frames_test.cpp checks that
contact translation has no effect and that world rotation is applied correctly.
Swing trajectories are owned through TrajectoryInterface pointers. Its virtual
destructor ensures the concrete trajectory and its members are destroyed when
the gait generator releases or replaces them. The previous base deletion was
undefined behavior and was detected by AddressSanitizer during the real
controller migration test. test/foot_trajectory_lifetime_test.cpp checks derived
resource cleanup through the same base-pointer ownership path. It compiles the
actual trajectory sources in isolation; the full controller gate also exercises
the installed libraries. Rebuild wpg and all controller consumers together
after this virtual-interface change.
setJointState takes actuated-joint vectors only, after initialization. It
validates all four vector sizes before changing the internal tails and leaves
the six floating-base coordinates unchanged. The old loop counted generalized
coordinates and added the base offset a second time, writing beyond the state
vectors. The real controller regression uses the production indexed setters
for its live samples and separately checks this bulk API's dimensions and
state preservation.
For source development or image maintenance, configure and run the native regressions with ament/colcon inside a prepared builder/development container:
colcon build --packages-up-to wolf_controller_core --cmake-args -DBUILD_TESTING=ON
source install/setup.bash
colcon test --packages-select wolf_controller_core
colcon test-result --verboseThe tests check force-frame arithmetic, trajectory ownership, process isolation and preservation of pending state transitions. The controller plugin owns ROS lifecycle, command arbitration and validation of update periods; closed-loop stability and deadline measurements require simulation or hardware.
Deploy the compiled Docker image built by wolf-setup, which includes the coordinated controller, planner and robot descriptions. Its entrypoint loads the installed workspace; no host WoLF installation or runtime workspace build is required.