feat(directional_layer): make the allowed deviation configurable

Add max_deviation_deg (default 90, valid 0 < x < 180). The field carries
the value so checkSegment and every planner use the same rule. 90 keeps
the previous masks bit for bit; out-of-range values stop the layer from
initialising.
This commit is contained in:
2026-11-04 08:52:00 +07:00
parent 5e7a22cad8
commit 52089a0e90
7 changed files with 147 additions and 20 deletions

View File

@@ -65,6 +65,7 @@ private:
bool seen_map_;
bool debug_state_;
bool rolling_;
double max_deviation_rad_; ///< Maximum angular deviation [rad].
std::string map_topic_, direction_topic_;
std::chrono::steady_clock::time_point pending_since_, last_pending_log_;
};