22 #include "ad/physics/DistanceValidInputRange.hpp"
28 #include "spdlog/fmt/ostr.h"
29 #include "spdlog/spdlog.h"
46 bool inValidInputRange =
true;
52 if (!inValidInputRange && logErrors)
54 spdlog::error(
"withinValidInputRange(::ad::rss::situation::VehicleState)>> {} has invalid member",
59 if (inValidInputRange)
63 if (!inValidInputRange && logErrors)
66 "withinValidInputRange(::ad::rss::situation::VehicleState)>> {} element {} out of valid input range [{}, {}]",
69 ::ad::physics::Distance(0.),
74 if (inValidInputRange)
78 if (!inValidInputRange && logErrors)
81 "withinValidInputRange(::ad::rss::situation::VehicleState)>> {} element {} out of valid input range [{}, {}]",
85 ::ad::physics::Distance(1e4));
89 return inValidInputRange;