23 #include "spdlog/fmt/ostr.h"
24 #include "spdlog/spdlog.h"
38 bool inValidInputRange = (input == ::ad::rss::state::RssStateEvaluator::None)
40 || (input == ::ad::rss::state::RssStateEvaluator::LongitudinalDistanceOppositeDirection)
42 || (input == ::ad::rss::state::RssStateEvaluator::LongitudinalDistanceSameDirectionOtherInFront)
44 || (input == ::ad::rss::state::RssStateEvaluator::IntersectionOtherPriorityEgoAbleToStop)
46 || (input == ::ad::rss::state::RssStateEvaluator::IntersectionEgoInFront)
48 || (input == ::ad::rss::state::RssStateEvaluator::IntersectionOverlap);
49 if (!inValidInputRange && logErrors)
51 spdlog::error(
"withinValidInputRange(::ad::rss::state::RssStateEvaluator)>> {}, raw value: {} ",
53 static_cast<int32_t
>(input));
55 return inValidInputRange;