ros2_policy_framework

Run learned policies (for example ONNX policies trained with mjlab) on ROS 2 robots.

The framework answers three questions separately, so that each answer can change without touching the others:

  1. Where does the data come from? Topics, ros2_control state interfaces, or a mix.

  2. What does the policy do with it? Build an observation, run a model, turn its output into joint commands.

  3. Where do the commands go? Topics, or ros2_control command interfaces.

The same policy configuration runs as a standalone ROS 2 node or inside a ros2_control controller, and several policies can be loaded at once and switched while the robot moves.

These pages explain the concepts; Features lists what the framework offers. The README.md at the root of the repository is the reference: every plugin and the commands to run the Kangaroo example. Parameters is generated from the parameter definitions and lists every declared parameter.

Reference