CARLA
RoadInfoLaneRule.h
Go to the documentation of this file.
1 // Copyright (c) 2017 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 
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 
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
This record defines rules that can be applied to lanes to describe additonal properties not covered b...
This file contains definitions of common data structures used in traffic manager. ...
Definition: Carla.cpp:133
const std::string & GetValue() const
Recommended values: No Stopping At Any Time, Disabled Parking, and Car Pool.
RoadInfoLaneRule(double s, std::string value)
void AcceptVisitor(RoadInfoVisitor &v) override final