Dump solver status#
For debugging purpose, you might want to investigate what the solver status is.
To that end, you can call the dump_status()
on the solver:
# Shows the current tasks status
solver.dump_status()
This will display the task names, type, priority and current errors.
For the humanoid example (Example code: kinematics/humanoid.py), the output will be similar to:
* Kinematics Tasks:
* right_foot_orientation [orientation]
- Priority: soft (weight:1)
- Error: 0.000012 [rad]
* right_foot_position [position]
- Priority: soft (weight:1)
- Error: 0.000306 [m]
* reg [joints]
- Priority: soft (weight:1e-05)
- Error: 3.216593 [dof]
* left_foot_orientation [orientation]
- Priority: soft (weight:1)
- Error: 0.000029 [rad]
* trunk_orientation [orientation]
- Priority: soft (weight:1)
- Error: 0.000012 [rad]
* left_foot_position [position]
- Priority: soft (weight:1)
- Error: 0.000370 [m]
* look_ball [axis_align]
- Priority: soft (weight:1)
- Error: 0.005295 [rad]
* com [com]
- Priority: soft (weight:1)
- Error: 0.000630 [m]