scenario_simulator_v2 C++ API
follow_trajectory_action.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__FOLLOW_TRAJECTORY_ACTION_HPP_
16 #define OPENSCENARIO_INTERPRETER__SYNTAX__FOLLOW_TRAJECTORY_ACTION_HPP_
17 
23 #include <pugixml.hpp>
25 
27 {
28 inline namespace syntax
29 {
30 /* ---- FollowTrajectoryAction 1.2 ---------------------------------------------
31  *
32  * <xsd:complexType name="FollowTrajectoryAction">
33  * <xsd:all>
34  * <xsd:element name="Trajectory" type="Trajectory" minOccurs="0">
35  * <xsd:annotation>
36  * <xsd:appinfo>
37  * deprecated
38  * </xsd:appinfo>
39  * </xsd:annotation>
40  * </xsd:element>
41  * <xsd:element name="CatalogReference" type="CatalogReference" minOccurs="0">
42  * <xsd:annotation>
43  * <xsd:appinfo>
44  * deprecated
45  * </xsd:appinfo>
46  * </xsd:annotation>
47  * </xsd:element>
48  * <xsd:element name="TimeReference" type="TimeReference"/>
49  * <xsd:element name="TrajectoryFollowingMode" type="TrajectoryFollowingMode"/>
50  * <xsd:element name="TrajectoryRef" type="TrajectoryRef" minOccurs="0"/>
51  * </xsd:all>
52  * <xsd:attribute name="initialDistanceOffset" type="Double"/>
53  * </xsd:complexType>
54  *
55  * -------------------------------------------------------------------------- */
56 struct FollowTrajectoryAction : private Scope,
60 {
62 
64 
66 
68 
69  std::unordered_map<String, Boolean> accomplishments;
70 
71  explicit FollowTrajectoryAction(const pugi::xml_node &, Scope &);
72 
73  /* */ auto accomplished() -> bool;
74 
75  static auto endsImmediately() noexcept -> bool;
76 
77  static auto run() -> void;
78 
79  /* */ auto start() -> void;
80 };
81 } // namespace syntax
82 } // namespace openscenario_interpreter
83 
84 #endif // OPENSCENARIO_INTERPRETER__SYNTAX__FOLLOW_TRAJECTORY_ACTION_HPP_
Definition: scope.hpp:154
Definition: escape_sequence.hpp:22
Definition: follow_trajectory_action.hpp:60
const TimeReference time_reference
Definition: follow_trajectory_action.hpp:63
static auto run() -> void
Definition: follow_trajectory_action.cpp:72
const TrajectoryFollowingMode trajectory_following_mode
Definition: follow_trajectory_action.hpp:65
static auto endsImmediately() noexcept -> bool
Definition: follow_trajectory_action.cpp:70
auto accomplished() -> bool
Definition: follow_trajectory_action.cpp:35
const Double initial_distance_offset
Definition: follow_trajectory_action.hpp:61
auto start() -> void
Definition: follow_trajectory_action.cpp:74
const TrajectoryRef trajectory_ref
Definition: follow_trajectory_action.hpp:67
FollowTrajectoryAction(const pugi::xml_node &, Scope &)
Definition: follow_trajectory_action.cpp:25
std::unordered_map< String, Boolean > accomplishments
Definition: follow_trajectory_action.hpp:69
Definition: time_reference.hpp:36
Definition: trajectory_following_mode.hpp:34
Definition: trajectory_ref.hpp:36