Apollo  6.0
Open source self driving car software
path_boundary.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 
20 #pragma once
21 
22 #include <string>
23 #include <utility>
24 #include <vector>
25 
26 namespace apollo {
27 namespace planning {
28 
29 class PathBoundary {
30  public:
31  PathBoundary(const double start_s, const double delta_s,
32  std::vector<std::pair<double, double>> path_boundary);
33 
34  virtual ~PathBoundary() = default;
35 
36  double start_s() const;
37 
38  double delta_s() const;
39 
40  void set_boundary(const std::vector<std::pair<double, double>>& boundary);
41  const std::vector<std::pair<double, double>>& boundary() const;
42 
43  void set_label(const std::string& label);
44  const std::string& label() const;
45 
46  void set_blocking_obstacle_id(const std::string& obs_id);
47  const std::string& blocking_obstacle_id() const;
48 
49  private:
50  double start_s_ = 0.0;
51  double delta_s_ = 0.0;
52  std::vector<std::pair<double, double>> boundary_;
53  std::string label_ = "regular";
54  std::string blocking_obstacle_id_ = "";
55 };
56 
57 } // namespace planning
58 } // namespace apollo
PathBoundary(const double start_s, const double delta_s, std::vector< std::pair< double, double >> path_boundary)
void set_boundary(const std::vector< std::pair< double, double >> &boundary)
Definition: path_boundary.h:29
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...
void set_blocking_obstacle_id(const std::string &obs_id)
virtual ~PathBoundary()=default
void set_label(const std::string &label)
const std::vector< std::pair< double, double > > & boundary() const
const std::string & label() const
const std::string & blocking_obstacle_id() const