Skip to content

Commit

Permalink
fix(behavior_velocity): occlusion spot partition (tier4#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
taikitanaka3 authored and boyali committed Oct 3, 2022
1 parent 57a7600 commit a20201e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ class OcclusionSpotModule : public SceneModuleInterface
PlannerParam param_;
tier4_autoware_utils::StopWatch<std::chrono::milliseconds> stop_watch_;
std::vector<lanelet::BasicPolygon2d> partition_lanelets_;
std::vector<lanelet::BasicPolygon2d> close_partition_;

protected:
int64_t module_id_{};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ bool OcclusionSpotModule::modifyPathVelocity(
std::vector<utils::PossibleCollisionInfo> possible_collisions;
// extract only close lanelet
if (param_.use_partition_lanelet) {
planning_utils::extractClosePartition(ego_pose.position, partition_lanelets_, close_partition_);
planning_utils::extractClosePartition(
ego_pose.position, partition_lanelets_, debug_data_.close_partition);
}
DEBUG_PRINT(show_time, "extract[ms]: ", stop_watch_.toc("processing_time", true));
std::vector<geometry_msgs::msg::Point> parked_vehicle_point;
Expand Down Expand Up @@ -153,7 +154,6 @@ bool OcclusionSpotModule::modifyPathVelocity(
utils::applySafeVelocityConsideringPossibleCollision(path, possible_collisions, param_);
// these debug topics needs computation resource
debug_data_.parked_vehicle_point = parked_vehicle_point;
debug_data_.close_partition = close_partition_;
debug_data_.z = path->points.front().point.pose.position.z;
debug_data_.possible_collisions = possible_collisions;
debug_data_.interp_path = interp_path;
Expand Down

0 comments on commit a20201e

Please sign in to comment.