- SensorGateway::pushStaticMap also dispatches to DIRECTIONAL_LAYER on the global costmap, before STATIC_LAYER: with a same-geometry map the directional layer goes PENDING before StaticLayer can report current, so a plan cannot pair the new map with the old zones. - Static maps are replayed in arrival order instead of topic order, so a direction grid is never replayed before its static map. - PlannerRunner checks every enabled global layer under the same lock as the snapshot. While a layer is not current it keeps the goal, reports waiting_for_costmap, logs the stale layers (throttled) and spends no planner_patience or watchdog budget. After costmap_ready_timeout [s] (default 10, 0 = legacy behaviour) the attempt fails as before. The key is added to config/runtime/move_base_common_params.yaml. - Test fixture destroys the server before its fake ports (the control thread could call a destroyed port). Full history: branch feature/direction-zone.
59 lines
1.4 KiB
C++
59 lines
1.4 KiB
C++
/*********************************************************************
|
|
*
|
|
* Software License Agreement (BSD License)
|
|
*
|
|
* move_base2 — tên hiển thị cho bảng trạng thái thành phần.
|
|
*
|
|
* Author: DuongTD
|
|
*********************************************************************/
|
|
#include <move_base2/core/component_status.h>
|
|
|
|
namespace move_base2
|
|
{
|
|
|
|
const char* toString(Component component)
|
|
{
|
|
switch (component)
|
|
{
|
|
case Component::kGlobalPlanner:
|
|
return "global_planner";
|
|
case Component::kLocalPlanner:
|
|
return "local_planner";
|
|
case Component::kRecovery:
|
|
return "recovery";
|
|
case Component::kAction:
|
|
return "action";
|
|
case Component::kCostmapGlobal:
|
|
return "costmap_global";
|
|
case Component::kCostmapLocal:
|
|
return "costmap_local";
|
|
case Component::kControlLoop:
|
|
return "control_loop";
|
|
case Component::kCount:
|
|
break;
|
|
}
|
|
return "unknown";
|
|
}
|
|
|
|
const char* toString(ComponentPhase phase)
|
|
{
|
|
switch (phase)
|
|
{
|
|
case ComponentPhase::kIdle:
|
|
return "idle";
|
|
case ComponentPhase::kBusy:
|
|
return "busy";
|
|
case ComponentPhase::kStopping:
|
|
return "stopping";
|
|
case ComponentPhase::kPaused:
|
|
return "paused";
|
|
case ComponentPhase::kHung:
|
|
return "hung";
|
|
case ComponentPhase::kWaitingForCostmap:
|
|
return "waiting_for_costmap";
|
|
}
|
|
return "unknown";
|
|
}
|
|
|
|
} // namespace move_base2
|