scenario_simulator_v2 C++ API
traffic_lights.hpp
Go to the documentation of this file.
1 
2 
3 // Copyright 2015 Tier IV, Inc. All rights reserved.
4 //
5 // Licensed under the Apache License, Version 2.0 (the "License");
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 
17 #ifndef TRAFFIC_SIMULATOR__LANELET_WRAPPER_TRAFFIC_LIGHTS_HPP_
18 #define TRAFFIC_SIMULATOR__LANELET_WRAPPER_TRAFFIC_LIGHTS_HPP_
19 
20 #include <autoware_lanelet2_extension/utility/query.hpp>
22 
23 namespace traffic_simulator
24 {
25 namespace lanelet_wrapper
26 {
27 namespace traffic_lights
28 {
29 auto trafficLightStopLinesPoints(const lanelet::Id traffic_light_id)
30  -> std::vector<std::vector<Point>>;
31 
32 auto trafficLightIdsOnPath(const lanelet::Ids & route_lanelets) -> lanelet::Ids;
33 
34 // used only by this namespace
35 auto toAutowareTrafficLights(const lanelet::Id traffic_light_id)
36  -> std::vector<lanelet::AutowareTrafficLightConstPtr>;
37 
38 auto autowareTrafficLightsOnPath(const lanelet::Ids & lanelet_ids)
39  -> std::vector<lanelet::AutowareTrafficLightConstPtr>;
40 } // namespace traffic_lights
41 } // namespace lanelet_wrapper
42 } // namespace traffic_simulator
43 #endif // TRAFFIC_SIMULATOR__LANELET_WRAPPER_TRAFFIC_LIGHTS_HPP_
auto autowareTrafficLightsOnPath(const lanelet::Ids &lanelet_ids) -> std::vector< lanelet::AutowareTrafficLightConstPtr >
Definition: traffic_lights.cpp:84
auto trafficLightIdsOnPath(const lanelet::Ids &route_lanelets) -> lanelet::Ids
Definition: traffic_lights.cpp:39
auto toAutowareTrafficLights(const lanelet::Id traffic_light_id) -> std::vector< lanelet::AutowareTrafficLightConstPtr >
Definition: traffic_lights.cpp:55
auto trafficLightStopLinesPoints(const lanelet::Id traffic_light_id) -> std::vector< std::vector< Point >>
Definition: traffic_lights.cpp:23
Definition: api.hpp:32