CARLA
 
载入中...
搜索中...
未找到
GeometryParser.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/// @brief 一个用于处理XML文档的命名空间
9namespace pugi {
10 class xml_document;/// @brief 表示一个XML文档的类
11} // namespace pugi
12/// @brief Carla仿真器的相关功能实现的命名空间
13namespace carla {
14/// @brief 涉及道路建模和构建的命名空间
15namespace road {
16 class MapBuilder;/// @brief 用于构建道路地图的类
17} // namespace road
18/// @brief 涉及OpenDrive文件的解析器类的命名空间
19namespace opendrive {
20namespace parser {
21/// @brief 用于解析OpenDrive文件中的几何信息的解析器类
23 public:
24/// @brief 解析XML文档中的几何信息并构建道路地图
25/// @param xml [const pugi::xml_document &] 要解析的XML文档
26/// @param map_builder [carla::road::MapBuilder &] 用于构建道路地图的构建器对象
27 static void Parse(
28 const pugi::xml_document &xml,
29 carla::road::MapBuilder &map_builder);
30
31 };
32
33} // namespace parser
34} // namespace opendrive
35} // namespace carla
用于解析OpenDrive文件中的几何信息的解析器类
static void Parse(const pugi::xml_document &xml, carla::road::MapBuilder &map_builder)
解析XML文档中的几何信息并构建道路地图
CARLA模拟器的主命名空间。
Definition Carla.cpp:139
pugi XMLռ