Revert "feat: tiep nhan route graph (Voronoi) cho global planner + anytime ARA* schema, don doc EnvMonitor"

This reverts commit f4f99650df.
This commit is contained in:
2026-10-03 15:30:15 +07:00
parent f4f99650df
commit 490f48becb
20 changed files with 903 additions and 247 deletions

View File

@@ -697,31 +697,6 @@ void NavigationServer::addStaticMap(const std::string& topic, robot_nav_msgs::Oc
sensors_.pushStaticMap(topic, map);
}
void NavigationServer::addRouteGraph(const std::string& topic, robot_sensor_msgs::RouteGraph graph)
{
// Kho chỉ, không costmap: graph là thứ planner ĐỌC KHI CẦN (đầu initialize()/makePlan), không phải
// dữ liệu costmap ghép vào layer nào. Bản trước ở kho bị thay, đúng ngữ nghĩa "map mới thì graph
// mới". Không giữ dưới data_mutex_ vì không getter nào trả nó ra host.
const std::size_t nodes = graph.node_x.size();
const std::size_t edges = graph.edge_u.size();
const std::size_t cells = graph.cell_x.size();
const robot::Time stamp = graph.header.stamp.isZero() ? robot::Time::now() : graph.header.stamp;
if (!robot_sensor_ports::put(sensor_store_, topic, graph, stamp))
{
// put() đã log lý do một lần theo topic (chưa khai trong sensor_store_params.yaml hoặc sai kiểu).
// Nhắc thêm ở đây vì triệu chứng phía planner chỉ là "không thấy graph" — giống hệt host quên gửi.
robot::log_error("[move_base2] addRouteGraph('%s') rejected by the sensor store — declare the "
"topic with data_type RouteGraph in sensor_store_params.yaml (graph %zu nodes, "
"%zu edges dropped).\n",
topic.c_str(), nodes, edges);
return;
}
robot::log_info("[move_base2] addRouteGraph('%s'): %ux%u @ %.3f m, %zu nodes, %zu edges, %zu "
"cells, hash %016llx, source '%s'.\n",
topic.c_str(), graph.width, graph.height, graph.resolution, nodes, edges, cells,
static_cast<unsigned long long>(graph.map_hash), graph.source.c_str());
}
void NavigationServer::addLaserScan(const std::string& topic,
robot_sensor_msgs::LaserScan laser_scan)
{