map,lidar,web: ban do theo lan nhin MOI NHAT + scan dung gio. Luoi 2D: GridGlobal/* (3 lan nhin xuyen qua -> trong, truoc ~9; truoc 07/10 khong truyen vao bo ghep luoi); lop camera + 3D: xoa voxel ma >= 2 node sau nhin xuyen qua (VoxelCarver) -- nguoi dung roi di thi quay lai quet la mat. LiDAR: stamp_offset -55 ms + chinh meo theo chieu quet (do tren ban do that 28/09 + 01/10); web: robot troi muot
This commit is contained in:
@@ -69,7 +69,8 @@ StatusResponse LoadAppConfig(const std::string& dir, AppConfig* out) {
|
||||
Reject(l, "sensors.yaml lidar",
|
||||
{"host", "port", "expected_rate_hz", "range_min", "range_max",
|
||||
"stamp_mismatch_warn", "sector_masks",
|
||||
"angle_offset_deg", "angle_flip", "filters"});
|
||||
"angle_offset_deg", "angle_flip", "filters",
|
||||
"stamp_offset_sec", "deskew"});
|
||||
if (!r.ok()) return r;
|
||||
}
|
||||
out->sanitizer.range_min = l.get<double>("range_min", 0.05);
|
||||
@@ -94,6 +95,11 @@ StatusResponse LoadAppConfig(const std::string& dir, AppConfig* out) {
|
||||
l.get<double>("angle_offset_deg", out->lidar_driver.angle_offset_deg);
|
||||
out->lidar_driver.inverted =
|
||||
l.get<bool>("angle_flip", out->lidar_driver.inverted);
|
||||
// Gio scan so voi odometry va chinh meo -- do tren ban do that, xem
|
||||
// sensors.yaml.
|
||||
out->lidar_driver.stamp_offset_sec =
|
||||
l.get<double>("stamp_offset_sec", out->lidar_driver.stamp_offset_sec);
|
||||
out->lidar_driver.deskew = l.get<bool>("deskew", out->lidar_driver.deskew);
|
||||
|
||||
// --- Bon bo loc scan ---
|
||||
const ConfigNode ft = l["filters"];
|
||||
@@ -584,7 +590,8 @@ StatusResponse LoadAppConfig(const std::string& dir, AppConfig* out) {
|
||||
const StatusResponse r =
|
||||
Reject(v, "slam.yaml voxel",
|
||||
{"emit_size_m", "z_min", "z_max", "max_cells", "delta_max_ratio",
|
||||
"obstacle_z_min", "obstacle_z_max", "min_node_hits"});
|
||||
"obstacle_z_min", "obstacle_z_max", "min_node_hits",
|
||||
"clear_after_views"});
|
||||
if (!r.ok()) return r;
|
||||
|
||||
out->voxel.emit_size_m = v.get<double>("emit_size_m", out->voxel.emit_size_m);
|
||||
@@ -605,6 +612,13 @@ StatusResponse LoadAppConfig(const std::string& dir, AppConfig* out) {
|
||||
"slam.yaml voxel.min_node_hits phai >= 1");
|
||||
}
|
||||
out->voxel.min_node_hits = static_cast<size_t>(hits);
|
||||
const int clear = v.get<int>("clear_after_views",
|
||||
static_cast<int>(out->voxel.clear_after_views));
|
||||
if (clear < 0) {
|
||||
return StatusResponse::Error(StatusCode::kInvalidArgument,
|
||||
"slam.yaml voxel.clear_after_views phai >= 0 (0 = tat)");
|
||||
}
|
||||
out->voxel.clear_after_views = static_cast<size_t>(clear);
|
||||
|
||||
if (out->voxel.emit_size_m <= 0.0) {
|
||||
return StatusResponse::Error(StatusCode::kInvalidArgument,
|
||||
|
||||
Reference in New Issue
Block a user