@rfx.policy to make a function deployable from the CLI.
Minimal policy
my_policy.py
Named joint control
UseMotorCommands to build actions from joint names instead of raw tensor
indices:
Stateful policies
A policy can be any callable, including a class with state.@rfx.policy
wraps a factory function — the returned callable becomes the policy:
Torch and tinygrad
LoadedPolicy handles torch / tinygrad conversion automatically at deploy
time. Policies can be authored in either framework as long as the callable
contract holds.
