Commit 60d4e7b
fix(retargeters): clear Se3Rel smoothing state when grip pose is invalid
Re-arming _first_frame alone drops only the rebaseline sample; the
smoothed-delta EMA buffers still hold pre-loss motion at full strength
(they never decay while the invalid branch returns early), so the second
valid frame after recovery blends stale motion into the output. Zero
both buffers in the invalid-grip branch, matching the reset handler's
convention for re-arming the first-frame baseline.
Addresses CodeRabbit review feedback on #743.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Hougant Chen <hougantc@nvidia.com>1 parent 1124d99 commit 60d4e7b
2 files changed
Lines changed: 34 additions & 2 deletions
File tree
- src
- core/retargeting_engine_tests/python
- retargeters
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
396 | | - | |
397 | | - | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
398 | 400 | | |
399 | 401 | | |
| 402 | + | |
| 403 | + | |
400 | 404 | | |
401 | 405 | | |
402 | 406 | | |
| |||
0 commit comments