ad_rss_map_integration
RssConstellationConfigurationValidInputRange.hpp
Go to the documentation of this file.
1 /*
2  * ----------------- BEGIN LICENSE BLOCK ---------------------------------
3  *
4  * Copyright (C) 2018-2022 Intel Corporation
5  *
6  * SPDX-License-Identifier: LGPL-2.1-only
7  *
8  * ----------------- END LICENSE BLOCK -----------------------------------
9  */
10 
18 #pragma once
19 
20 #include <cmath>
21 #include <limits>
25 #include "ad/rss/world/RssDynamicsValidInputRange.hpp"
26 #include "spdlog/fmt/ostr.h"
27 #include "spdlog/spdlog.h"
28 
40  bool const logErrors = true)
41 {
42  // check for generic member input ranges
43  bool inValidInputRange = true;
44  inValidInputRange = withinValidInputRange(input.constellation_creation_mode, logErrors)
46  && withinValidInputRange(input.ego_vehicle_dynamics, logErrors)
47  && withinValidInputRange(input.object_dynamics, logErrors);
48  if (!inValidInputRange && logErrors)
49  {
50  spdlog::error("withinValidInputRange(::ad::rss::map::RssConstellationConfiguration)>> {} has invalid member",
51  input); // LCOV_EXCL_BR_LINE
52  }
53 
54  return inValidInputRange;
55 }
bool withinValidInputRange(::ad::rss::map::RssConstellationConfiguration const &input, bool const logErrors=true)
check if the given RssConstellationConfiguration is within valid input range
Definition: RssConstellationConfigurationValidInputRange.hpp:39
DataType RssConstellationConfiguration.
Definition: RssConstellationConfiguration.hpp:43
::ad::rss::map::RssRestrictSpeedLimitMode restrict_speed_limit_mode
Definition: RssConstellationConfiguration.hpp:127
::ad::rss::world::RssDynamics ego_vehicle_dynamics
Definition: RssConstellationConfiguration.hpp:132
::ad::rss::world::RssDynamics object_dynamics
Definition: RssConstellationConfiguration.hpp:137
::ad::rss::map::RssConstellationCreationMode constellation_creation_mode
Definition: RssConstellationConfiguration.hpp:121