Parameters
Every parameter, generated from the generate_parameter_library definitions (the params/
YAML files of each package), so this page always matches the code. Each section starts with the
defaults as a parameter file, nested where the node reads them: a plugin’s parameters are under
its name (<source>, <executor>, <check>), a policy’s stages and inference under the
policy name (<policy>), and null marks a parameter without a default, which must be set.
The host parameters (policy_runner) are the same in policy_controller, whose node is
named after the controller. The parameters declared in code, such as the mjlab observation
terms and extra inputs, are listed at the end of their plugin’s section.
Hosts
policy_controller
Defined in policy_framework/params/hosts/policy_controller_parameters.yaml.
policy_controller:
ros__parameters:
policy_rate: 0.0
max_failed_reads: 5
check_on_activation: true
async_inference: false
inference_thread_priority: 40
- policy_rate (double)
Policy rate in Hz; the policy steps every update_rate / policy_rate updates (an integer) while the executors run on every update. 0: every update.
Read only: True
Default: 0.0
Constraints:
greater than or equal to 0.0
- max_failed_reads (int)
Consecutive updates in which a state interface could not be read (locked by its writer) that are tolerated, keeping the previous value; one more fails the controller.
Read only: True
Default: 5
Constraints:
greater than or equal to 0
- check_on_activation (bool)
Refuse activation (stay inactive) while a state interface reads NaN or a safety check whose reaction stops the policy already fails. false: activate, wait for a NaN state interface, and let the first update apply a failing check’s reaction.
Read only: True
Default: true
- async_inference (bool)
Run each policy step in its own real-time thread: update() never waits for inference, applies its commands from the first update after it finished, and keeps running the executors (e.g. the PD law) on every update. Exclusive with is_async.
Read only: True
Default: false
- inference_thread_priority (int)
SCHED_FIFO priority of the inference thread with async_inference; keep it below the controller manager’s (50).
Read only: True
Default: 40
Constraints:
parameter must be within bounds [0, 99]
policy_node
Defined in policy_framework/params/hosts/policy_node_parameters.yaml.
policy_node:
ros__parameters:
update_rate: 50.0
autostart: true
robot_description: ''
- update_rate (double)
Policy rate in Hz (one policy step per timer tick); the timer follows /clock with use_sim_time.
Read only: True
Default: 50.0
Constraints:
greater than 0.0
- autostart (bool)
Configure and activate the lifecycle node on startup.
Read only: True
Default: true
- robot_description (string)
URDF of the robot, needed by the kinematics (kinematics.enabled) and by safety.joint_position_limits.
Read only: True
Default: “”
policy_runner
Defined in policy_framework/params/hosts/policy_runner_parameters.yaml.
policy_node:
ros__parameters:
sources: []
<sources>:
type: null
max_age: 0.0
max_age_on_fault: error
policies: null
<policies>:
preprocessor: null
inference: policy_framework/OnnxInference
postprocessor: null
max_steps: 0
interruptible: true
disabled_safety_checks: []
safety_entry: ''
on_policy_failure: error
safety:
max_tilt: 0.0
imu: ''
joint_position_limits: false
position_margin: 0.0
max_input_age: 0.0
tilt_on_fault: error
joint_position_on_fault: error
input_age_on_fault: error
safety_checks: []
<safety_checks>:
type: null
on_fault: error
executors: []
<executors>:
type: null
- sources (string_array)
Input source names; each needs <source>.type.
Read only: True
Default: {}
Constraints:
contains no duplicates
- policies (string_array)
Policy names; the first one is active at start.
Read only: True
Constraints:
parameter is not empty
contains no duplicates
- safety_entry (string)
State entry (a state interface in PolicyController, e.g. rl_safety_controller/safe) that is 0 while user commands (velocity command, motion reference) must be ignored and replaced by neutral ones. Empty: always accepted.
Read only: True
Default: “”
- on_policy_failure (string)
Reaction to a failed policy step, including a model answering a non-finite value. Not neutral_commands: the policy itself failed.
Read only: True
Default: “error”
Constraints:
one of the specified values: [‘hold’, ‘damp’, ‘safe’, ‘error’]
- safety.max_tilt (double)
Largest angle (rad) between the IMU z axis and the vertical; 0: off.
Read only: True
Default: 0.0
Constraints:
greater than or equal to 0.0
- safety.imu (string)
State entry prefix of the IMU orientation, <imu>/orientation.{x,y,z,w}; needed by max_tilt.
Read only: True
Default: “”
- safety.joint_position_limits (bool)
Fault when a commanded joint leaves the position limits of the robot description, narrowed by position_margin.
Read only: True
Default: false
- safety.position_margin (double)
Distance the commanded joints must keep from their position limits.
Read only: True
Default: 0.0
Constraints:
greater than or equal to 0.0
- safety.max_input_age (double)
Largest age (s) of the observation of the last policy step; 0: off.
Read only: True
Default: 0.0
Constraints:
greater than or equal to 0.0
- safety.tilt_on_fault (string)
Reaction to max_tilt: log, neutral_commands, hold, damp, safe or error.
Read only: True
Default: “error”
Constraints:
one of the specified values: [‘log’, ‘neutral_commands’, ‘hold’, ‘damp’, ‘safe’, ‘error’]
- safety.joint_position_on_fault (string)
Reaction to joint_position_limits: log, neutral_commands, hold, damp, safe or error.
Read only: True
Default: “error”
Constraints:
one of the specified values: [‘log’, ‘neutral_commands’, ‘hold’, ‘damp’, ‘safe’, ‘error’]
- safety.input_age_on_fault (string)
Reaction to max_input_age: neutral_commands, hold, damp, safe or error.
Read only: True
Default: “error”
Constraints:
one of the specified values: [‘neutral_commands’, ‘hold’, ‘damp’, ‘safe’, ‘error’]
- safety_checks (string_array)
SafetyCheck plugin names; each needs <check>.type, and has a <check>.on_fault (default error).
Read only: True
Default: {}
Constraints:
contains no duplicates
- executors (string_array)
Executor names; each needs <executor>.type: a topic Executor in policy_node, an InterfaceExecutor in PolicyController.
Read only: True
Default: {}
Constraints:
contains no duplicates
- <sources>.type (string)
InputSource plugin class of the source.
Read only: True
Constraints:
parameter is not empty
- <sources>.max_age (double)
Fault when the latest message of the source arrived longer ago than this, in seconds (on the receive time); 0: off. Not for a command source: its timeout handles a stopped operator.
Read only: True
Default: 0.0
Constraints:
greater than or equal to 0.0
- <sources>.max_age_on_fault (string)
Reaction to max_age: neutral_commands, hold, damp, safe or error.
Read only: True
Default: “error”
Constraints:
one of the specified values: [‘neutral_commands’, ‘hold’, ‘damp’, ‘safe’, ‘error’]
- <policies>.preprocessor (string)
Preprocessor plugin class.
Read only: True
Constraints:
parameter is not empty
- <policies>.inference (string)
Inference plugin class.
Read only: True
Default: “policy_framework/OnnxInference”
Constraints:
parameter is not empty
- <policies>.postprocessor (string)
Postprocessor plugin class.
Read only: True
Constraints:
parameter is not empty
- <policies>.max_steps (int)
> 0: return to the policy this one interrupted after this many steps (e.g. a motion length).
Read only: True
Default: 0
Constraints:
greater than or equal to 0
- <policies>.interruptible (bool)
false: switch requests are rejected while this policy is active.
Read only: True
Default: true
- <policies>.disabled_safety_checks (string_array)
Safety checks skipped while this policy is active, e.g. a joint velocity bound for a jump: names from safety_checks, or the monitor checks tilt, joint_position_limits and max_input_age. Sources’ and terms’ max_age always apply.
Read only: True
Default: {}
Constraints:
contains no duplicates
- <safety_checks>.type (string)
SafetyCheck plugin class of the check.
Read only: True
Constraints:
parameter is not empty
- <safety_checks>.on_fault (string)
Reaction to this check failing: log, neutral_commands, hold, damp, safe or error.
Read only: True
Default: “error”
Constraints:
one of the specified values: [‘log’, ‘neutral_commands’, ‘hold’, ‘damp’, ‘safe’, ‘error’]
- <executors>.type (string)
Executor plugin class.
Read only: True
Constraints:
parameter is not empty
Core
kinematics
Defined in policy_framework/params/core/kinematics_parameters.yaml.
policy_node:
ros__parameters:
kinematics:
enabled: false
joints: []
excluded_joints: []
- enabled (bool)
Build the whole-body kinematic model from the robot description, updated from <joint>/position and <joint>/velocity on every controller update / node tick (once all were received).
Read only: True
Default: false
- joints (string_array)
Joints updated from the state; the other movable joints are locked at zero. Empty: every movable joint of the robot description not in excluded_joints. Not with excluded_joints.
Read only: True
Default: {}
Constraints:
contains no duplicates
- excluded_joints (string_array)
Joints locked at zero (frames past them are computed as if the joint were at zero); every other movable joint is updated from the state. E.g. a joint that is not revolute, continuous or prismatic. Not with joints.
Read only: True
Default: {}
Constraints:
contains no duplicates
Input sources
constant_source
Defined in policy_framework/params/plugins/sources/constant_source_parameters.yaml.
policy_node:
ros__parameters:
<source>:
entries: null
values: null
- entries (string_array)
State entries written by this source, e.g. pelvis_1_joint/position.
Read only: True
Constraints:
parameter is not empty
contains no duplicates
- values (double_array)
Value of each entry, in the order of entries.
Read only: True
imu_source
Defined in policy_framework/params/plugins/sources/imu_source_parameters.yaml.
policy_node:
ros__parameters:
<source>:
sensor_name: ''
- sensor_name (string)
Entry prefix <sensor_name>/orientation.*, matching the IMU state interfaces; empty: the source name.
Read only: True
Default: “”
joint_state_source
Defined in policy_framework/params/plugins/sources/joint_state_source_parameters.yaml.
policy_node:
ros__parameters:
<source>:
joints: []
- joints (string_array)
Joints this source provides; empty: any joint.
Read only: True
Default: {}
Constraints:
contains no duplicates
topic_parameters
Defined in policy_framework/params/plugins/sources/topic_parameters.yaml.
policy_node:
ros__parameters:
<source>:
topic: ''
- topic (string)
Topic to subscribe to; empty: the plugin’s default (~/<name> for input sources).
Read only: True
Default: “”
twist_source
Defined in policy_framework/params/plugins/sources/twist_source_parameters.yaml.
policy_node:
ros__parameters:
<source>:
timeout: 1.0
- timeout (double)
Seconds after which the last command is replaced by zero; above zero (a command that never expires would stay applied after the operator is lost).
Read only: True
Default: 1.0
Constraints:
greater than 0.0
Stages
concat_preprocessor
Defined in policy_framework/params/plugins/stages/concat_preprocessor_parameters.yaml.
policy_node:
ros__parameters:
<policy>:
input_tensor: obs
input_entries: null
- input_tensor (string)
Model input to fill.
Read only: True
Default: “obs”
Constraints:
parameter is not empty
- input_entries (string_array)
State entries copied in order; as many as the tensor values.
Read only: True
Constraints:
parameter is not empty
split_postprocessor
Defined in policy_framework/params/plugins/stages/split_postprocessor_parameters.yaml.
policy_node:
ros__parameters:
<policy>:
output_tensor: actions
output_entries: null
- output_tensor (string)
Model output to split.
Read only: True
Default: “actions”
Constraints:
parameter is not empty
- output_entries (string_array)
Command entries written in order; as many as the tensor values.
Read only: True
Constraints:
parameter is not empty
Inference
onnx_inference
Defined in policy_framework/params/plugins/inference/onnx_inference_parameters.yaml.
policy_node:
ros__parameters:
<policy>:
model_path: null
num_threads: 1
warm_start: false
- model_path (string)
ONNX model file, or a directory: its first .onnx file.
Read only: True
Constraints:
parameter is not empty
- num_threads (int)
ONNX Runtime intra-op threads.
Read only: True
Default: 1
Constraints:
greater than 0
- warm_start (bool)
Run the model once on zeroed inputs in configure, so the first control step does not pay ONNX Runtime’s one-off initialisation.
Read only: True
Default: false
Executors
multi_dof_command_executor
Defined in policy_framework/params/plugins/executors/multi_dof_command_executor_parameters.yaml.
policy_node:
ros__parameters:
<executor>:
topic: ''
values_interface: position
values_dot_interface: velocity
- topic (string)
control_msgs/MultiDOFCommand topic; empty: ~/<name>.
Read only: True
Default: “”
- values_interface (string)
Command entries <dof>/<values_interface> become the values.
Read only: True
Default: “position”
Constraints:
parameter is not empty
- values_dot_interface (string)
Command entries <dof>/<values_dot_interface> become values_dot (0 when missing); empty: always 0.
Read only: True
Default: “velocity”
pd_effort_executor
Defined in policy_framework/params/plugins/executors/pd_effort_executor_parameters.yaml.
policy_node:
ros__parameters:
<executor>:
joints: []
effort_interface: effort
stiffness: []
damping: []
effort_limits: []
- joints (string_array)
Joints to drive; empty: every command entry <joint>/position.
Read only: True
Default: {}
Constraints:
contains no duplicates
- effort_interface (string)
Command interface <joint>/<effort_interface> written.
Read only: True
Default: “effort”
Constraints:
parameter is not empty
- stiffness (double_array)
Kp per joint, used when the policy does not write <joint>/stiffness commands.
Read only: True
Default: {}
Constraints:
each element of array must be greater than or equal to 0.0
- damping (double_array)
Kd per joint, used when the policy does not write <joint>/damping commands.
Read only: True
Default: {}
Constraints:
each element of array must be greater than or equal to 0.0
- effort_limits (double_array)
Bound on the absolute effort per joint (0: none); empty: no clamping.
Read only: True
Default: {}
Constraints:
each element of array must be greater than or equal to 0.0
reference_interface_executor
Defined in policy_framework/params/plugins/executors/reference_interface_executor_parameters.yaml.
policy_node:
ros__parameters:
<executor>:
prefix: ''
interfaces:
- position
- velocity
- prefix (string)
Command interface <prefix>/<entry>; empty: the entry name.
Read only: True
Default: “”
- interfaces (string_array)
Only entries <joint>/<interface> with one of these interfaces are written.
Read only: True
Default: {“position”, “velocity”}
Constraints:
parameter is not empty
contains no duplicates
Safety checks
encoder_mismatch_check
Defined in policy_framework/params/plugins/safety/encoder_mismatch_check_parameters.yaml.
policy_node:
ros__parameters:
<check>:
joints: null
tolerance: 0.0
persist: false
- joints (string_array)
Joints whose state entries <joint>/absolute_position and <joint>/position are compared.
Read only: True
Constraints:
parameter is not empty
contains no duplicates
- tolerance (double)
Largest allowed difference between the absolute and the position of a joint; required, above zero.
Read only: True
Default: 0.0
Constraints:
greater than 0.0
- persist (bool)
Once failed, keep failing until the host is reactivated or its safety is reset (~/reset_safety), even when the positions agree again. Refused with on_fault: log.
Read only: True
Default: false
jump_check
Defined in policy_framework/params/plugins/safety/jump_check_parameters.yaml.
policy_node:
ros__parameters:
<check>:
prefixes: null
interfaces: null
<interfaces>:
max_delta: 0.0
- prefixes (string_array)
Prefixes of the checked state entries <prefix>/<interface>, e.g. joint names.
Read only: True
Constraints:
parameter is not empty
contains no duplicates
- interfaces (string_array)
Interfaces checked for every prefix, e.g. position; each needs <interface>.max_delta.
Read only: True
Constraints:
parameter is not empty
contains no duplicates
- <interfaces>.max_delta (double)
Largest change of the value between two cycles; required, above zero.
Read only: True
Default: 0.0
Constraints:
greater than or equal to 0.0
mock_safety_check
Defined in policy_framework/params/plugins/safety/mock_safety_check_parameters.yaml.
policy_node:
ros__parameters:
<check>:
reactions: []
- reactions (string_array)
Reactions a MockFault message may ask for besides the check’s on_fault, declared so that the host checks its executors support them.
Read only: True
Default: {}
Constraints:
contains no duplicates
every element is one of the list [‘log’, ‘neutral_commands’, ‘hold’, ‘damp’, ‘safe’, ‘error’]
state_bounds_check
Defined in policy_framework/params/plugins/safety/state_bounds_check_parameters.yaml.
policy_node:
ros__parameters:
<check>:
prefixes: null
interfaces: null
<interfaces>:
min: -1.0e+300
max: 1.0e+300
hysteresis: 0.0
escalation:
count: 0
on_fault: error
trigger_cycles: 1
- prefixes (string_array)
Prefixes of the checked state entries <prefix>/<interface>, e.g. joint or actuator names.
Read only: True
Constraints:
parameter is not empty
contains no duplicates
- interfaces (string_array)
Interfaces checked for every prefix, e.g. temperature, error_code; each needs <interface>.min and/or <interface>.max.
Read only: True
Constraints:
parameter is not empty
contains no duplicates
- escalation.count (int)
Entries failing at once from which the check asks for escalation.on_fault instead of its configured on_fault; 0: never.
Read only: True
Default: 0
Constraints:
greater than or equal to 0
- escalation.on_fault (string)
Reaction asked for from escalation.count failing entries on.
Read only: True
Default: “error”
Constraints:
one of the specified values: [‘neutral_commands’, ‘hold’, ‘damp’, ‘safe’, ‘error’]
- trigger_cycles (int)
Consecutive violations of an entry before the check fails.
Read only: True
Default: 1
Constraints:
greater than or equal to 1
- <interfaces>.min (double)
Lowest allowed value; default: unbounded.
Read only: True
Default: -1e+300
- <interfaces>.max (double)
Highest allowed value; default: unbounded.
Read only: True
Default: 1e+300
- <interfaces>.hysteresis (double)
Once failed, an entry passes again only within [min + hysteresis, max - hysteresis].
Read only: True
Default: 0.0
Constraints:
greater than or equal to 0.0
state_value_check
Defined in policy_framework/params/plugins/safety/state_value_check_parameters.yaml.
policy_node:
ros__parameters:
<check>:
prefixes: null
interfaces: null
<interfaces>:
fault_values: []
persist: false
- prefixes (string_array)
Prefixes of the checked state entries <prefix>/<interface>, e.g. actuator names or robot.
Read only: True
Constraints:
parameter is not empty
contains no duplicates
- interfaces (string_array)
Interfaces checked for every prefix, e.g. mode, is_safe; each needs <interface>.fault_values.
Read only: True
Constraints:
parameter is not empty
contains no duplicates
- persist (bool)
Once failed, keep failing until the host is reactivated or its safety is reset (~/reset_safety), even when the values are fine again. Refused with on_fault: log.
Read only: True
Default: false
- <interfaces>.fault_values (int_array)
Values (rounded to the nearest integer) that mean a fault, e.g. [103] for an actuator mode in error, [0] for a false is_safe; required.
Read only: True
Default: {}
mjlab
mjlab_postprocessor
Defined in policy_framework_mjlab/params/mjlab_postprocessor_parameters.yaml.
policy_node:
ros__parameters:
<policy>:
excluded_joints: []
uncommanded_joints: []
position_interface: position
velocity_interface: velocity
gains_controller: ''
gains_as_commands: false
- excluded_joints (string_array)
Metadata joints the policy does not actuate (e.g. passive joints of a closed chain).
Read only: True
Default: {}
Constraints:
contains no duplicates
- uncommanded_joints (string_array)
Non-excluded joints that get no commands and no gains: their action, if any, is ignored (e.g. joints the robot does not have, or the arms of a legs-only policy).
Read only: True
Default: {}
Constraints:
contains no duplicates
- position_interface (string)
Command entries <joint>/<position_interface> receive action_scale * action + default_joint_pos.
Read only: True
Default: “position”
Constraints:
parameter is not empty
- velocity_interface (string)
Command entries <joint>/<velocity_interface> receive 0; empty: not written.
Read only: True
Default: “velocity”
- gains_controller (string)
pid_controller whose gains.<joint>.p/.d parameters receive the policy gains on activation; empty: not sent.
Read only: True
Default: “”
- gains_as_commands (bool)
Write the policy gains as <joint>/stiffness and <joint>/damping commands on every step (for PdEffortExecutor).
Read only: True
Default: false
mjlab_preprocessor
Defined in policy_framework_mjlab/params/mjlab_preprocessor_parameters.yaml.
policy_node:
ros__parameters:
<policy>:
imu_name: imu
imu_frame: ''
velocity_command_name: cmd_vel
odometry_name: odom
observation_input: obs
unknown_extra_inputs: error
- imu_name (string)
Prefix of the IMU entries <imu_name>/orientation.*, angular_velocity.*, linear_acceleration.*.
Read only: True
Default: “imu”
Constraints:
parameter is not empty
- imu_frame (string)
URDF link of the IMU. Needed (with kinematics.enabled) by the terms of pal_mjlab exports that observe the base: base_ang_vel, base_projected_gravity.
Read only: True
Default: “”
- velocity_command_name (string)
Prefix of the twist command entries of the built-in velocity command term.
Read only: True
Default: “cmd_vel”
Constraints:
parameter is not empty
- odometry_name (string)
Prefix of the odometry entries <odometry_name>/linear.* (base_lin_vel).
Read only: True
Default: “odom”
Constraints:
parameter is not empty
- observation_input (string)
Model input receiving the observation.
Read only: True
Default: “obs”
Constraints:
parameter is not empty
- unknown_extra_inputs (string)
What to do with a model input other than the observation that has neither a built-in filler (time_step) nor an extra_inputs.<input>.type plugin: ‘error’ fails the configuration, ‘ignore’ leaves it at zero.
Read only: True
Default: “error”
Constraints:
one of the specified values: [‘error’, ‘ignore’]
- terms.<term>.type (string)
ObservationTerm plugin class computing the term <term> of the model’s observation_names. Unset: the built-in term of that name. Declared when the policy is configured.
- terms.<term>.topic (string)
TopicTerm: topic it subscribes to. Default: set by the term
- terms.<term>.max_age (double)
TopicTerm: fault when its latest message arrived longer ago than this, in s, on the receive time, checked after each step of its policy. Refused by a CommandTerm (it has its timeout). Default: 0.0 (off)
- terms.<term>.max_age_on_fault (string)
TopicTerm: reaction to a max_age fault. Default: error Constraints: one of [hold, damp, safe, error]
- terms.<term>.timeout (double)
CommandTerm: time without a usable command after which the term writes its neutral command, in s. Default: set by the term Constraints: greater than 0.0
- extra_inputs.<input>.type (string)
ExtraInput plugin class filling the model input <input>, e.g. policy_framework_mjlab/DoubleParameterInput. Unset: the built-in filler of that name (time_step), else unknown_extra_inputs applies.
- extra_inputs.<input>.value (double)
DoubleParameterInput: value of the input, latched when the policy is activated. Default: unset (.nan): the metadata default
- extra_inputs.<input>.metadata_default (string)
DoubleParameterInput: model metadata key holding the default value; empty: no default. Default: reference_<input>