feat(lane_route): smooth lattice paths (R2) and expose the lattice tier in the plugin (R3)
- lane_route_core: port of the S3 smoother for lattice paths (direct, greedy and bounded graph improvement over witness anchors, then clothoid corners when budget remains), shape metrics and smoother diagnostics in PlanInfo and lane_route_eval. - lane_route_planner: loads the lattice keys from YAML, logs a config summary at start-up and one debug/fallback line per lattice request. regress7: coverage unchanged from R1, every lattice path smoothed, 0 bad in the independent recheck. Local snapshot for history only; not pushed.
This commit is contained in:
@@ -105,7 +105,8 @@ uint32_t LatticeCSpace::blockedCount(int32_t x0, int32_t y0, int32_t x1, int32_t
|
||||
bool LatticeCSpace::poseFree(double x, double y, double yaw, double sweep_margin, double centre_sweep)
|
||||
{
|
||||
if (context_.expired()) return false;
|
||||
++context_.info.lattice_pose_checks;
|
||||
if (context_.smooth_checks) ++*context_.smooth_checks;
|
||||
else ++context_.info.lattice_pose_checks;
|
||||
const GridRef& g = context_.grid;
|
||||
const PlannerConfig& c = context_.config;
|
||||
const double fx = std::floor((x - g.origin_x) / g.resolution);
|
||||
|
||||
Reference in New Issue
Block a user