CARLA
Toggle main menu visibility
Loading...
Searching...
No Matches
LibCarla
source
carla
road
element
RoadInfoLaneRule.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/road/element/RoadInfo.h
"
10
#include <string>
11
12
namespace
carla
{
13
namespace
road
{
14
namespace
element
{
15
16
/// This record defines rules that can be applied to lanes to describe
17
/// additonal properties not covered by the other attributes.
18
class
RoadInfoLaneRule
final :
public
RoadInfo
{
19
public
:
20
21
RoadInfoLaneRule
(
22
double
s,
// start position relative to the position of the preceding
23
// lane section
24
std::string value)
25
:
RoadInfo
(s),
26
_value
(
std
::move(value)) {}
27
28
void
AcceptVisitor
(
RoadInfoVisitor
&v)
override
final
{
29
v.Visit(*
this
);
30
}
31
32
/// Recommended values: No Stopping At Any Time, Disabled Parking, and Car
33
/// Pool.
34
const
std::string &
GetValue
()
const
{
35
return
_value
;
36
}
37
38
private
:
39
40
const
std::string
_value
;
41
};
42
43
}
// namespace element
44
}
// namespace road
45
}
// namespace carla
RoadInfo.h
carla::road::element::RoadInfoLaneRule::GetValue
const std::string & GetValue() const
Recommended values: No Stopping At Any Time, Disabled Parking, and Car Pool.
Definition
RoadInfoLaneRule.h:34
carla::road::element::RoadInfoLaneRule::RoadInfoLaneRule
RoadInfoLaneRule(double s, std::string value)
Definition
RoadInfoLaneRule.h:21
carla::road::element::RoadInfoLaneRule::AcceptVisitor
void AcceptVisitor(RoadInfoVisitor &v) override final
Definition
RoadInfoLaneRule.h:28
carla::road::element::RoadInfoLaneRule::_value
const std::string _value
Definition
RoadInfoLaneRule.h:40
carla::road::element::RoadInfoVisitor
Definition
RoadInfoVisitor.h:33
carla::road::element::RoadInfo::RoadInfo
RoadInfo(double distance=0.0)
Definition
RoadInfo.h:34
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