Repository navigation
Commit 67ebc01
Keep check=False lenient; reject only wrong-size stacked arrays
The shape guard added with the stacked-array support rejected every
array whose shape differed from the class's internal value shape when
check=False. That broke accepted equivalent forms: Twist3 from a 4x4
SE(3)/se(3) matrix, Twist2 from a 3x3 SE(2)/se(2) matrix, and
Quaternion from a non-4-vector array, all of which the class _import
methods deliberately accept unchecked.
Only reject when a matrix pose class (SE3, SO3, SE2, SO2) gets a 3D
array whose per-matrix size is wrong: such an array can only be read
as a stack, so the mismatch is never a valid pose, whatever check is.
Single 2D arrays keep their historical check=False behavior.1 parent 1fb1b5d commit 67ebc01
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
194 | 199 | | |
195 | 200 | | |
196 | 201 | | |
197 | 202 | | |
198 | 203 | | |
199 | 204 | | |
200 | 205 | | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | 206 | | |
206 | 207 | | |
207 | 208 | | |
| |||
0 commit comments