ad_rss
generated
include
ad
rss
state
RssStateSnapshot.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/rss/state/RssStateVector.hpp
"
25
#include "
ad/rss/state/UnstructuredSceneStateInformation.hpp
"
26
#include "
ad/rss/world/RssDynamics.hpp
"
27
#include "
ad/rss/world/TimeIndex.hpp
"
31
namespace
ad
{
35
namespace
rss {
39
namespace
state {
40
46
struct
RssStateSnapshot
47
{
51
typedef
std::shared_ptr<RssStateSnapshot>
Ptr
;
52
56
typedef
std::shared_ptr<RssStateSnapshot const>
ConstPtr
;
57
61
RssStateSnapshot
() =
default
;
62
66
~RssStateSnapshot
() =
default
;
67
71
RssStateSnapshot
(
const
RssStateSnapshot
&other) =
default
;
72
76
RssStateSnapshot
(
RssStateSnapshot
&&other) =
default
;
77
85
RssStateSnapshot
&
operator=
(
const
RssStateSnapshot
&other) =
default
;
86
94
RssStateSnapshot
&
operator=
(
RssStateSnapshot
&&other) =
default
;
95
103
bool
operator==
(
const
RssStateSnapshot
&other)
const
104
{
105
return
(
timeIndex
== other.
timeIndex
) && (
defaultEgoVehicleRssDynamics
== other.
defaultEgoVehicleRssDynamics
)
106
&& (
individualResponses
== other.
individualResponses
)
107
&& (
unstructuredSceneEgoInformation
== other.
unstructuredSceneEgoInformation
);
108
}
109
117
bool
operator!=
(
const
RssStateSnapshot
&other)
const
118
{
119
return
!
operator==
(other);
120
}
121
127
::ad::rss::world::TimeIndex
timeIndex
{0u};
128
135
::ad::rss::world::RssDynamics
defaultEgoVehicleRssDynamics
;
136
140
::ad::rss::state::RssStateVector
individualResponses
;
141
145
::ad::rss::state::UnstructuredSceneStateInformation
unstructuredSceneEgoInformation
;
146
};
147
148
}
// namespace state
149
}
// namespace rss
150
}
// namespace ad
151
155
#ifndef GEN_GUARD_AD_RSS_STATE_RSSSTATESNAPSHOT
156
#define GEN_GUARD_AD_RSS_STATE_RSSSTATESNAPSHOT
157
160
namespace
ad
{
164
namespace
rss {
168
namespace
state {
169
179
inline
std::ostream &
operator<<
(std::ostream &os,
RssStateSnapshot
const
&_value)
180
{
181
os <<
"RssStateSnapshot("
;
182
os <<
"timeIndex:"
;
183
os << _value.
timeIndex
;
184
os <<
","
;
185
os <<
"defaultEgoVehicleRssDynamics:"
;
186
os << _value.
defaultEgoVehicleRssDynamics
;
187
os <<
","
;
188
os <<
"individualResponses:"
;
189
os << _value.
individualResponses
;
190
os <<
","
;
191
os <<
"unstructuredSceneEgoInformation:"
;
192
os << _value.
unstructuredSceneEgoInformation
;
193
os <<
")"
;
194
return
os;
195
}
196
197
}
// namespace state
198
}
// namespace rss
199
}
// namespace ad
200
201
namespace
std {
205
inline
std::string
to_string
(::
ad::rss::state::RssStateSnapshot
const
&value)
206
{
207
stringstream sstream;
208
sstream << value;
209
return
sstream.str();
210
}
211
}
// namespace std
212
#endif // GEN_GUARD_AD_RSS_STATE_RSSSTATESNAPSHOT
ad
namespace ad
Definition:
LateralRelativePosition.hpp:26
ad::rss::state::RssStateSnapshot::operator!=
bool operator!=(const RssStateSnapshot &other) const
standard comparison operator
Definition:
RssStateSnapshot.hpp:117
ad::rss::world::TimeIndex
uint64_t TimeIndex
DataType TimeIndex.
Definition:
TimeIndex.hpp:39
ad::rss::state::RssStateSnapshot::unstructuredSceneEgoInformation
::ad::rss::state::UnstructuredSceneStateInformation unstructuredSceneEgoInformation
Definition:
RssStateSnapshot.hpp:145
ad::rss::state::RssStateVector
std::vector<::ad::rss::state::RssState > RssStateVector
DataType RssStateVector.
Definition:
RssStateVector.hpp:42
ad::rss::state::RssStateSnapshot::operator=
RssStateSnapshot & operator=(const RssStateSnapshot &other)=default
standard assignment operator
ad::rss::state::RssStateSnapshot::ConstPtr
std::shared_ptr< RssStateSnapshot const > ConstPtr
Smart pointer on constant RssStateSnapshot.
Definition:
RssStateSnapshot.hpp:56
ad::rss::state::RssStateSnapshot::RssStateSnapshot
RssStateSnapshot()=default
standard constructor
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::state::RssStateSnapshot::individualResponses
::ad::rss::state::RssStateVector individualResponses
Definition:
RssStateSnapshot.hpp:140
ad::rss::state::RssStateSnapshot::~RssStateSnapshot
~RssStateSnapshot()=default
standard destructor
ad::rss::world::RssDynamics
DataType RssDynamics.
Definition:
RssDynamics.hpp:50
ad::rss::state::RssStateSnapshot::defaultEgoVehicleRssDynamics
::ad::rss::world::RssDynamics defaultEgoVehicleRssDynamics
Definition:
RssStateSnapshot.hpp:135
UnstructuredSceneStateInformation.hpp
ad::rss::state::UnstructuredSceneStateInformation
DataType UnstructuredSceneStateInformation.
Definition:
UnstructuredSceneStateInformation.hpp:40
ad::rss::state::RssStateSnapshot::timeIndex
::ad::rss::world::TimeIndex timeIndex
Definition:
RssStateSnapshot.hpp:127
TimeIndex.hpp
ad::rss::state::operator<<
std::ostream & operator<<(std::ostream &os, AccelerationRestriction const &_value)
standard ostream operator
Definition:
AccelerationRestriction.hpp:164
ad::rss::state::RssStateSnapshot::operator==
bool operator==(const RssStateSnapshot &other) const
standard comparison operator
Definition:
RssStateSnapshot.hpp:103
ad::rss::state::RssStateSnapshot
DataType RssStateSnapshot.
Definition:
RssStateSnapshot.hpp:46
RssStateVector.hpp
RssDynamics.hpp
ad::rss::state::RssStateSnapshot::Ptr
std::shared_ptr< RssStateSnapshot > Ptr
Smart pointer on RssStateSnapshot.
Definition:
RssStateSnapshot.hpp:51
Generated by
1.8.17