ad_rss
UnstructuredConstellationStateInformationValidInputRange.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>
22 #include "ad/physics/AngleValidInputRange.hpp"
24 #include "spdlog/fmt/ostr.h"
25 #include "spdlog/spdlog.h"
26 
38  bool const logErrors = true)
39 {
40  // check for generic member input ranges
41  bool inValidInputRange = true;
42  inValidInputRange = withinValidInputRange(input.considered_drive_away_steering_angle, logErrors);
43  if (!inValidInputRange && logErrors)
44  {
45  spdlog::error(
46  "withinValidInputRange(::ad::rss::state::UnstructuredConstellationStateInformation)>> {} has invalid member",
47  input); // LCOV_EXCL_BR_LINE
48  }
49 
50  return inValidInputRange;
51 }
bool withinValidInputRange(::ad::rss::state::UnstructuredConstellationStateInformation const &input, bool const logErrors=true)
check if the given UnstructuredConstellationStateInformation is within valid input range
Definition: UnstructuredConstellationStateInformationValidInputRange.hpp:37
DataType UnstructuredConstellationStateInformation.
Definition: UnstructuredConstellationStateInformation.hpp:45
::ad::physics::Angle considered_drive_away_steering_angle
Definition: UnstructuredConstellationStateInformation.hpp:134