Repository navigation
Commit bc2a188
authored
Fix animation start pose being applied twice in Animate.trplot (#238)
Fixes #171.
`Animate.trplot` built the frame geometry already placed at the
requested start pose. The animation then applied the absolute pose again
when drawing, so the frame showed up at the wrong place: asking for a
start of `(-1, 0, 2)` displayed it at `(-2, 0, 4)`.
The geometry is now built at the identity and the start pose is applied
once through `_draw(self.start)`, which matches how the end pose and the
intermediate frames are already drawn.
Test: added a case to `tests/base/test_transforms3d_plot.py` that checks
the drawn frame at the start and end poses for the line, arrow and rviz
styles. It fails on `master` and passes with this change. Full suite:
348 passed, 3 skipped. The interactive animation loop itself is not
exercised in the headless tests; the endpoint poses are.1 parent df4cf92 commit bc2a188
2 files changed
Lines changed: 49 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
28 | 74 | | |
29 | 75 | | |
30 | 76 | | |
| |||
0 commit comments