ad_rss
UnstructuredConstellationStateInformation.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 <iostream>
21 #include <limits>
22 #include <memory>
23 #include <sstream>
24 #include "ad/physics/Angle.hpp"
29 namespace ad {
33 namespace rss {
37 namespace state {
38 
45 {
49  typedef std::shared_ptr<UnstructuredConstellationStateInformation> Ptr;
50 
54  typedef std::shared_ptr<UnstructuredConstellationStateInformation const> ConstPtr;
55 
60 
65 
70 
75 
84  = default;
85 
94 
103  {
107  }
108 
117  {
118  return !operator==(other);
119  }
120 
125 
130 
134  ::ad::physics::Angle considered_drive_away_steering_angle{0.};
135 };
136 
137 } // namespace state
138 } // namespace rss
139 } // namespace ad
140 
144 #ifndef GEN_GUARD_AD_RSS_STATE_UNSTRUCTUREDCONSTELLATIONSTATEINFORMATION
145 #define GEN_GUARD_AD_RSS_STATE_UNSTRUCTUREDCONSTELLATIONSTATEINFORMATION
149 namespace ad {
153 namespace rss {
157 namespace state {
158 
168 inline std::ostream &operator<<(std::ostream &os, UnstructuredConstellationStateInformation const &_value)
169 {
170  os << "UnstructuredConstellationStateInformation(";
171  os << "brake_trajectory_set:";
172  os << _value.brake_trajectory_set;
173  os << ",";
174  os << "continue_forward_trajectory_set:";
175  os << _value.continue_forward_trajectory_set;
176  os << ",";
177  os << "considered_drive_away_steering_angle:";
179  os << ")";
180  return os;
181 }
182 
183 } // namespace state
184 } // namespace rss
185 } // namespace ad
186 
187 namespace std {
192 {
193  stringstream sstream;
194  sstream << value;
195  return sstream.str();
196 }
197 } // namespace std
198 
202 template <> struct fmt::formatter<::ad::rss::state::UnstructuredConstellationStateInformation> : formatter<string_view>
203 {
204  template <typename FormatContext>
205  auto format(::ad::rss::state::UnstructuredConstellationStateInformation const &value, FormatContext &ctx)
206  {
207  return formatter<string_view>::format(std::to_string(value), ctx);
208  }
209 };
210 
211 #endif // GEN_GUARD_AD_RSS_STATE_UNSTRUCTUREDCONSTELLATIONSTATEINFORMATION
std::string to_string(::ad::rss::core::LateralRelativePosition const &value)
overload of the std::to_string for LateralRelativePosition
Definition: LateralRelativePosition.hpp:162
::ad::physics::Distance2DList UnstructuredTrajectorySet
DataType UnstructuredTrajectorySet.
Definition: UnstructuredTrajectorySet.hpp:39
std::ostream & operator<<(std::ostream &os, AccelerationRestriction const &_value)
standard ostream operator
Definition: AccelerationRestriction.hpp:164
namespace ad
Definition: LateralRelativePosition.hpp:28
DataType UnstructuredConstellationStateInformation.
Definition: UnstructuredConstellationStateInformation.hpp:45
UnstructuredConstellationStateInformation(const UnstructuredConstellationStateInformation &other)=default
standard copy constructor
std::shared_ptr< UnstructuredConstellationStateInformation const > ConstPtr
Smart pointer on constant UnstructuredConstellationStateInformation.
Definition: UnstructuredConstellationStateInformation.hpp:54
::ad::rss::state::UnstructuredTrajectorySet brake_trajectory_set
Definition: UnstructuredConstellationStateInformation.hpp:124
~UnstructuredConstellationStateInformation()=default
standard destructor
bool operator==(const UnstructuredConstellationStateInformation &other) const
standard comparison operator
Definition: UnstructuredConstellationStateInformation.hpp:102
::ad::rss::state::UnstructuredTrajectorySet continue_forward_trajectory_set
Definition: UnstructuredConstellationStateInformation.hpp:129
bool operator!=(const UnstructuredConstellationStateInformation &other) const
standard comparison operator
Definition: UnstructuredConstellationStateInformation.hpp:116
UnstructuredConstellationStateInformation & operator=(UnstructuredConstellationStateInformation &&other)=default
standard move operator
::ad::physics::Angle considered_drive_away_steering_angle
Definition: UnstructuredConstellationStateInformation.hpp:134
UnstructuredConstellationStateInformation & operator=(const UnstructuredConstellationStateInformation &other)=default
standard assignment operator
UnstructuredConstellationStateInformation(UnstructuredConstellationStateInformation &&other)=default
standard move constructor
UnstructuredConstellationStateInformation()=default
standard constructor
std::shared_ptr< UnstructuredConstellationStateInformation > Ptr
Smart pointer on UnstructuredConstellationStateInformation.
Definition: UnstructuredConstellationStateInformation.hpp:49