apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Question about the obstacle projection in the PathTime graph

Open seniorstudent opened this issue 7 years ago • 1 comments

I am an new learner, and there have a question about the code from the following file: apollo-master\modules\planning\lattice\behavior\path_time_graph.cc The code as followed: path_time_obstacle_map_[obstacle_id].set_obstacle_id(obstacle_id); path_time_obstacle_map_[obstacle_id].mutable_bottom_left()->CopyFrom( SetPathTimePoint(obstacle_id, sl_boundary.start_s(), 0.0)); path_time_obstacle_map_[obstacle_id].mutable_bottom_right()->CopyFrom( SetPathTimePoint(obstacle_id, sl_boundary.start_s(), FLAGS_trajectory_time_length)); path_time_obstacle_map_[obstacle_id].mutable_upper_left()->CopyFrom( SetPathTimePoint(obstacle_id, sl_boundary.end_s(), 0.0)); path_time_obstacle_map_[obstacle_id].mutable_upper_right()->CopyFrom( SetPathTimePoint(obstacle_id, sl_boundary.end_s(), FLAGS_trajectory_time_length)); static_obs_sl_boundaries_.push_back(std::move(sl_boundary));

My doubt is why the time for the obstacle PathTimePoint is 0 or trajectory_time_length instead of the obstacle projection in the PathTime graph?

seniorstudent avatar Dec 06 '18 08:12 seniorstudent

Please refer to toolkits for the main algorithms of olanning module. The folder planning/lattice is not being used in the most current version.

lianglia-apollo avatar Dec 23 '18 01:12 lianglia-apollo