Skip to content

Commit

Permalink
Merge branch 'autowarefoundation:main' into feature/time_series_block…
Browse files Browse the repository at this point in the history
…age_diag
  • Loading branch information
swiftfile committed Aug 31, 2022
2 parents 7aadef8 + f1a8851 commit 83afdd1
Show file tree
Hide file tree
Showing 34 changed files with 461 additions and 334 deletions.
159 changes: 159 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
### Copied from .github/CODEOWNERS-manual ###
.github/* @autowarefoundation/autoware-maintainers

### Automatically generated from package.xml ###
control/external_cmd_selector/* kenji.miyake@tier4.jp
control/obstacle_collision_checker/* kenji.miyake@tier4.jp
control/vehicle_cmd_gate/* takamasa.horibe@tier4.jp
control/trajectory_follower/* takamasa.horibe@tier4.jp takayuki.murooka@tier4.jp
control/trajectory_follower_nodes/* takamasa.horibe@tier4.jp takayuki.murooka@tier4.jp
control/joy_controller/* kenji.miyake@tier4.jp
control/lane_departure_checker/* kyoichi.sugahara@tier4.jp
control/shift_decider/* takamasa.horibe@tier4.jp
control/pure_pursuit/* takamasa.horibe@tier4.jp
control/operation_mode_transition_manager/* takamasa.horibe@tier4.jp
control/control_performance_analysis/* ali.boyali@tier4.jp berkay@leodrive.ai
common/autoware_ad_api_msgs/* isamu.takagi@tier4.jp
common/motion_common/* christopherj.ho@gmail.com
common/component_interface_specs/* isamu.takagi@tier4.jp
common/motion_testing/* christopherj.ho@gmail.com
common/autoware_auto_perception_rviz_plugin/* opensource@apex.ai taichi.higashide@tier4.jp
common/autoware_auto_tf2/* jit.ray.c@gmail.com
common/signal_processing/* takayuki.murooka@tier4.jp
common/tier4_perception_rviz_plugin/* yukihiro.saito@tier4.jp
common/path_distance_calculator/* isamu.takagi@tier4.jp
common/kalman_filter/* yukihiro.saito@tier4.jp
common/tier4_traffic_light_rviz_plugin/* satoshi.ota@tier4.jp
common/vehicle_constants_manager/* mfc@leodrive.ai
common/component_interface_utils/* isamu.takagi@tier4.jp
common/tier4_planning_rviz_plugin/* yukihiro.saito@tier4.jp
common/perception_utils/* takayuki.murooka@tier4.jp
common/web_controller/* yukihiro.saito@tier4.jp
common/goal_distance_calculator/* taiki.tanaka@tier4.jp
common/motion_utils/* yutaka.shimizu@tier4.jp satoshi.ota@tier4.jp takayuki.murooka@tier4.jp
common/tier4_debug_tools/* kenji.miyake@tier4.jp
common/tier4_localization_rviz_plugin/* isamu.takagi@tier4.jp
common/autoware_point_types/* taichi.higashide@tier4.jp
common/tier4_screen_capture_rviz_plugin/* taiki.tanaka@tier4.jp
common/tier4_control_rviz_plugin/* taiki.tanaka@tier4.jp
common/osqp_interface/* maxime.clement@tier4.jp
common/tier4_simulated_clock_rviz_plugin/* maxime.clement@tier4.jp
common/neural_networks_provider/* ambroise.vincent@arm.com
common/global_parameter_loader/* kenji.miyake@tier4.jp
common/autoware_auto_common/* opensource@apex.ai
common/tvm_utility/* ambroise.vincent@arm.com
common/autoware_auto_geometry/* opensource@apex.ai
common/autoware_ad_api_specs/* isamu.takagi@tier4.jp
common/tier4_state_rviz_plugin/* hiroki.ota@tier4.jp
common/tier4_datetime_rviz_plugin/* isamu.takagi@tier4.jp
common/grid_map_utils/* maxime.clement@tier4.jp
common/tier4_autoware_utils/* takamasa.horibe@tier4.jp kenji.miyake@tier4.jp
common/fake_test_node/* opensource@apex.ai
common/autoware_testing/* adam.dabrowski@robotec.ai
common/tier4_api_utils/* isamu.takagi@tier4.jp
common/tier4_calibration_rviz_plugin/* tomoya.kimura@tier4.jp
common/interpolation/* fumiya.watanabe@tier4.jp takayuki.murooka@tier4.jp
common/time_utils/* christopherj.ho@gmail.com
common/polar_grid/* yukihiro.saito@tier4.jp
common/tier4_vehicle_rviz_plugin/* yukihiro.saito@tier4.jp
launch/tier4_vehicle_launch/* yukihiro.saito@tier4.jp
launch/tier4_system_launch/* kenji.miyake@tier4.jp
launch/tier4_map_launch/* ryohsuke.mitsudome@tier4.jp
launch/tier4_control_launch/* takamasa.horibe@tier4.jp
launch/tier4_sensing_launch/* yukihiro.saito@tier4.jp
launch/tier4_autoware_api_launch/* isamu.takagi@tier4.jp ryohsuke.mitsudome@tier4.jp
launch/tier4_perception_launch/* yukihiro.saito@tier4.jp
launch/tier4_planning_launch/* takamasa.horibe@tier4.jp
launch/tier4_localization_launch/* yamato.ando@tier4.jp
launch/tier4_simulator_launch/* keisuke.shima@tier4.jp
evaluator/localization_evaluator/* dominik.jargot@robotec.ai
evaluator/kinematic_evaluator/* dominik.jargot@robotec.ai
map/map_loader/* ryohsuke.mitsudome@tier4.jp kenji.miyake@tier4.jp
map/map_tf_generator/* azumi.suzuki@tier4.jp
map/util/lanelet2_map_preprocessor/* ryohsuke.mitsudome@tier4.jp
simulator/simple_planning_simulator/* takamasa.horibe@tier4.jp
simulator/dummy_perception_publisher/* yukihiro.saito@tier4.jp
simulator/fault_injection/* keisuke.shima@tier4.jp
tools/simulator_test/simulator_compatibility_test/* shpark@morai.ai
sensing/livox/livox_tag_filter/* kenji.miyake@tier4.jp
sensing/pointcloud_preprocessor/* abrahammonrroy@yahoo.com yukihiro.saito@tier4.jp
sensing/probabilistic_occupancy_grid_map/* yukihiro.saito@tier4.jp
sensing/imu_corrector/* yamato.ando@tier4.jp
sensing/geo_pos_conv/* yamato.ando@tier4.jp
sensing/image_transport_decompressor/* yukihiro.saito@tier4.jp
sensing/vehicle_velocity_converter/* ryu.yamamoto@tier4.jp
sensing/image_diagnostics/* dai.nguyen@tier4.jp
sensing/tier4_pcl_extensions/* ryu.yamamoto@tier4.jp
sensing/gnss_poser/* yamato.ando@tier4.jp
planning/freespace_planner/* takamasa.horibe@tier4.jp
planning/obstacle_cruise_planner/* takayuki.murooka@tier4.jp yutaka.shimizu@tier4.jp
planning/planning_error_monitor/* yutaka.shimizu@tier4.jp
planning/surround_obstacle_checker/* satoshi.ota@tier4.jp
planning/costmap_generator/* kenji.miyake@tier4.jp
planning/behavior_path_planner/* zulfaqar.azmi@tier4.jp kosuke.takeuchi@tier4.jp kosuke.takeuchi@tier4.jp fumiya.watanabe@tier4.jp takamasa.horibe@tier4.jp yutaka.shimizu@tier4.jp takayuki.murooka@tier4.jp
planning/obstacle_stop_planner/* satoshi.ota@tier4.jp
planning/behavior_velocity_planner/* mamoru.sobue@tier4.jp satoshi.ota@tier4.jp kyoichi.sugahara@tier4.jp taiki.tanaka@tier4.jp kosuke.takeuchi@tier4.jp satoshi.ota@tier4.jp mamoru.sobue@tier4.jp yutaka.shimizu@tier4.jp kosuke.takeuchi@tier4.jp tomohito.ando@tier4.jp
planning/rtc_auto_approver/* fumiya.watanabe@tier4.jp
planning/scenario_selector/* kenji.miyake@tier4.jp
planning/planning_evaluator/* maxime.clement@tier4.jp
planning/rtc_interface/* fumiya.watanabe@tier4.jp
planning/planning_debug_tools/* takamasa.horibe@tier4.jp
planning/external_velocity_limit_selector/* satoshi.ota@tier4.jp
planning/freespace_planning_algorithms/* takamasa.horibe@tier4.jp
planning/obstacle_avoidance_planner/* takayuki.murooka@tier4.jp
planning/motion_velocity_smoother/* fumiya.watanabe@tier4.jp
planning/route_handler/* fumiya.watanabe@tier4.jp
planning/mission_planner/* ryohsuke.mitsudome@tier4.jp
perception/shape_estimation/* yukihiro.saito@tier4.jp
perception/front_vehicle_velocity_estimator/* satoshi.tanaka@tier4.jp
perception/traffic_light_visualization/* yukihiro.saito@tier4.jp
perception/detection_by_tracker/* yukihiro.saito@tier4.jp
perception/object_range_splitter/* yukihiro.saito@tier4.jp
perception/heatmap_visualizer/* kotaro.uetake@tier4.jp
perception/detected_object_feature_remover/* tomoya.kimura@tier4.jp
perception/crosswalk_traffic_light_estimator/* satoshi.ota@tier4.jp
perception/euclidean_cluster/* yukihiro.saito@tier4.jp
perception/image_projection_based_fusion/* yukihiro.saito@tier4.jp yusuke.muramatsu@tier4.jp
perception/traffic_light_ssd_fine_detector/* daisuke.nishimatsu@tier4.jp
perception/lidar_centerpoint/* yusuke.muramatsu@tier4.jp
perception/map_based_prediction/* yutaka.shimizu@tier4.jp
perception/multi_object_tracker/* yukihiro.saito@tier4.jp jilada.eccleston@tier4.jp
perception/object_merger/* yukihiro.saito@tier4.jp
perception/elevation_map_loader/* kosuke.takeuchi@tier4.jp taichi.higashide@tier4.jp
perception/traffic_light_map_based_detector/* yukihiro.saito@tier4.jp
perception/tensorrt_yolo/* daisuke.nishimatsu@tier4.jp
perception/lidar_apollo_instance_segmentation/* yukihiro.saito@tier4.jp
perception/radar_fusion_to_detected_object/* satoshi.tanaka@tier4.jp
perception/radar_tracks_msgs_converter/* satoshi.tanaka@tier4.jp
perception/traffic_light_classifier/* yukihiro.saito@tier4.jp
perception/detected_object_validation/* yukihiro.saito@tier4.jp
perception/ground_segmentation/* abrahammonrroy@yahoo.com yukihiro.saito@tier4.jp
perception/occupancy_grid_map_outlier_filter/* abrahammonrroy@yahoo.com yukihiro.saito@tier4.jp
perception/compare_map_segmentation/* abrahammonrroy@yahoo.com yukihiro.saito@tier4.jp
vehicle/steer_offset_estimator/* taiki.tanaka@tier4.jp
vehicle/raw_vehicle_cmd_converter/* takamasa.horibe@tier4.jp
vehicle/vehicle_info_util/* yamato.ando@tier4.jp
vehicle/accel_brake_map_calibrator/accel_brake_map_calibrator/* tomoya.kimura@tier4.jp
vehicle/external_cmd_converter/* takamasa.horibe@tier4.jp
localization/pose_initializer/* yamato.ando@tier4.jp
localization/ndt_pcl_modified/* yamato.ando@tier4.jp
localization/pose2twist/* yamato.ando@tier4.jp
localization/ndt_scan_matcher/* yamato.ando@tier4.jp
localization/gyro_odometer/* yamato.ando@tier4.jp
localization/localization_error_monitor/* yamato.ando@tier4.jp
localization/initial_pose_button_panel/* yamato.ando@tier4.jp
localization/twist2accel/* koji.minoda@tier4.jp yamato.ando@tier4.jp
localization/ndt/* yamato.ando@tier4.jp
localization/ekf_localizer/* takamasa.horibe@tier4.jp koji.minoda@tier4.jp yamato.ando@tier4.jp
localization/stop_filter/* koji.minoda@tier4.jp yamato.ando@tier4.jp
system/default_ad_api_helpers/ad_api_adaptors/* isamu.takagi@tier4.jp
system/velodyne_monitor/* fumihito.ito@tier4.jp
system/dummy_infrastructure/* kenji.miyake@tier4.jp
system/topic_state_monitor/* kenji.miyake@tier4.jp
system/bluetooth_monitor/* fumihito.ito@tier4.jp
system/ad_service_state_monitor/* kenji.miyake@tier4.jp
system/system_monitor/* fumihito.ito@tier4.jp
system/emergency_handler/* kenji.miyake@tier4.jp
system/dummy_diag_publisher/* kenji.miyake@tier4.jp
system/system_error_monitor/* kenji.miyake@tier4.jp
system/default_ad_api/* isamu.takagi@tier4.jp
1 change: 0 additions & 1 deletion .yamllint.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
extends: default

ignore: |
.clang-tidy
*.param.yaml
rules:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
intersection:
state_transit_margin_time: 0.5
stop_line_margin: 3.0
keep_detection_line_margin: 1.0 # distance (toward path end) from generated stop line. keep detection if ego is before this line and ego.vel < keep_detection_vel_thr
keep_detection_vel_thr: 0.833 # == 3.0km/h
stuck_vehicle_detect_dist: 3.0 # this should be the length between cars when they are stopped. The actual stuck vehicle detection length will be this value + vehicle_length.
stuck_vehicle_ignore_dist: 7.0 # obstacle stop max distance(5.0m) + stuck vehicle size / 2 (0.0m-)
stuck_vehicle_vel_thr: 0.833 # 0.833m/s = 3.0km/h
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,8 @@ std::vector<PathWithLaneId> GeometricParallelParking::planOneTrial(
// debug
Cr_.pose = Cr;
Cr_.header = planner_data_->route_handler->getRouteHeader();
Cr_.pose = Cr;
Cr_.header = planner_data_->route_handler->getRouteHeader();
Cl_.pose = Cl;
Cl_.header = planner_data_->route_handler->getRouteHeader();
start_pose_.pose = start_pose;
start_pose_.header = planner_data_->route_handler->getRouteHeader();
arc_end_pose_.pose = arc_end_pose;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
intersection:
state_transit_margin_time: 0.5
stop_line_margin: 3.0
keep_detection_line_margin: 1.0 # distance (toward path end) from generated stop line. keep detection if ego is before this line and ego.vel < keep_detection_vel_thr
keep_detection_vel_thr: 0.833 # == 3.0km/h
stuck_vehicle_detect_dist: 3.0 # this should be the length between cars when they are stopped. The actual stuck vehicle detection length will be this value + vehicle_length.
stuck_vehicle_ignore_dist: 7.0 # obstacle stop max distance(5.0m) + stuck vehicle size / 2 (0.0m-)
stuck_vehicle_vel_thr: 0.833 # 0.833m/s = 3.0km/h
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ class IntersectionModule : public SceneModuleInterface
{
double state_transit_margin_time;
double stop_line_margin; //! distance from auto-generated stopline to detection_area boundary
double keep_detection_line_margin; //! distance (toward path end) from generated stop line.
//! keep detection if ego is before this line and ego.vel <
//! keep_detection_vel_thr
double keep_detection_vel_thr;
double stuck_vehicle_detect_dist; //! distance from end point to finish stuck vehicle check
double
stuck_vehicle_ignore_dist; //! distance from intersection start to start stuck vehicle check
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ int insertPoint(
autoware_auto_planning_msgs::msg::PathWithLaneId * inout_path);

bool hasLaneId(const autoware_auto_planning_msgs::msg::PathPointWithLaneId & p, const int id);
bool hasDuplicatedPoint(
bool getDuplicatedPointIdx(
const autoware_auto_planning_msgs::msg::PathWithLaneId & path,
const geometry_msgs::msg::Point & point, int * duplicated_point_idx);

Expand All @@ -54,6 +54,14 @@ bool getObjectiveLanelets(
std::vector<lanelet::ConstLanelets> * objective_lanelets_with_margin_result,
const rclcpp::Logger logger);

struct StopLineIdx
{
int first_idx_inside_lane = -1;
int pass_judge_line_idx = -1;
int stop_line_idx = -1;
int keep_detection_line_idx = -1;
};

/**
* @brief Generate a stop line and insert it into the path. If the stop line is defined in the map,
* read it from the map; otherwise, generate a stop line at a position where it will not collide.
Expand All @@ -68,9 +76,10 @@ bool getObjectiveLanelets(
bool generateStopLine(
const int lane_id, const std::vector<lanelet::CompoundPolygon3d> detection_areas,
const std::shared_ptr<const PlannerData> & planner_data, const double stop_line_margin,
const double keep_detection_line_margin,
autoware_auto_planning_msgs::msg::PathWithLaneId * original_path,
const autoware_auto_planning_msgs::msg::PathWithLaneId & target_path, int * stop_line_idx,
int * pass_judge_line_idx, int * first_idx_inside_lane, const rclcpp::Logger logger);
const autoware_auto_planning_msgs::msg::PathWithLaneId & target_path,
StopLineIdx * stop_line_idxs, const rclcpp::Logger logger);

/**
* @brief If use_stuck_stopline is true, a stop line is generated before the intersection.
Expand Down Expand Up @@ -118,6 +127,22 @@ std::vector<int> getLaneletIdsFromLaneletsVec(const std::vector<lanelet::ConstLa
lanelet::ConstLanelet generateOffsetLanelet(
const lanelet::ConstLanelet lanelet, double right_margin, double left_margin);
geometry_msgs::msg::Pose toPose(const geometry_msgs::msg::Point & p);

/**
* @brief check if ego is over the target_idx. If the index is same, compare the exact pose
* @param path path
* @param closest_idx ego's closest index on the path
* @param current_pose ego's exact pose
* @return true if ego is over the target_idx
*/
bool isOverTargetIndex(
const autoware_auto_planning_msgs::msg::PathWithLaneId & path, const int closest_idx,
const geometry_msgs::msg::Pose & current_pose, const int target_idx);

