X2 RL Deployment
Note: The example program has only been validated in a simulation environment. To use it to control a real AgiBot X2 robot, parameter re-tuning is required.
Provides a minimal example for deploying a user-trained RL model.
The RL model used in this example performs a dance motion, and reference code for model control and a simple inference engine is provided.
After completing this example, you can replace the
onnxmodel file and adapt your policy in theRlDefaultfunction inmotion_control_node.ccto deploy a custom model.
Note
When to use this chapter: wiring an existing onnx model into the SDK, implemented in C++ (code lives in extra/x2_rl_deploy/). The bundled model is a dance motion; training is not covered here.