ad_rss
generated
include
ad
rss
state
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"
25
#include "
ad/rss/state/UnstructuredTrajectorySet.hpp
"
29
namespace
ad
{
33
namespace
rss {
37
namespace
state {
38
44
struct
UnstructuredConstellationStateInformation
45
{
49
typedef
std::shared_ptr<UnstructuredConstellationStateInformation>
Ptr
;
50
54
typedef
std::shared_ptr<UnstructuredConstellationStateInformation const>
ConstPtr
;
55
59
UnstructuredConstellationStateInformation
() =
default
;
60
64
~UnstructuredConstellationStateInformation
() =
default
;
65
69
UnstructuredConstellationStateInformation
(
const
UnstructuredConstellationStateInformation
&other) =
default
;
70
74
UnstructuredConstellationStateInformation
(
UnstructuredConstellationStateInformation
&&other) =
default
;
75
83
UnstructuredConstellationStateInformation
&
operator=
(
const
UnstructuredConstellationStateInformation
&other)
84
=
default
;
85
93
UnstructuredConstellationStateInformation
&
operator=
(
UnstructuredConstellationStateInformation
&&other) =
default
;
94
102
bool
operator==
(
const
UnstructuredConstellationStateInformation
&other)
const
103
{
104
return
(
brake_trajectory_set
== other.
brake_trajectory_set
)
105
&& (
continue_forward_trajectory_set
== other.
continue_forward_trajectory_set
)
106
&& (
considered_drive_away_steering_angle
== other.
considered_drive_away_steering_angle
);
107
}
108
116
bool
operator!=
(
const
UnstructuredConstellationStateInformation
&other)
const
117
{
118
return
!
operator==
(other);
119
}
120
124
::ad::rss::state::UnstructuredTrajectorySet
brake_trajectory_set
;
125
129
::ad::rss::state::UnstructuredTrajectorySet
continue_forward_trajectory_set
;
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:"
;
178
os << _value.
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 {
191
inline
std::string
to_string
(::
ad::rss::state::UnstructuredConstellationStateInformation
const
&value)
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::to_string
std::string to_string(::ad::rss::core::LateralRelativePosition const &value)
overload of the std::to_string for LateralRelativePosition
Definition:
LateralRelativePosition.hpp:162
UnstructuredTrajectorySet.hpp
ad::rss::state::UnstructuredTrajectorySet
::ad::physics::Distance2DList UnstructuredTrajectorySet
DataType UnstructuredTrajectorySet.
Definition:
UnstructuredTrajectorySet.hpp:39
ad::rss::state::operator<<
std::ostream & operator<<(std::ostream &os, AccelerationRestriction const &_value)
standard ostream operator
Definition:
AccelerationRestriction.hpp:164
ad
namespace ad
Definition:
LateralRelativePosition.hpp:28
ad::rss::state::UnstructuredConstellationStateInformation
DataType UnstructuredConstellationStateInformation.
Definition:
UnstructuredConstellationStateInformation.hpp:45
ad::rss::state::UnstructuredConstellationStateInformation::UnstructuredConstellationStateInformation
UnstructuredConstellationStateInformation(const UnstructuredConstellationStateInformation &other)=default
standard copy constructor
ad::rss::state::UnstructuredConstellationStateInformation::ConstPtr
std::shared_ptr< UnstructuredConstellationStateInformation const > ConstPtr
Smart pointer on constant UnstructuredConstellationStateInformation.
Definition:
UnstructuredConstellationStateInformation.hpp:54
ad::rss::state::UnstructuredConstellationStateInformation::brake_trajectory_set
::ad::rss::state::UnstructuredTrajectorySet brake_trajectory_set
Definition:
UnstructuredConstellationStateInformation.hpp:124
ad::rss::state::UnstructuredConstellationStateInformation::~UnstructuredConstellationStateInformation
~UnstructuredConstellationStateInformation()=default
standard destructor
ad::rss::state::UnstructuredConstellationStateInformation::operator==
bool operator==(const UnstructuredConstellationStateInformation &other) const
standard comparison operator
Definition:
UnstructuredConstellationStateInformation.hpp:102
ad::rss::state::UnstructuredConstellationStateInformation::continue_forward_trajectory_set
::ad::rss::state::UnstructuredTrajectorySet continue_forward_trajectory_set
Definition:
UnstructuredConstellationStateInformation.hpp:129
ad::rss::state::UnstructuredConstellationStateInformation::operator!=
bool operator!=(const UnstructuredConstellationStateInformation &other) const
standard comparison operator
Definition:
UnstructuredConstellationStateInformation.hpp:116
ad::rss::state::UnstructuredConstellationStateInformation::operator=
UnstructuredConstellationStateInformation & operator=(UnstructuredConstellationStateInformation &&other)=default
standard move operator
ad::rss::state::UnstructuredConstellationStateInformation::considered_drive_away_steering_angle
::ad::physics::Angle considered_drive_away_steering_angle
Definition:
UnstructuredConstellationStateInformation.hpp:134
ad::rss::state::UnstructuredConstellationStateInformation::operator=
UnstructuredConstellationStateInformation & operator=(const UnstructuredConstellationStateInformation &other)=default
standard assignment operator
ad::rss::state::UnstructuredConstellationStateInformation::UnstructuredConstellationStateInformation
UnstructuredConstellationStateInformation(UnstructuredConstellationStateInformation &&other)=default
standard move constructor
ad::rss::state::UnstructuredConstellationStateInformation::UnstructuredConstellationStateInformation
UnstructuredConstellationStateInformation()=default
standard constructor
ad::rss::state::UnstructuredConstellationStateInformation::Ptr
std::shared_ptr< UnstructuredConstellationStateInformation > Ptr
Smart pointer on UnstructuredConstellationStateInformation.
Definition:
UnstructuredConstellationStateInformation.hpp:49
Generated by
1.9.1