CARLA
 
载入中...
搜索中...
未找到
RoadInfoLaneOffset.h
浏览该文件的文档.
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
11
12namespace carla {
13namespace road {
14namespace element {
15
16 /// The lane offset record defines a lateral shift of the lane reference
17 /// line(which is usually identical to the road reference line). This may be
18 /// used for an easy implementation of a (local)lateralshift of the lanes
19 /// relative to the road’s referenceline. Especially the modeling of
20 /// inner-city layouts or "2+1" cross-country road layouts can be facilitated
21 /// considerably by this feature.
22 class RoadInfoLaneOffset final : public RoadInfo {
23 public:
24
26 double s,
27 double a,
28 double b,
29 double c,
30 double d)
31 : RoadInfo(s),
32 _offset(a, b, c, d, s) {}
33
35 v.Visit(*this);
36 }
37
39 return _offset;
40 }
41
42 private:
43
45 };
46
47} // namespace element
48} // namespace road
49} // namespace carla
Describes a Cubic Polynomial so: f(x) = a + bx + cx^2 + dx^3
The lane offset record defines a lateral shift of the lane reference line(which is usually identical ...
RoadInfoLaneOffset(double s, double a, double b, double c, double d)
const geom::CubicPolynomial & GetPolynomial() const
void AcceptVisitor(RoadInfoVisitor &v) final
This file contains definitions of common data structures used in traffic manager.
Definition Carla.cpp:133