scenario_simulator_v2 C++ API
dome_image.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__DOME_IMAGE_HPP_
16 #define OPENSCENARIO_INTERPRETER__SYNTAX__DOME_IMAGE_HPP_
17 
21 #include <pugixml.hpp>
22 
24 {
25 inline namespace syntax
26 {
27 /* ---- DomeImage 1.2 --------------------------------------------------------
28  *
29  * <xsd:complexType name="DomeImage">
30  * <xsd:sequence>
31  * <xsd:element name="DomeFile" type="File"/>
32  * </xsd:sequence>
33  * <xsd:attribute name="azimuthOffset" type="Double"/>
34  * </xsd:complexType>
35  *
36  * -------------------------------------------------------------------------- */
37 struct DomeImage
38 {
39  const Double azimuth_offset; // Offset to north / y-axis of world coordinate system
40  // (counter-clockwise). Unit: [rad]. Range: [0..2*PI]. 0 means the
41  // left and right borders of the image are aligned with the y-axis
42  // of the world coordinate system. Default if omitted: 0.
43 
44  const File dome_file; // Filepath to the dome file.
45 
46  DomeImage() = default;
47 
48  explicit DomeImage(const pugi::xml_node &, Scope &);
49 };
50 
51 } // namespace syntax
52 } // namespace openscenario_interpreter
53 
54 #endif // OPENSCENARIO_INTERPRETER__SYNTAX__DOME_IMAGE_HPP_
Definition: scope.hpp:154
Definition: escape_sequence.hpp:22
Definition: dome_image.hpp:38
const Double azimuth_offset
Definition: dome_image.hpp:39
const File dome_file
Definition: dome_image.hpp:44