CARLA
SignalType.h
Go to the documentation of this file.
1 // Copyright (c) 2020 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 <string>
10 
11 namespace carla {
12 namespace road {
13 
14  /// Using OpenDRIVE 1.5M (6.10 Country Codes)
15  ///
16  class SignalType {
17  public:
18  static const std::string Danger(); // = "101" // danger types from 101 to 151
19  static const std::string LanesMerging(); // = "121";
20  static const std::string CautionPedestrian(); // = "133";
21  static const std::string CautionBicycle(); // = "138";
22  static const std::string LevelCrossing(); // = "150";
23  static const std::string YieldSign(); // = "205";
24  static const std::string StopSign(); // = "206";
25  static const std::string MandatoryTurnDirection(); // = "209" // Left, right or forward
26  static const std::string MandatoryLeftRightDirection(); // = "211";
27  static const std::string TwoChoiceTurnDirection(); // = "214" // Forward-left, forward-right, left-right
28  static const std::string Roundabout(); // = "215";
29  static const std::string PassRightLeft(); // = "222";
30  static const std::string AccessForbidden(); // = "250";
31  static const std::string AccessForbiddenMotorvehicles(); // = "251";
32  static const std::string AccessForbiddenTrucks(); // = "253";
33  static const std::string AccessForbiddenBicycle(); // = "254";
34  static const std::string AccessForbiddenWeight(); // = "263";
35  static const std::string AccessForbiddenWidth(); // = "264";
36  static const std::string AccessForbiddenHeight(); // = "265";
37  static const std::string AccessForbiddenWrongDirection(); // = "267";
38  static const std::string ForbiddenUTurn(); // = "272";
39  static const std::string MaximumSpeed(); // = "274";
40  static const std::string ForbiddenOvertakingMotorvehicles(); // = "276";
41  static const std::string ForbiddenOvertakingTrucks(); // = "277";
42  static const std::string AbsoluteNoStop(); // = "283";
43  static const std::string RestrictedStop(); // = "286";
44  static const std::string HasWayNextIntersection(); // = "301";
45  static const std::string PriorityWay(); // = "306";
46  static const std::string PriorityWayEnd(); // = "307";
47  static const std::string CityBegin(); // = "310";
48  static const std::string CityEnd(); // = "311";
49  static const std::string Highway(); // = "330";
50  static const std::string DeadEnd(); // = "357";
51  static const std::string RecomendedSpeed(); // = "380";
52  static const std::string RecomendedSpeedEnd(); // = "381";
53 
54  static bool IsTrafficLight(const std::string &type);
55  };
56 
57 } // road
58 } // carla
static const std::string AccessForbiddenWidth()
Definition: SignalType.cpp:66
static const std::string DeadEnd()
Definition: SignalType.cpp:111
static const std::string TwoChoiceTurnDirection()
Definition: SignalType.cpp:42
static const std::string RestrictedStop()
Definition: SignalType.cpp:90
static const std::string PriorityWay()
Definition: SignalType.cpp:96
static const std::string Danger()
Definition: SignalType.cpp:15
static const std::string CautionPedestrian()
Definition: SignalType.cpp:21
This file contains definitions of common data structures used in traffic manager. ...
Definition: Carla.cpp:133
static const std::string RecomendedSpeedEnd()
Definition: SignalType.cpp:117
static const std::string CityBegin()
Definition: SignalType.cpp:102
static const std::string CautionBicycle()
Definition: SignalType.cpp:24
static const std::string AccessForbidden()
Definition: SignalType.cpp:51
static const std::string AccessForbiddenBicycle()
Definition: SignalType.cpp:60
static const std::string AbsoluteNoStop()
Definition: SignalType.cpp:87
static const std::string LevelCrossing()
Definition: SignalType.cpp:27
static const std::string LanesMerging()
Definition: SignalType.cpp:18
static const std::string MaximumSpeed()
Definition: SignalType.cpp:78
static const std::string YieldSign()
Definition: SignalType.cpp:30
static const std::string StopSign()
Definition: SignalType.cpp:33
static const std::string Highway()
Definition: SignalType.cpp:108
static const std::string AccessForbiddenWrongDirection()
Definition: SignalType.cpp:72
Using OpenDRIVE 1.5M (6.10 Country Codes)
Definition: SignalType.h:16
static const std::string AccessForbiddenHeight()
Definition: SignalType.cpp:69
static const std::string PassRightLeft()
Definition: SignalType.cpp:48
static const std::string HasWayNextIntersection()
Definition: SignalType.cpp:93
static const std::string MandatoryLeftRightDirection()
Definition: SignalType.cpp:39
static const std::string AccessForbiddenMotorvehicles()
Definition: SignalType.cpp:54
static const std::string ForbiddenUTurn()
Definition: SignalType.cpp:75
static const std::string AccessForbiddenTrucks()
Definition: SignalType.cpp:57
static bool IsTrafficLight(const std::string &type)
Definition: SignalType.cpp:121
static const std::string RecomendedSpeed()
Definition: SignalType.cpp:114
static const std::string PriorityWayEnd()
Definition: SignalType.cpp:99
static const std::string AccessForbiddenWeight()
Definition: SignalType.cpp:63
static const std::string CityEnd()
Definition: SignalType.cpp:105
static const std::string ForbiddenOvertakingMotorvehicles()
Definition: SignalType.cpp:81
static const std::string MandatoryTurnDirection()
Definition: SignalType.cpp:36
static const std::string ForbiddenOvertakingTrucks()
Definition: SignalType.cpp:84
static const std::string Roundabout()
Definition: SignalType.cpp:45