scenario_simulator_v2 C++ API
reach_position_condition.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__REACH_POSITION_CONDITION_HPP_
16 #define OPENSCENARIO_INTERPRETER__SYNTAX__REACH_POSITION_CONDITION_HPP_
17 
24 #include <pugixml.hpp>
25 
27 {
28 inline namespace syntax
29 {
30 /* ---- ReachPositionCondition -------------------------------------------------
31  *
32  * <xsd:complexType name="ReachPositionCondition">
33  * <xsd:all>
34  * <xsd:element name="Position" type="Position"/>
35  * </xsd:all>
36  * <xsd:attribute name="tolerance" type="Double" use="required"/>
37  * </xsd:complexType>
38  *
39  * -------------------------------------------------------------------------- */
41 {
43 
45 
46  const Rule compare;
47 
49 
50  std::vector<Double> results; // for description
51 
52  const bool consider_z;
53 
54  explicit ReachPositionCondition(const pugi::xml_node &, Scope &, const TriggeringEntities &);
55 
56  auto description() const -> String;
57 
58  auto evaluate() -> Object;
59 };
60 } // namespace syntax
61 } // namespace openscenario_interpreter
62 
63 #endif // OPENSCENARIO_INTERPRETER__SYNTAX__REACH_POSITION_CONDITION_HPP_
Definition: scope.hpp:154
std::string String
Definition: string.hpp:24
Definition: escape_sequence.hpp:22
Definition: reach_position_condition.hpp:41
ReachPositionCondition(const pugi::xml_node &, Scope &, const TriggeringEntities &)
Definition: reach_position_condition.cpp:28
auto description() const -> String
Definition: reach_position_condition.cpp:43
std::vector< Double > results
Definition: reach_position_condition.hpp:50
const Position position
Definition: reach_position_condition.hpp:44
const Double tolerance
Definition: reach_position_condition.hpp:42
const Rule compare
Definition: reach_position_condition.hpp:46
const TriggeringEntities triggering_entities
Definition: reach_position_condition.hpp:48
const bool consider_z
Definition: reach_position_condition.hpp:52
auto evaluate() -> Object
Definition: reach_position_condition.cpp:62
Definition: triggering_entities.hpp:39