bool isBeforeTargetIndex(
const autoware_auto_planning_msgs::msg::PathWithLaneId & path, const int closest_idx,
const geometry_msgs::msg::Pose & current_pose, const int target_idx);

} // namespace util
} // namespace behavior_velocity_planner

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ inline bool smoothPath(

// Resample trajectory with ego-velocity based interval distances
auto traj_resampled = smoother->resampleTrajectory(
*traj_lateral_acc_filtered, v0, current_pose, std::numeric_limits<double>::max());
*traj_lateral_acc_filtered, v0, current_pose, planner_data->ego_nearest_dist_threshold,
planner_data->ego_nearest_yaw_threshold);
const size_t traj_resampled_closest = motion_utils::findFirstNearestIndexWithSoftConstraints(
*traj_resampled, current_pose, planner_data->ego_nearest_dist_threshold,
planner_data->ego_nearest_yaw_threshold);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ IntersectionModuleManager::IntersectionModuleManager(rclcpp::Node & node)
const auto vehicle_info = vehicle_info_util::VehicleInfoUtil(node).getVehicleInfo();
ip.state_transit_margin_time = node.declare_parameter(ns + ".state_transit_margin_time", 2.0);
ip.stop_line_margin = node.declare_parameter(ns + ".stop_line_margin", 1.0);
ip.keep_detection_line_margin = node.declare_parameter(ns + ".keep_detection_line_margin", 1.0);
ip.keep_detection_vel_thr = node.declare_parameter(ns + ".keep_detection_vel_thr", 0.833);
ip.stuck_vehicle_detect_dist = node.declare_parameter(ns + ".stuck_vehicle_detect_dist", 3.0);
ip.stuck_vehicle_ignore_dist = node.declare_parameter(ns + ".stuck_vehicle_ignore_dist", 5.0) +
vehicle_info.max_longitudinal_offset_m;
Expand Down
Loading

0 comments on commit 83afdd1

Please sign in to comment.