CARLA
 
载入中...
搜索中...
未找到
LaneCrossingCalculator.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
9#include "carla/road/element/LaneMarking.h" // 包含LaneMarking类的定义,这个类包含了车道标记的相关信息。
10
11#include <vector> // 包含标准模板库中的vector容器,这是一个动态数组,用于存储可变长度的元素序列。
12
13namespace carla {
14namespace geom { class Location; } // Location类用于表示二维或三维空间中的一个点。
15namespace road {
16
17 class Map; // Map类可能用于表示道路的地图信息,包括道路、车道、交通标志等。
18
19namespace element { // element命名空间用于封装与道路元素相关的类和函数。
20
21 class LaneCrossingCalculator { // LaneCrossingCalculator类是一个用于计算车道穿越的静态工具类。
22 public:
23
24 static std::vector<LaneMarking> Calculate( // 静态成员函数,用于计算从起点到终点的车道标记
25 const Map &map, // 地图对象的引用
26 const geom::Location &origin, // 起点位置
27 const geom::Location &destination); // 终点位置
28 };
29
30} // namespace element
31} // namespace road
32} // namespace carla
地图类的前向声明,用于在LaneInvasionSensor类中可能的引用。
static std::vector< LaneMarking > Calculate(const Map &map, const geom::Location &origin, const geom::Location &destination)
geom::Location Location
CARLA模拟器的主命名空间。
Definition Carla.cpp:139