Closed nhatao closed 1 year ago
Merging #705 (c189a14) into master (4c9f1a3) will increase coverage by
0.18%
. The diff coverage is88.57%
.
@@ Coverage Diff @@
## master #705 +/- ##
==========================================
+ Coverage 88.13% 88.31% +0.18%
==========================================
Files 60 60
Lines 4323 4330 +7
==========================================
+ Hits 3810 3824 +14
+ Misses 513 506 -7
Impacted Files | Coverage Δ | |
---|---|---|
planner_cspace/src/planner_3d.cpp | 85.13% <88.23%> (+1.17%) |
:arrow_up: |
planner_cspace/src/patrol.cpp | 89.28% <100.00%> (ø) |
There is still a problem. Changed to WIP
catkin_make tests
failed
catkin_make tests
failed
In the current master branch, When
cnt_stuck_
has a positive value,status.error
becomesPATH_NOT_FOUND
. The value ofcnt_stuck_
is incremented when the start or the goal cell is occupied, and it is retained even after the occupied cell is cleared and path planning is succeeded. Therefore, thestatus.error
never returns toGOING_WELL
in such cases. In addition, when the start cell is occupied,status.error
should becomeIN_ROCK
. This bug is introduced by https://github.com/at-wat/neonavigation/commit/db2532967d0e15f85e7ee8657183abddcb1719ea.In this PR,
cost_estim_cache_created_
is used to check if the start or goal cell is occupied instead ofcnt_stuck_
. In addition,is_start_occupied_
flag is added to distinguishIN_ROCK
status. Some inappropriate names of functions and variables are renamed.