scenario_simulator_v2 C++ API
road_network.hpp
Go to the documentation of this file.
1 // Copyright 2015 TIER IV, Inc. All rights reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef OPENSCENARIO_INTERPRETER__SYNTAX__ROAD_NETWORK_HPP_
16 #define OPENSCENARIO_INTERPRETER__SYNTAX__ROAD_NETWORK_HPP_
17 
21 #include <pugixml.hpp>
22 
24 {
25 inline namespace syntax
26 {
27 /* ---- RoadNetwork ------------------------------------------------------------
28  *
29  * <xsd:complexType name="RoadNetwork">
30  * <xsd:sequence>
31  * <xsd:element name="LogicFile" type="File" minOccurs="0"/>
32  * <xsd:element name="SceneGraphFile" type="File" minOccurs="0"/>
33  * <xsd:element name="TrafficSignals" minOccurs="0" type="TrafficSignals"/>
34  * </xsd:sequence>
35  * </xsd:complexType>
36  *
37  * -------------------------------------------------------------------------- */
39 {
40  // File path of the road network file (e.g. an ASAM OpenDRIVE file).
42 
43  // File path of a 3D model representing the virtual environment. This may be used for visual representation (rendering).
45 
46  // Name references and description of dynamic behavior for traffic signals defined in the road network file.
48 
49  explicit RoadNetwork(const pugi::xml_node &, Scope &);
50 
51  auto evaluate() -> Object;
52 };
53 } // namespace syntax
54 } // namespace openscenario_interpreter
55 
56 #endif // OPENSCENARIO_INTERPRETER__SYNTAX__ROAD_NETWORK_HPP_
Definition: scope.hpp:154
Definition: traffic_signals.hpp:37
Definition: hypot.hpp:22
Pointer< Expression > Object
Definition: object.hpp:26
Definition: road_network.hpp:39
const File scene_graph_file
Definition: road_network.hpp:44
const File logic_file
Definition: road_network.hpp:41
auto evaluate() -> Object
Definition: road_network.cpp:29
RoadNetwork(const pugi::xml_node &, Scope &)
Definition: road_network.cpp:22
TrafficSignals traffic_signals
Definition: road_network.hpp:47