38 const std::vector<const Obstacle*>& obstacles,
const double ego_vehicle_s,
39 const double ego_vehicle_d,
40 const std::vector<common::PathPoint>& discretized_reference_line,
42 const std::shared_ptr<PathTimeGraph>& ptr_path_time_graph);
46 static bool InCollision(
const std::vector<const Obstacle*>& obstacles,
48 const double ego_length,
const double ego_width,
49 const double ego_edge_to_center);
52 void BuildPredictedEnvironment(
53 const std::vector<const Obstacle*>& obstacles,
const double ego_vehicle_s,
54 const double ego_vehicle_d,
55 const std::vector<common::PathPoint>& discretized_reference_line);
57 bool IsEgoVehicleInLane(
const double ego_vehicle_s,
58 const double ego_vehicle_d);
60 bool IsObstacleBehindEgoVehicle(
61 const Obstacle* obstacle,
const double ego_vehicle_s,
62 const std::vector<apollo::common::PathPoint>& discretized_reference_line);
66 std::shared_ptr<PathTimeGraph> ptr_path_time_graph_;
67 std::vector<std::vector<common::math::Box2d>> predicted_bounding_rectangles_;
This is the class that associates an Obstacle with its path properties. An obstacle's path properties...
Definition: obstacle.h:60
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Definition: discretized_trajectory.h:32
Planning module main class. It processes GPS and IMU as input, to generate planning info...
ReferenceLineInfo holds all data for one reference line.
Definition: reference_line_info.h:54
CollisionChecker(const std::vector< const Obstacle *> &obstacles, const double ego_vehicle_s, const double ego_vehicle_d, const std::vector< common::PathPoint > &discretized_reference_line, const ReferenceLineInfo *ptr_reference_line_info, const std::shared_ptr< PathTimeGraph > &ptr_path_time_graph)
Definition: collision_checker.h:35
The class of Box2d. Here, the x/y axes are respectively Forward/Left, as opposed to what happens in e...
bool InCollision(const DiscretizedTrajectory &discretized_trajectory)