ad_rss
LongitudinalRssAccelerationValues.hpp
Go to the documentation of this file.
1 /*
2  * ----------------- BEGIN LICENSE BLOCK ---------------------------------
3  *
4  * Copyright (C) 2018-2020 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/Acceleration.hpp"
28 namespace ad {
32 namespace rss {
36 namespace world {
37 
44 {
48  typedef std::shared_ptr<LongitudinalRssAccelerationValues> Ptr;
49 
53  typedef std::shared_ptr<LongitudinalRssAccelerationValues const> ConstPtr;
54 
59 
64 
69 
74 
83 
92 
101  {
102  return (accelMax == other.accelMax) && (brakeMax == other.brakeMax) && (brakeMin == other.brakeMin)
103  && (brakeMinCorrect == other.brakeMinCorrect);
104  }
105 
114  {
115  return !operator==(other);
116  }
117 
121  ::ad::physics::Acceleration accelMax{0.0};
122 
127  ::ad::physics::Acceleration brakeMax{0.0};
128 
133  ::ad::physics::Acceleration brakeMin{0.0};
134 
139  ::ad::physics::Acceleration brakeMinCorrect{0.0};
140 };
141 
142 } // namespace world
143 } // namespace rss
144 } // namespace ad
145 
149 #ifndef GEN_GUARD_AD_RSS_WORLD_LONGITUDINALRSSACCELERATIONVALUES
150 #define GEN_GUARD_AD_RSS_WORLD_LONGITUDINALRSSACCELERATIONVALUES
151 
154 namespace ad {
158 namespace rss {
162 namespace world {
163 
173 inline std::ostream &operator<<(std::ostream &os, LongitudinalRssAccelerationValues const &_value)
174 {
175  os << "LongitudinalRssAccelerationValues(";
176  os << "accelMax:";
177  os << _value.accelMax;
178  os << ",";
179  os << "brakeMax:";
180  os << _value.brakeMax;
181  os << ",";
182  os << "brakeMin:";
183  os << _value.brakeMin;
184  os << ",";
185  os << "brakeMinCorrect:";
186  os << _value.brakeMinCorrect;
187  os << ")";
188  return os;
189 }
190 
191 } // namespace world
192 } // namespace rss
193 } // namespace ad
194 
195 namespace std {
200 {
201  stringstream sstream;
202  sstream << value;
203  return sstream.str();
204 }
205 } // namespace std
206 #endif // GEN_GUARD_AD_RSS_WORLD_LONGITUDINALRSSACCELERATIONVALUES
ad::rss::world::LongitudinalRssAccelerationValues::brakeMin
::ad::physics::Acceleration brakeMin
Definition: LongitudinalRssAccelerationValues.hpp:133
ad
namespace ad
Definition: LateralRelativePosition.hpp:26
ad::rss::world::LongitudinalRssAccelerationValues::operator=
LongitudinalRssAccelerationValues & operator=(const LongitudinalRssAccelerationValues &other)=default
standard assignment operator
ad::rss::world::LongitudinalRssAccelerationValues::brakeMinCorrect
::ad::physics::Acceleration brakeMinCorrect
Definition: LongitudinalRssAccelerationValues.hpp:139
ad::rss::world::LongitudinalRssAccelerationValues::accelMax
::ad::physics::Acceleration accelMax
Definition: LongitudinalRssAccelerationValues.hpp:121
ad::rss::world::LongitudinalRssAccelerationValues::brakeMax
::ad::physics::Acceleration brakeMax
Definition: LongitudinalRssAccelerationValues.hpp:127
std::to_string
std::string to_string(::ad::rss::situation::LateralRelativePosition const &value)
overload of the std::to_string for LateralRelativePosition
Definition: LateralRelativePosition.hpp:160
ad::rss::world::operator<<
std::ostream & operator<<(std::ostream &os, LaneDrivingDirection const &value)
standard ostream operator
Definition: LaneDrivingDirection.hpp:132
ad::rss::world::LongitudinalRssAccelerationValues
DataType LongitudinalRssAccelerationValues.
Definition: LongitudinalRssAccelerationValues.hpp:43
ad::rss::world::LongitudinalRssAccelerationValues::operator!=
bool operator!=(const LongitudinalRssAccelerationValues &other) const
standard comparison operator
Definition: LongitudinalRssAccelerationValues.hpp:113
ad::rss::world::LongitudinalRssAccelerationValues::ConstPtr
std::shared_ptr< LongitudinalRssAccelerationValues const > ConstPtr
Smart pointer on constant LongitudinalRssAccelerationValues.
Definition: LongitudinalRssAccelerationValues.hpp:53
ad::rss::world::LongitudinalRssAccelerationValues::operator==
bool operator==(const LongitudinalRssAccelerationValues &other) const
standard comparison operator
Definition: LongitudinalRssAccelerationValues.hpp:100
ad::rss::world::LongitudinalRssAccelerationValues::Ptr
std::shared_ptr< LongitudinalRssAccelerationValues > Ptr
Smart pointer on LongitudinalRssAccelerationValues.
Definition: LongitudinalRssAccelerationValues.hpp:48
ad::rss::world::LongitudinalRssAccelerationValues::~LongitudinalRssAccelerationValues
~LongitudinalRssAccelerationValues()=default
standard destructor
ad::rss::world::LongitudinalRssAccelerationValues::LongitudinalRssAccelerationValues
LongitudinalRssAccelerationValues()=default
standard constructor