Commit eeb8f2e
fix bug in orientation filtering (ros-navigation#4840)
* fix bug in orientation filtering
some global planners output all zeros for orientation, however
the plan is in the global frame. when transforming to the local
frame, the orientation is no longer zero. Instead of comparing
to zero, we simply check if all the orientations in the middle
of the plan are equal
Signed-off-by: Michael Ferguson <[email protected]>
* account for floating point error
Signed-off-by: Michael Ferguson <[email protected]>
---------
Signed-off-by: Michael Ferguson <[email protected]>
Signed-off-by: stevedanomodolor <[email protected]>1 parent 9ef13a2 commit eeb8f2e
1 file changed
Lines changed: 8 additions & 4 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
425 | 426 | | |
426 | 427 | | |
427 | 428 | | |
428 | | - | |
429 | | - | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
430 | 432 | | |
431 | 433 | | |
432 | | - | |
433 | | - | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
434 | 438 | | |
435 | 439 | | |
436 | 440 | | |
| |||
0 commit comments