scenario_simulator_v2 C++ API
pedestrian.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__PEDESTRIAN_HPP_
16 #define OPENSCENARIO_INTERPRETER__SYNTAX__PEDESTRIAN_HPP_
17 
24 #include <pugixml.hpp>
25 #include <traffic_simulator_msgs/msg/pedestrian_parameters.hpp>
26 
28 {
29 inline namespace syntax
30 {
31 /* ---- Pedestrian -------------------------------------------------------------
32  *
33  * <xsd:complexType name="Pedestrian">
34  * <xsd:all>
35  * <xsd:element name="ParameterDeclarations" type="ParameterDeclarations" minOccurs="0"/>
36  * <xsd:element name="BoundingBox" type="BoundingBox"/>
37  * <xsd:element name="Properties" type="Properties"/>
38  * </xsd:all>
39  * <xsd:attribute name="model" type="String" use="required"/>
40  * <xsd:attribute name="model3d" type="String" />
41  * <xsd:attribute name="mass" type="Double" use="required"/>
42  * <xsd:attribute name="name" type="String" use="required"/>
43  * <xsd:attribute name="pedestrianCategory" type="PedestrianCategory" use="required"/>
44  * </xsd:complexType>
45  *
46  * -------------------------------------------------------------------------- */
47 struct Pedestrian : public Scope
48 {
50 
51  const Double mass;
52 
53  const String model;
54 
55  const String model3d;
56 
58 
60 
62 
64 
65  explicit Pedestrian(const pugi::xml_node &, Scope &);
66 
67  explicit operator traffic_simulator_msgs::msg::PedestrianParameters() const;
68 };
69 } // namespace syntax
70 } // namespace openscenario_interpreter
71 
72 #endif // OPENSCENARIO_INTERPRETER__SYNTAX__PEDESTRIAN_HPP_
Definition: scope.hpp:154
std::string String
Definition: string.hpp:24
Definition: hypot.hpp:22
Definition: bounding_box.hpp:39
Definition: object_type.hpp:44
@ pedestrian
Definition: object_type.hpp:50
Definition: parameter_declarations.hpp:36
Definition: pedestrian_category.hpp:44
Definition: pedestrian.hpp:48
const Double mass
Definition: pedestrian.hpp:51
const ParameterDeclarations parameter_declarations
Definition: pedestrian.hpp:59
const Properties properties
Definition: pedestrian.hpp:63
const BoundingBox bounding_box
Definition: pedestrian.hpp:61
const String model3d
Definition: pedestrian.hpp:55
static constexpr ObjectType object_type
Definition: pedestrian.hpp:49
const PedestrianCategory pedestrian_category
Definition: pedestrian.hpp:57
const String model
Definition: pedestrian.hpp:53
Pedestrian(const pugi::xml_node &, Scope &)
Definition: pedestrian.cpp:23