ad_rss
generated
include
ad
rss
world
LateralRssAccelerationValues.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
43
struct
LateralRssAccelerationValues
44
{
48
typedef
std::shared_ptr<LateralRssAccelerationValues>
Ptr
;
49
53
typedef
std::shared_ptr<LateralRssAccelerationValues const>
ConstPtr
;
54
58
LateralRssAccelerationValues
() =
default
;
59
63
~LateralRssAccelerationValues
() =
default
;
64
68
LateralRssAccelerationValues
(
const
LateralRssAccelerationValues
&other) =
default
;
69
73
LateralRssAccelerationValues
(
LateralRssAccelerationValues
&&other) =
default
;
74
82
LateralRssAccelerationValues
&
operator=
(
const
LateralRssAccelerationValues
&other) =
default
;
83
91
LateralRssAccelerationValues
&
operator=
(
LateralRssAccelerationValues
&&other) =
default
;
92
100
bool
operator==
(
const
LateralRssAccelerationValues
&other)
const
101
{
102
return
(
accelMax
== other.
accelMax
) && (
brakeMin
== other.
brakeMin
);
103
}
104
112
bool
operator!=
(
const
LateralRssAccelerationValues
&other)
const
113
{
114
return
!
operator==
(other);
115
}
116
120
::ad::physics::Acceleration
accelMax
{0.0};
121
125
::ad::physics::Acceleration
brakeMin
{0.0};
126
};
127
128
}
// namespace world
129
}
// namespace rss
130
}
// namespace ad
131
135
#ifndef GEN_GUARD_AD_RSS_WORLD_LATERALRSSACCELERATIONVALUES
136
#define GEN_GUARD_AD_RSS_WORLD_LATERALRSSACCELERATIONVALUES
137
140
namespace
ad
{
144
namespace
rss {
148
namespace
world {
149
159
inline
std::ostream &
operator<<
(std::ostream &os,
LateralRssAccelerationValues
const
&_value)
160
{
161
os <<
"LateralRssAccelerationValues("
;
162
os <<
"accelMax:"
;
163
os << _value.
accelMax
;
164
os <<
","
;
165
os <<
"brakeMin:"
;
166
os << _value.
brakeMin
;
167
os <<
")"
;
168
return
os;
169
}
170
171
}
// namespace world
172
}
// namespace rss
173
}
// namespace ad
174
175
namespace
std {
179
inline
std::string
to_string
(::
ad::rss::world::LateralRssAccelerationValues
const
&value)
180
{
181
stringstream sstream;
182
sstream << value;
183
return
sstream.str();
184
}
185
}
// namespace std
186
#endif // GEN_GUARD_AD_RSS_WORLD_LATERALRSSACCELERATIONVALUES
ad
namespace ad
Definition:
LateralRelativePosition.hpp:26
ad::rss::world::LateralRssAccelerationValues::ConstPtr
std::shared_ptr< LateralRssAccelerationValues const > ConstPtr
Smart pointer on constant LateralRssAccelerationValues.
Definition:
LateralRssAccelerationValues.hpp:53
ad::rss::world::LateralRssAccelerationValues::operator=
LateralRssAccelerationValues & operator=(const LateralRssAccelerationValues &other)=default
standard assignment operator
ad::rss::world::LateralRssAccelerationValues::~LateralRssAccelerationValues
~LateralRssAccelerationValues()=default
standard destructor
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::LateralRssAccelerationValues::accelMax
::ad::physics::Acceleration accelMax
Definition:
LateralRssAccelerationValues.hpp:120
ad::rss::world::LateralRssAccelerationValues::LateralRssAccelerationValues
LateralRssAccelerationValues()=default
standard constructor
ad::rss::world::LateralRssAccelerationValues
DataType LateralRssAccelerationValues.
Definition:
LateralRssAccelerationValues.hpp:43
ad::rss::world::LateralRssAccelerationValues::operator!=
bool operator!=(const LateralRssAccelerationValues &other) const
standard comparison operator
Definition:
LateralRssAccelerationValues.hpp:112
ad::rss::world::LateralRssAccelerationValues::brakeMin
::ad::physics::Acceleration brakeMin
Definition:
LateralRssAccelerationValues.hpp:125
ad::rss::world::LateralRssAccelerationValues::Ptr
std::shared_ptr< LateralRssAccelerationValues > Ptr
Smart pointer on LateralRssAccelerationValues.
Definition:
LateralRssAccelerationValues.hpp:48
ad::rss::world::LateralRssAccelerationValues::operator==
bool operator==(const LateralRssAccelerationValues &other) const
standard comparison operator
Definition:
LateralRssAccelerationValues.hpp:100
Generated by
1.8.17