Commit c6140f9
committed
Use the shared quaternion error metric and drop the direct_ prefixes
evaluate_reorient_success now computes the orientation error through
isaaclab.utils.math.quat_error_magnitude instead of a local formula:
the shared utility is torch.jit-scriptable (verified by compiling a
scripted caller from a source file) and decision-identical at the task
tolerances — zero success-threshold flips over 20k random pairs, with
differences up to 9e-4 rad only near pi where the shared atan2-based
form is the more accurate one. The local
direct_reorient_rotation_distance is deleted.
Rename direct_reorient_reward to reorient_reward: shared symbols carry
no paradigm prefix. The DirectReorientReward and DirectReorientTimeout
manager terms keep the prefix deliberately — there "Direct" names the
Direct-compatible contract they implement.1 parent 1f05f85 commit c6140f9
4 files changed
Lines changed: 10 additions & 27 deletions
File tree
- source/isaaclab_tasks
- isaaclab_tasks/core/reorient
- mdp
- test/core
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | | - | |
| 28 | + | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
58 | | - | |
59 | | - | |
| 57 | + | |
60 | 58 | | |
61 | 59 | | |
62 | 60 | | |
| |||
Lines changed: 3 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | 143 | | |
159 | 144 | | |
160 | 145 | | |
| |||
173 | 158 | | |
174 | 159 | | |
175 | 160 | | |
176 | | - | |
| 161 | + | |
177 | 162 | | |
178 | 163 | | |
179 | 164 | | |
180 | 165 | | |
181 | | - | |
| 166 | + | |
182 | 167 | | |
183 | 168 | | |
184 | 169 | | |
| |||
310 | 295 | | |
311 | 296 | | |
312 | 297 | | |
313 | | - | |
| 298 | + | |
314 | 299 | | |
315 | 300 | | |
316 | 301 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
0 commit comments