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:
@@ -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_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user