|
Apollo 11.0
自动驾驶开放平台
|
#include <st_boundary.h>
Public 类型 | |
| enum class | BoundaryType { UNKNOWN , STOP , FOLLOW , YIELD , OVERTAKE , KEEP_CLEAR } |
Public 成员函数 | |
| STBoundary ()=default | |
| Constructors: STBoundary must be initialized with a vector of ST-point pairs. | |
| STBoundary (const std::vector< std::pair< STPoint, STPoint > > &point_pairs, bool is_accurate_boundary=false) | |
| STBoundary (const common::math::Box2d &box)=delete | |
| STBoundary (std::vector< common::math::Vec2d > points)=delete | |
| ~STBoundary ()=default | |
| Default destructor. | |
| bool | IsEmpty () const |
| bool | GetUnblockSRange (const double curr_time, double *s_upper, double *s_lower) const |
| bool | GetBoundarySRange (const double curr_time, double *s_upper, double *s_lower) const |
| bool | GetBoundarySlopes (const double curr_time, double *ds_upper, double *ds_lower) const |
| void | PrintDebug (std::string suffix="") const |
| BoundaryType | boundary_type () const |
| const std::string & | id () const |
| double | characteristic_length () const |
| void | set_id (const std::string &id) |
| void | SetBoundaryType (const BoundaryType &boundary_type) |
| void | SetCharacteristicLength (const double characteristic_length) |
| double | min_s () const |
| double | min_t () const |
| double | max_s () const |
| double | max_t () const |
| std::vector< STPoint > | upper_points () const |
| std::vector< STPoint > | lower_points () const |
| bool | IsPointInBoundary (const STPoint &st_point) const |
| STBoundary | ExpandByS (const double s) const |
| STBoundary | ExpandByT (const double t) const |
| STBoundary | CutOffByT (const double t) const |
| STPoint | upper_left_point () const |
| STPoint | upper_right_point () const |
| STPoint | bottom_left_point () const |
| STPoint | bottom_right_point () const |
| void | set_upper_left_point (STPoint st_point) |
| void | set_upper_right_point (STPoint st_point) |
| void | set_bottom_left_point (STPoint st_point) |
| void | set_bottom_right_point (STPoint st_point) |
| void | set_obstacle_road_right_ending_t (double road_right_ending_t) |
| double | obstacle_road_right_ending_t () const |
Public 成员函数 继承自 apollo::common::math::Polygon2d | |
| Polygon2d ()=default | |
| Empty constructor. | |
| Polygon2d (const Box2d &box) | |
| Constructor which takes a box. | |
| Polygon2d (std::vector< Vec2d > points, bool check_area=true) | |
| Constructor which takes a vector of points as its vertices. | |
| const std::vector< Vec2d > & | points () const |
| Get the vertices of the polygon. | |
| const std::vector< LineSegment2d > & | line_segments () const |
| Get the edges of the polygon. | |
| int | num_points () const |
| Get the number of vertices of the polygon. | |
| bool | is_convex () const |
| Check if the polygon is convex. | |
| double | area () const |
| Get the area of the polygon. | |
| double | DistanceToBoundary (const Vec2d &point) const |
| Compute the distance from a point to the boundary of the polygon. | |
| double | DistanceTo (const Vec2d &point) const |
| Compute the distance from a point to the polygon. | |
| double | DistanceTo (const LineSegment2d &line_segment) const |
| Compute the distance from a line segment to the polygon. | |
| double | DistanceTo (const Box2d &box) const |
| Compute the distance from a box to the polygon. | |
| double | DistanceTo (const Polygon2d &polygon) const |
| Compute the distance from another polygon to the polygon. | |
| double | DistanceSquareTo (const Vec2d &point) const |
| Compute the square of distance from a point to the polygon. | |
| bool | IsPointIn (const Vec2d &point) const |
| Check if a point is within the polygon. | |
| bool | IsPointOnBoundary (const Vec2d &point) const |
| Check if a point is on the boundary of the polygon. | |
| bool | Contains (const LineSegment2d &line_segment) const |
| Check if the polygon contains a line segment. | |
| bool | Contains (const Polygon2d &polygon) const |
| Check if the polygon contains another polygon. | |
| bool | HasOverlap (const LineSegment2d &line_segment) const |
| Check if a line segment has overlap with this polygon. | |
| bool | GetOverlap (const LineSegment2d &line_segment, Vec2d *const first, Vec2d *const last) const |
| Get the overlap of a line segment and this polygon. | |
| void | GetAllVertices (std::vector< Vec2d > *const vertices) const |
| Get all vertices of the polygon | |
| std::vector< Vec2d > | GetAllVertices () const |
| Get all vertices of the polygon | |
| std::vector< LineSegment2d > | GetAllOverlaps (const LineSegment2d &line_segment) const |
| Get all overlapped line segments of a line segment and this polygon. | |
| bool | HasOverlap (const Polygon2d &polygon) const |
| Check if this polygon has overlap with another polygon. | |
| bool | ComputeOverlap (const Polygon2d &other_polygon, Polygon2d *const overlap_polygon) const |
| Compute the overlap of this polygon and the other polygon if any. | |
| double | ComputeIoU (const Polygon2d &other_polygon) const |
| Compute intersection over union ratio of this polygon and the other polygon. | |
| AABox2d | AABoundingBox () const |
| Get the axis-aligned bound box of the polygon. | |
| Box2d | BoundingBoxWithHeading (const double heading) const |
| Get the bound box according to a heading. | |
| Box2d | MinAreaBoundingBox () const |
| Get the bounding box with the minimal area. | |
| void | ExtremePoints (const double heading, Vec2d *const first, Vec2d *const last) const |
| Get the extreme points along a heading direction. | |
| Polygon2d | ExpandByDistance (const double distance) const |
| Expand this polygon by a distance. | |
| Polygon2d | PolygonExpandByDistance (const double distance) const |
| void | CalculateVertices (const Vec2d &shift_vec) |
| std::string | DebugString () const |
| Get a string containing essential information about the polygon for debugging purpose. | |
| double | min_x () const |
| double | max_x () const |
| double | min_y () const |
| double | max_y () const |
| LineSegment2d | MinLineSegment () const |
静态 Public 成员函数 | |
| static STBoundary | CreateInstance (const std::vector< STPoint > &lower_points, const std::vector< STPoint > &upper_points) |
| Wrapper of the constructor (old). | |
| static STBoundary | CreateInstanceAccurate (const std::vector< STPoint > &lower_points, const std::vector< STPoint > &upper_points) |
| Wrapper of the constructor. | |
| static std::string | TypeName (BoundaryType type) |
静态 Public 成员函数 继承自 apollo::common::math::Polygon2d | |
| static bool | ComputeConvexHull (const std::vector< Vec2d > &points, Polygon2d *const polygon, bool check_area=true) |
| Compute the convex hull of a group of points. | |
额外继承的成员函数 | |
Protected 成员函数 继承自 apollo::common::math::Polygon2d | |
| void | BuildFromPoints (bool check_area=true) |
| int | Next (int at) const |
| int | Prev (int at) const |
静态 Protected 成员函数 继承自 apollo::common::math::Polygon2d | |
| static bool | ClipConvexHull (const LineSegment2d &line_segment, std::vector< Vec2d > *const points) |
Protected 属性 继承自 apollo::common::math::Polygon2d | |
| std::vector< Vec2d > | points_ |
| int | num_points_ = 0 |
| std::vector< LineSegment2d > | line_segments_ |
| bool | is_convex_ = false |
| double | area_ = 0.0 |
| double | min_x_ = 0.0 |
| double | max_x_ = 0.0 |
| double | min_y_ = 0.0 |
| double | max_y_ = 0.0 |
在文件 st_boundary.h 第 40 行定义.
|
strong |
| 枚举值 | |
|---|---|
| UNKNOWN | |
| STOP | |
| FOLLOW | |
| YIELD | |
| OVERTAKE | |
| KEEP_CLEAR | |
在文件 st_boundary.h 第 82 行定义.
|
default |
Constructors: STBoundary must be initialized with a vector of ST-point pairs.
Each pair refers to a time t, with (lower_s, upper_s).
|
explicit |
在文件 st_boundary.cc 第 34 行定义.
|
explicitdelete |
|
explicitdelete |
|
default |
Default destructor.
| STPoint apollo::planning::STBoundary::bottom_left_point | ( | ) | const |
在文件 st_boundary.cc 第 374 行定义.
| STPoint apollo::planning::STBoundary::bottom_right_point | ( | ) | const |
在文件 st_boundary.cc 第 379 行定义.
| STBoundary::BoundaryType apollo::planning::STBoundary::boundary_type | ( | ) | const |
在文件 st_boundary.cc 第 326 行定义.
| double apollo::planning::STBoundary::characteristic_length | ( | ) | const |
在文件 st_boundary.cc 第 337 行定义.
|
static |
Wrapper of the constructor (old).
在文件 st_boundary.cc 第 72 行定义.
|
static |
Wrapper of the constructor.
It doesn't use RemoveRedundantPoints and generates an accurate ST-boundary.
在文件 st_boundary.cc 第 88 行定义.
| STBoundary apollo::planning::STBoundary::CutOffByT | ( | const double | t | ) | const |
在文件 st_boundary.cc 第 350 行定义.
| STBoundary apollo::planning::STBoundary::ExpandByS | ( | const double | s | ) | const |
在文件 st_boundary.cc 第 263 行定义.
| STBoundary apollo::planning::STBoundary::ExpandByT | ( | const double | t | ) | const |
在文件 st_boundary.cc 第 276 行定义.
| bool apollo::planning::STBoundary::GetBoundarySlopes | ( | const double | curr_time, |
| double * | ds_upper, | ||
| double * | ds_lower | ||
| ) | const |
在文件 st_boundary.cc 第 202 行定义.
| bool apollo::planning::STBoundary::GetBoundarySRange | ( | const double | curr_time, |
| double * | s_upper, | ||
| double * | s_lower | ||
| ) | const |
在文件 st_boundary.cc 第 172 行定义.
| bool apollo::planning::STBoundary::GetUnblockSRange | ( | const double | curr_time, |
| double * | s_upper, | ||
| double * | s_lower | ||
| ) | const |
在文件 st_boundary.cc 第 123 行定义.
| const std::string & apollo::planning::STBoundary::id | ( | ) | const |
在文件 st_boundary.cc 第 333 行定义.
|
inline |
在文件 st_boundary.h 第 69 行定义.
| bool apollo::planning::STBoundary::IsPointInBoundary | ( | const STPoint & | st_point | ) | const |
在文件 st_boundary.cc 第 245 行定义.
|
inline |
在文件 st_boundary.h 第 107 行定义.
| double apollo::planning::STBoundary::max_s | ( | ) | const |
在文件 st_boundary.cc 第 347 行定义.
| double apollo::planning::STBoundary::max_t | ( | ) | const |
在文件 st_boundary.cc 第 348 行定义.
| double apollo::planning::STBoundary::min_s | ( | ) | const |
在文件 st_boundary.cc 第 345 行定义.
| double apollo::planning::STBoundary::min_t | ( | ) | const |
在文件 st_boundary.cc 第 346 行定义.
|
inline |
在文件 st_boundary.h 第 131 行定义.
| void apollo::planning::STBoundary::PrintDebug | ( | std::string | suffix = "" | ) | const |
在文件 st_boundary.cc 第 497 行定义.
| void apollo::planning::STBoundary::set_bottom_left_point | ( | STPoint | st_point | ) |
在文件 st_boundary.cc 第 392 行定义.
| void apollo::planning::STBoundary::set_bottom_right_point | ( | STPoint | st_point | ) |
在文件 st_boundary.cc 第 396 行定义.
| void apollo::planning::STBoundary::set_id | ( | const std::string & | id | ) |
在文件 st_boundary.cc 第 335 行定义.
|
inline |
在文件 st_boundary.h 第 128 行定义.
| void apollo::planning::STBoundary::set_upper_left_point | ( | STPoint | st_point | ) |
在文件 st_boundary.cc 第 384 行定义.
| void apollo::planning::STBoundary::set_upper_right_point | ( | STPoint | st_point | ) |
在文件 st_boundary.cc 第 388 行定义.
| void apollo::planning::STBoundary::SetBoundaryType | ( | const BoundaryType & | boundary_type | ) |
在文件 st_boundary.cc 第 329 行定义.
| void apollo::planning::STBoundary::SetCharacteristicLength | ( | const double | characteristic_length | ) |
在文件 st_boundary.cc 第 341 行定义.
|
static |
在文件 st_boundary.cc 第 104 行定义.
| STPoint apollo::planning::STBoundary::upper_left_point | ( | ) | const |
在文件 st_boundary.cc 第 364 行定义.
|
inline |
在文件 st_boundary.h 第 106 行定义.
| STPoint apollo::planning::STBoundary::upper_right_point | ( | ) | const |
在文件 st_boundary.cc 第 369 行定义.