Apollo  6.0
Open source self driving car software
util.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright 2019 The Apollo Authors. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *****************************************************************************/
16 
17 #pragma once
18 
19 #include <string>
20 #include <vector>
21 
22 #include <boost/filesystem.hpp>
23 #include <boost/range/iterator_range.hpp>
24 
25 #include "modules/common/vehicle_state/proto/vehicle_state.pb.h"
28 #include "modules/routing/proto/routing.pb.h"
29 
30 namespace apollo {
31 namespace planning {
32 namespace util {
33 
34 bool IsVehicleStateValid(const apollo::common::VehicleState& vehicle_state);
35 
36 bool IsDifferentRouting(const apollo::routing::RoutingResponse& first,
37  const apollo::routing::RoutingResponse& second);
38 
41  const double adc_front_edge_s, const double stop_line_s);
42 
43 bool CheckStopSignOnReferenceLine(const ReferenceLineInfo& reference_line_info,
44  const std::string& stop_sign_overlap_id);
45 
47  const ReferenceLineInfo& reference_line_info,
48  const std::string& traffic_light_overlap_id);
49 
50 bool CheckInsidePnCJunction(const ReferenceLineInfo& reference_line_info);
51 
52 void GetFilesByPath(const boost::filesystem::path& path,
53  std::vector<std::string>* files);
54 
55 } // namespace util
56 } // namespace planning
57 } // namespace apollo
bool IsVehicleStateValid(const apollo::common::VehicleState &vehicle_state)
The class of vehicle state. It includes basic information and computation about the state of the vehi...
Definition: vehicle_state_provider.h:46
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Planning module main class. It processes GPS and IMU as input, to generate planning info...
bool IsDifferentRouting(const apollo::routing::RoutingResponse &first, const apollo::routing::RoutingResponse &second)
double GetADCStopDeceleration(apollo::common::VehicleStateProvider *vehicle_state, const double adc_front_edge_s, const double stop_line_s)
bool CheckTrafficLightOnReferenceLine(const ReferenceLineInfo &reference_line_info, const std::string &traffic_light_overlap_id)
bool CheckStopSignOnReferenceLine(const ReferenceLineInfo &reference_line_info, const std::string &stop_sign_overlap_id)
bool CheckInsidePnCJunction(const ReferenceLineInfo &reference_line_info)
void GetFilesByPath(const boost::filesystem::path &path, std::vector< std::string > *files)