Commit 1eb4e46
committed
Add body_yaw parameter to REST API move endpoints
This change exposes the body_yaw parameter, which was already supported
in the Python SDK's goto_target() method, through the REST API endpoints.
Changes:
- Add body_yaw parameter to GotoModelRequest model
- Add target_body_yaw parameter to FullBodyTarget model
- Update /api/move/goto endpoint to pass body_yaw to backend
- Update /api/move/set_target endpoint to support body_yaw
- Add examples in JSON schema for both models
The body_yaw parameter allows controlling the rotation of the robot's
body around the vertical axis, enabling more expressive movements.
Tested with Mujoco simulator using curl commands to verify:
- Setting body_yaw alone works correctly
- Setting body_yaw together with head_pose works correctly
- Using body_yaw in set_target endpoint works correctly1 parent 882490a commit 1eb4e46
2 files changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| |||
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
| 133 | + | |
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
| |||
152 | 154 | | |
153 | 155 | | |
154 | 156 | | |
| 157 | + | |
155 | 158 | | |
156 | 159 | | |
157 | 160 | | |
| |||
232 | 235 | | |
233 | 236 | | |
234 | 237 | | |
| 238 | + | |
235 | 239 | | |
236 | 240 | | |
237 | 241 | | |
| |||
0 commit comments