|
Apollo 11.0
自动驾驶开放平台
|
NaviSpeedTsGraph is used to generate a t-s graph with some limits and preferred. 更多...
#include <navi_speed_ts_graph.h>
Public 成员函数 | |
| NaviSpeedTsGraph () | |
| void | Reset (double s_step, double s_max, double start_v, double start_a, double start_da) |
| Reset points's num and time step etc. | |
| void | UpdateConstraints (const NaviSpeedTsConstraints &constraints) |
| Assign constraints to all points. | |
| void | UpdateRangeConstraints (double start_s, double end_s, const NaviSpeedTsConstraints &constraints) |
| Assign constraints to a range. | |
| void | UpdateObstacleConstraints (double distance, double safe_distance, double following_accel_ratio, double v, double cruise_speed) |
| Assign constraints for an obstacle. | |
| apollo::common::Status | Solve (std::vector< NaviSpeedTsPoint > *points) |
| Solving the t-s curve. | |
NaviSpeedTsGraph is used to generate a t-s graph with some limits and preferred.
在文件 navi_speed_ts_graph.h 第 78 行定义.
| apollo::planning::NaviSpeedTsGraph::NaviSpeedTsGraph | ( | ) |
在文件 navi_speed_ts_graph.cc 第 72 行定义.
| void apollo::planning::NaviSpeedTsGraph::Reset | ( | double | s_step, |
| double | s_max, | ||
| double | start_v, | ||
| double | start_a, | ||
| double | start_da | ||
| ) |
Reset points's num and time step etc.
| s_step | S step between two points. |
| s_max | Max of s-axis. |
| start_v | V of the start point. |
| start_a | A of the start point. |
| start_da | Da of the start point. |
在文件 navi_speed_ts_graph.cc 第 76 行定义.
| Status apollo::planning::NaviSpeedTsGraph::Solve | ( | std::vector< NaviSpeedTsPoint > * | points | ) |
Solving the t-s curve.
| points | buffer of t-s points for output. |
在文件 navi_speed_ts_graph.cc 第 194 行定义.
| void apollo::planning::NaviSpeedTsGraph::UpdateConstraints | ( | const NaviSpeedTsConstraints & | constraints | ) |
Assign constraints to all points.
| constraints | constraints for all points. |
在文件 navi_speed_ts_graph.cc 第 92 行定义.
| void apollo::planning::NaviSpeedTsGraph::UpdateObstacleConstraints | ( | double | distance, |
| double | safe_distance, | ||
| double | following_accel_ratio, | ||
| double | v, | ||
| double | cruise_speed | ||
| ) |
Assign constraints for an obstacle.
| distance | The distance from vehicle to the obstacle. |
| safe_distance | The safe distance from vehicle to the obstacle. |
| following_accel_ratio | Decide the level of acceleration when following obstacle. |
| v | Speed of the obstacle. |
| cruise_speed | Cruise speed of vehicle. |
| constraints | constraints for the point. |
在文件 navi_speed_ts_graph.cc 第 117 行定义.
| void apollo::planning::NaviSpeedTsGraph::UpdateRangeConstraints | ( | double | start_s, |
| double | end_s, | ||
| const NaviSpeedTsConstraints & | constraints | ||
| ) |
Assign constraints to a range.
| start_s | S fo the start point. |
| end_s | S fo the end point. |
| constraints | constraints for points. |
在文件 navi_speed_ts_graph.cc 第 101 行定义.