Commit 8ea9f68
authored
Add per-robot joint offset calibration to actions (#100)
## Notes
This PR adds `--robot.joint-offsets-deg` parameter for per-robot motor
calibration offsets applied to `lowcmd` (action space) without affecting
observations, matching the approach done by Unitree with their built-in
locomotion policy and the offsets Unitree Explore App. The new option
defaults to None (zero offsets), so existing behavior is unchanged.
## Example usage
```
python -m holosoma_inference.run_policy inference:g1-29dof-loco (...) --robot.joint-offsets-deg '[1.5, 0.0, -0.8, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]'
```1 parent 9ca129e commit 8ea9f68
2 files changed
Lines changed: 18 additions & 1 deletion
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
| |||
690 | 695 | | |
691 | 696 | | |
692 | 697 | | |
693 | | - | |
| 698 | + | |
694 | 699 | | |
695 | 700 | | |
696 | 701 | | |
| |||
0 commit comments