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