Apollo 10.0
自动驾驶开放平台
|
Frame holds all data for one planning cycle. 更多...
#include <frame.h>
Public 成员函数 | |
Frame (uint32_t sequence_num) | |
Frame (uint32_t sequence_num, const LocalView &local_view, const common::TrajectoryPoint &planning_start_point, const common::VehicleState &vehicle_state, ReferenceLineProvider *reference_line_provider) | |
Frame (uint32_t sequence_num, const LocalView &local_view, const common::TrajectoryPoint &planning_start_point, const common::VehicleState &vehicle_state) | |
virtual | ~Frame ()=default |
const common::TrajectoryPoint & | PlanningStartPoint () const |
common::Status | Init (const common::VehicleStateProvider *vehicle_state_provider, const std::list< ReferenceLine > &reference_lines, const std::list< hdmap::RouteSegments > &segments, const std::vector< routing::LaneWaypoint > &future_route_waypoints, const EgoInfo *ego_info) |
common::Status | InitForOpenSpace (const common::VehicleStateProvider *vehicle_state_provider, const EgoInfo *ego_info) |
uint32_t | SequenceNum () const |
std::string | DebugString () const |
const PublishableTrajectory & | ComputedTrajectory () const |
void | RecordInputDebug (planning_internal::Debug *debug) |
const std::list< ReferenceLineInfo > & | reference_line_info () const |
std::list< ReferenceLineInfo > * | mutable_reference_line_info () |
Obstacle * | Find (const std::string &id) |
const ReferenceLineInfo * | FindDriveReferenceLineInfo () |
const ReferenceLineInfo * | FindTargetReferenceLineInfo () |
const ReferenceLineInfo * | FindFailedReferenceLineInfo () |
const ReferenceLineInfo * | DriveReferenceLineInfo () const |
const std::vector< const Obstacle * > | obstacles () const |
const Obstacle * | CreateStopObstacle (ReferenceLineInfo *const reference_line_info, const std::string &obstacle_id, const double obstacle_s, double stop_wall_width=4.0) |
: create static virtual object with lane width, mainly used for virtual stop wall | |
const Obstacle * | CreateStopObstacle (const std::string &obstacle_id, const std::string &lane_id, const double lane_s) |
: create static virtual object with lane width, mainly used for virtual stop wall | |
const Obstacle * | CreateStaticObstacle (ReferenceLineInfo *const reference_line_info, const std::string &obstacle_id, const double obstacle_start_s, const double obstacle_end_s) |
: create static virtual object with lane width, | |
bool | Rerouting (PlanningContext *planning_context) |
const common::VehicleState & | vehicle_state () const |
void | set_current_frame_planned_trajectory (ADCTrajectory current_frame_planned_trajectory) |
const ADCTrajectory & | current_frame_planned_trajectory () const |
void | set_current_frame_planned_path (DiscretizedPath current_frame_planned_path) |
const DiscretizedPath & | current_frame_planned_path () const |
const bool | is_near_destination () const |
void | UpdateReferenceLinePriority (const std::map< std::string, uint32_t > &id_to_priority) |
Adjust reference line priority according to actual road conditions @id_to_priority lane id and reference line priority mapping relationship | |
const LocalView & | local_view () const |
ThreadSafeIndexedObstacles * | GetObstacleList () |
const OpenSpaceInfo & | open_space_info () const |
OpenSpaceInfo * | mutable_open_space_info () |
perception::TrafficLight | GetSignal (const std::string &traffic_light_id) const |
const PadMessage::DrivingAction & | GetPadMsgDrivingAction () const |
静态 Public 成员函数 | |
static void | AlignPredictionTime (const double planning_start_time, prediction::PredictionObstacles *prediction_obstacles) |
|
explicit |
Frame::Frame | ( | uint32_t | sequence_num, |
const LocalView & | local_view, | ||
const common::TrajectoryPoint & | planning_start_point, | ||
const common::VehicleState & | vehicle_state, | ||
ReferenceLineProvider * | reference_line_provider | ||
) |
Frame::Frame | ( | uint32_t | sequence_num, |
const LocalView & | local_view, | ||
const common::TrajectoryPoint & | planning_start_point, | ||
const common::VehicleState & | vehicle_state | ||
) |
|
virtualdefault |
|
static |
const PublishableTrajectory & apollo::planning::Frame::ComputedTrajectory | ( | ) | const |
const Obstacle * Frame::CreateStaticObstacle | ( | ReferenceLineInfo *const | reference_line_info, |
const std::string & | obstacle_id, | ||
const double | obstacle_start_s, | ||
const double | obstacle_end_s | ||
) |
: create static virtual object with lane width,
const Obstacle * Frame::CreateStopObstacle | ( | const std::string & | obstacle_id, |
const std::string & | lane_id, | ||
const double | lane_s | ||
) |
: create static virtual object with lane width, mainly used for virtual stop wall
const Obstacle * Frame::CreateStopObstacle | ( | ReferenceLineInfo *const | reference_line_info, |
const std::string & | obstacle_id, | ||
const double | obstacle_s, | ||
double | stop_wall_width = 4.0 |
||
) |
: create static virtual object with lane width, mainly used for virtual stop wall
|
inline |
|
inline |
std::string Frame::DebugString | ( | ) | const |
const ReferenceLineInfo * Frame::DriveReferenceLineInfo | ( | ) | const |
Obstacle * Frame::Find | ( | const std::string & | id | ) |
const ReferenceLineInfo * Frame::FindDriveReferenceLineInfo | ( | ) |
const ReferenceLineInfo * Frame::FindFailedReferenceLineInfo | ( | ) |
const ReferenceLineInfo * Frame::FindTargetReferenceLineInfo | ( | ) |
|
inline |
|
inline |
perception::TrafficLight Frame::GetSignal | ( | const std::string & | traffic_light_id | ) | const |
Status Frame::Init | ( | const common::VehicleStateProvider * | vehicle_state_provider, |
const std::list< ReferenceLine > & | reference_lines, | ||
const std::list< hdmap::RouteSegments > & | segments, | ||
const std::vector< routing::LaneWaypoint > & | future_route_waypoints, | ||
const EgoInfo * | ego_info | ||
) |
Status Frame::InitForOpenSpace | ( | const common::VehicleStateProvider * | vehicle_state_provider, |
const EgoInfo * | ego_info | ||
) |
|
inline |
|
inline |
|
inline |
std::list< ReferenceLineInfo > * Frame::mutable_reference_line_info | ( | ) |
const std::vector< const Obstacle * > Frame::obstacles | ( | ) | const |
|
inline |
const common::TrajectoryPoint & Frame::PlanningStartPoint | ( | ) | const |
void Frame::RecordInputDebug | ( | planning_internal::Debug * | debug | ) |
const std::list< ReferenceLineInfo > & Frame::reference_line_info | ( | ) | const |
bool Frame::Rerouting | ( | PlanningContext * | planning_context | ) |
|
inline |
|
inline |
void Frame::UpdateReferenceLinePriority | ( | const std::map< std::string, uint32_t > & | id_to_priority | ) |
Adjust reference line priority according to actual road conditions @id_to_priority lane id and reference line priority mapping relationship
const common::VehicleState & Frame::vehicle_state | ( | ) | const |