CARLA
Toggle main menu visibility
Loading...
Searching...
No Matches
LibCarla
source
carla
road
element
RoadInfoGeometry.h
Go to the documentation of this file.
1
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma
2
// de Barcelona (UAB).
3
//
4
// This work is licensed under the terms of the MIT license.
5
// For a copy, see <https://opensource.org/licenses/MIT>.
6
7
#pragma once
8
9
#include "
carla/Debug.h
"
10
#include "
carla/road/element/Geometry.h
"
11
#include "
carla/road/element/RoadInfo.h
"
12
13
namespace
carla
{
14
namespace
road
{
15
namespace
element
{
16
17
class
RoadInfoGeometry
final :
public
RoadInfo
{
18
public
:
19
20
RoadInfoGeometry
(
double
s, std::unique_ptr<Geometry> &&
geom
)
21
:
RoadInfo
(s),
22
_geom
(
std
::move(
geom
)) {
23
DEBUG_ASSERT
(
_geom
!=
nullptr
);
24
}
25
26
void
AcceptVisitor
(
RoadInfoVisitor
&v)
final
{
27
v.Visit(*
this
);
28
}
29
30
const
Geometry
&
GetGeometry
()
const
{
31
return
*
_geom
;
32
}
33
34
private
:
35
36
const
std::unique_ptr<const Geometry>
_geom
;
37
};
38
39
}
// namespace element
40
}
// namespace road
41
}
// namespace carla
Debug.h
DEBUG_ASSERT
#define DEBUG_ASSERT(predicate)
Definition
Debug.h:66
RoadInfo.h
Geometry.h
carla::road::element::Geometry
Definition
carla/road/element/Geometry.h:49
carla::road::element::RoadInfoGeometry::RoadInfoGeometry
RoadInfoGeometry(double s, std::unique_ptr< Geometry > &&geom)
Definition
RoadInfoGeometry.h:20
carla::road::element::RoadInfoGeometry::GetGeometry
const Geometry & GetGeometry() const
Definition
RoadInfoGeometry.h:30
carla::road::element::RoadInfoGeometry::AcceptVisitor
void AcceptVisitor(RoadInfoVisitor &v) final
Definition
RoadInfoGeometry.h:26
carla::road::element::RoadInfoGeometry::_geom
const std::unique_ptr< const Geometry > _geom
Definition
RoadInfoGeometry.h:36
carla::road::element::RoadInfoVisitor
Definition
RoadInfoVisitor.h:33
carla::road::element::RoadInfo::RoadInfo
RoadInfo(double distance=0.0)
Definition
RoadInfo.h:34
carla::geom
Definition
Misc.h:24
carla::road::element
Definition
SignComponent.h:26
carla::road
Definition
SignComponent.h:23
carla
This file contains definitions of common data structures used in traffic manager.
Definition
SignComponent.h:21
std
Definition
CarlaRecorderCollision.h:31
Generated by
1.18.0