#include <discretized_path.h>
◆ DiscretizedPath() [1/2]
| apollo::planning::DiscretizedPath::DiscretizedPath |
( |
| ) |
|
|
default |
◆ DiscretizedPath() [2/2]
| apollo::planning::DiscretizedPath::DiscretizedPath |
( |
std::vector< common::PathPoint > |
path_points | ) |
|
|
explicit |
◆ Evaluate()
| PathPoint apollo::planning::DiscretizedPath::Evaluate |
( |
const double |
path_s | ) |
const |
在文件 discretized_path.cc 第 43 行定义.
43 {
46 if (it_lower == begin()) {
47 return front();
48 }
49 if (it_lower == end()) {
50 return back();
51 }
53 *it_lower, path_s);
54}
std::vector< common::PathPoint >::const_iterator QueryLowerBound(const double path_s) const
SLPoint InterpolateUsingLinearApproximation(const SLPoint &p0, const SLPoint &p1, const double w)
◆ EvaluateReverse()
| PathPoint apollo::planning::DiscretizedPath::EvaluateReverse |
( |
const double |
path_s | ) |
const |
在文件 discretized_path.cc 第 64 行定义.
64 {
67 if (it_upper == begin()) {
68 return front();
69 }
70 if (it_upper == end()) {
71 return back();
72 }
74 *it_upper, path_s);
75}
std::vector< common::PathPoint >::const_iterator QueryUpperBound(const double path_s) const
◆ Length()
| double apollo::planning::DiscretizedPath::Length |
( |
| ) |
const |
在文件 discretized_path.cc 第 36 行定义.
36 {
37 if (empty()) {
38 return 0.0;
39 }
40 return back().s() - front().s();
41}
◆ QueryLowerBound()
| std::vector< PathPoint >::const_iterator apollo::planning::DiscretizedPath::QueryLowerBound |
( |
const double |
path_s | ) |
const |
|
protected |
在文件 discretized_path.cc 第 56 行定义.
57 {
58 auto func = [](
const PathPoint &tp,
const double path_s) {
59 return tp.s() < path_s;
60 };
61 return std::lower_bound(begin(), end(), path_s, func);
62}
◆ QueryUpperBound()
| std::vector< PathPoint >::const_iterator apollo::planning::DiscretizedPath::QueryUpperBound |
( |
const double |
path_s | ) |
const |
|
protected |
在文件 discretized_path.cc 第 77 行定义.
78 {
79 auto func = [](
const double path_s,
const PathPoint &tp) {
80 return tp.s() < path_s;
81 };
82 return std::upper_bound(begin(), end(), path_s, func);
83}
该类的文档由以下文件生成: