Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add planning_launch package #164

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
9c3b18f
release v0.4.0
mitsudome-r Sep 18, 2020
07ec181
add obstacle avoid param (#62)
k0suke-murakami Aug 6, 2020
9af70ba
Feature/add stop reason lane change (#69)
tkimura4 Aug 20, 2020
79d495c
removed ROS1 package
mitsudome-r Oct 6, 2020
d4d1ea8
Revert "removed ROS1 package"
mitsudome-r Oct 8, 2020
5b9f366
add COLCON_IGNORE file to all ROS1 packages
mitsudome-r Oct 8, 2020
6038fd2
rename *.launch files to *.launch.xml
mitsudome-r Oct 23, 2020
f7a8f7f
port planning launch
TakaHoribe Nov 6, 2020
cda25e9
add missing porting
TakaHoribe Nov 25, 2020
3f0a45a
replace rostopic pub with executable in behavior_planning.launch.xml
mitsudome-r Nov 25, 2020
b887ab9
fix remapping of topics in launch files
mitsudome-r Nov 25, 2020
b28a599
modify integer parameters to double parameters
mitsudome-r Nov 25, 2020
bae8df0
fix arguments in parking.launch.xml
mitsudome-r Nov 25, 2020
ca9c184
fix remapping of topics in scenario_planning.launch.xml
mitsudome-r Nov 25, 2020
69de6df
ROS2 Linting: planning_launch (#38)
jilaada Dec 23, 2020
6113df7
Ros2 port autoware launch (#35)
mitsudome-r Jan 7, 2021
3bfacfe
Ros2 v0.8.0 planning launch (#59)
TakaHoribe Feb 17, 2021
b8a39a9
Ros2 v0.8.0 fix packages (#64)
tkimura4 Feb 24, 2021
96eb71d
Rename ROS-related .yaml to .param.yaml (#65)
kenji-miyake Feb 24, 2021
ee32259
Ros2 update v0.9.0 (#67)
wep21 Mar 1, 2021
9fda905
Ros2 fix topic name part1 (#83)
isamu-takagi Mar 12, 2021
07f2474
Fix typo in planning launch (#92)
kmiya Mar 18, 2021
6661e56
Fix various typos in launch files (#97)
kmiya Mar 24, 2021
7869c77
add use_sim-time option (#99)
tkimura4 Mar 26, 2021
3f5d204
Format launch files (#178)
kenji-miyake Mar 30, 2021
2703537
Sync public repo (#185)
mitsudome-r Apr 5, 2021
0b4a028
Ros2 lsim test (#186)
wep21 Apr 6, 2021
557fc3c
Use set_parameter for use_sim_time (#198)
wep21 Apr 26, 2021
9ca7457
Add container launch for planning (#205)
wep21 May 12, 2021
3841976
Rename AstarNavi to FreespacePlannerNode (#213)
kenji-miyake May 14, 2021
aabaa19
Fix typos in launch files (#231)
kenji-miyake May 24, 2021
2b9a1bf
Format launch files (#228)
kenji-miyake May 24, 2021
b961a75
Fix topic name of external traffic light input (#236)
wep21 Jun 3, 2021
9e379f7
Add namespace to behavior_velocity_planner (#252)
kenji-miyake Jun 29, 2021
05bcb16
Fix typo applygin->applying (#304)
kosuke55 Jul 29, 2021
3d87202
add description for planning_launch #335
h-ohta Aug 12, 2021
0149b77
add README.md and svg files (#328)
h-ohta Aug 12, 2021
0345234
Add autoware api (#376)
isamu-takagi Aug 31, 2021
5f54489
Merge pull request #359 from tier4/feature/add_plannig_error_monitor …
TakaHoribe Sep 3, 2021
db4f668
Feature/add virtual traffic light planner (#317)
kenji-miyake Sep 3, 2021
e5412cf
Fix pre-commit (#407)
kenji-miyake Sep 15, 2021
01dc2c6
fix parameter name (#470)
yabuta Oct 20, 2021
34c19d1
Feature/porting behavior path planner (#300)
wep21 Oct 27, 2021
11344a0
Feature/porting motion velocity smoother (#302)
wep21 Oct 27, 2021
bc7ca44
Master sync parking module (#303)
wep21 Oct 27, 2021
89a4e93
update rviz config & planner params (#305)
satoshi-ota Oct 27, 2021
a8e500e
Feature/porting occlusion spot (#309)
tkimura4 Oct 27, 2021
c27867d
Use multithread for lane driving planning (#327)
wep21 Oct 27, 2021
ed7ee3e
Fix import order of parking.launch.py (#347)
kenji-miyake Oct 27, 2021
96fd9d5
Add analytical smoother config (#360)
mkuri Oct 27, 2021
0ca1cb8
update acc param (#358)
tkimura4 Oct 27, 2021
717764c
add rosparam for vehicle center optimization (#362)
takayuki5168 Oct 27, 2021
d1f645e
update ros param for .iv (#353)
takayuki5168 Oct 27, 2021
4af2e2a
Fix/obstacle avoid revert some improvements (#381)
takayuki5168 Sep 2, 2021
ce4519a
update side shift param (#370)
TakaHoribe Sep 7, 2021
1e6df96
add yaml & load lane following params (#377)
satoshi-ota Sep 15, 2021
a268b52
add pull over/out module (#430)
kyoichi-sugahara Sep 26, 2021
4396579
Update behavior path planner launch files (#433)
rej55 Sep 30, 2021
fd74481
Fix for pre-commit (437)
Oct 4, 2021
8dddeaa
change threshold_distance_object_is_on_center to 1.0 (#441)
TakaHoribe Oct 5, 2021
144df76
delete optimizer (#456)
tkimura4 Oct 12, 2021
e07babe
add params for acceleration prevention (#454) (#457)
tier4-autoware-private-bot[bot] Oct 13, 2021
b5fd0df
Feature/use external velocity limit selector (#460)
satoshi-ota Oct 15, 2021
3e91be7
Feature/add slow down params (#448)
satoshi-ota Oct 18, 2021
71a9aaa
Fix/use common param (#465)
satoshi-ota Oct 19, 2021
2f27ddf
Change formatter to black (#488)
Nov 2, 2021
96bcc50
twist -> odometry (#109)
takayuki5168 Nov 10, 2021
616494f
Auto/fix launch (#110)
tkimura4 Nov 15, 2021
74e0a32
remove unused depend/launcher (#112)
tkimura4 Nov 15, 2021
5c9ea3f
Fix remapping in control.launch.py (#115)
rej55 Nov 17, 2021
c79da48
Sync .auto branch with the latest branch in internal repository (#120)
tkimura4 Nov 18, 2021
f84e8c2
Update traffic light topic name (#131)
wep21 Nov 25, 2021
2bb3f21
Fix no ground pointcloud topic name (#134)
wep21 Nov 25, 2021
8b7e410
auto/fix occupancy grid map topic name (#137)
satoshi-ota Nov 29, 2021
98ad78c
fix/rename segmentation namespace (#139)
satoshi-ota Nov 29, 2021
3724434
add vehicle info parameter
tkimura4 Dec 10, 2021
fbc9fd9
ci(pre-commit): autofix
pre-commit-ci[bot] Dec 13, 2021
d6a862f
Merge branch 'tier4/proposal' into 1-add-planning-launch
taikitanaka3 Dec 13, 2021
d22f126
remove unused import
tkimura4 Dec 14, 2021
42c04ff
remove unused import
tkimura4 Dec 14, 2021
9f1b9d2
Merge branch 'tier4/proposal' into 1-add-planning-launch
tkimura4 Dec 14, 2021
a0fbd18
Merge branch 'tier4/proposal' into 1-add-planning-launch
tkimura4 Dec 14, 2021
5a72154
Merge branch 'tier4/proposal' into 1-add-planning-launch
taikitanaka3 Dec 14, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions launch/planning_launch/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
cmake_minimum_required(VERSION 3.5)
project(planning_launch)

if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
endif()
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wno-unused-parameter -Wall -Wextra -Wpedantic)
endif()

find_package(ament_cmake_auto REQUIRED)
ament_auto_find_build_dependencies()

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
endif()

ament_auto_package(
INSTALL_TO_SHARE
launch
config
)
16 changes: 16 additions & 0 deletions launch/planning_launch/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# planning_launch

## Structure

![planning_launch](./planning_launch.drawio.svg)

## Package Dependencies

Please see `<exec_depend>` in `package.xml`.

## Usage

```xml
<include file="$(find-pkg-share planning_launch)/launch/planning.launch.xml">
</include>
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/**:
ros__parameters:
# constraints param for normal driving
normal:
min_acc: -0.5 # min deceleration [m/ss]
max_acc: 1.0 # max acceleration [m/ss]
min_jerk: -0.5 # min jerk [m/sss]
max_jerk: 1.0 # max jerk [m/sss]

# constraints to be observed
limit:
min_acc: -2.5 # min deceleration limit [m/ss]
max_acc: 1.0 # max acceleration limit [m/ss]
min_jerk: -1.5 # min jerk limit [m/sss]
max_jerk: 1.5 # max jerk limit [m/sss]
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**:
ros__parameters:
resample:
ds_resample: 0.1
num_resample: 1
delta_yaw_threshold: 0.785

latacc:
enable_constant_velocity_while_turning: false
constant_velocity_dist_threshold: 2.0

forward:
max_acc: 1.0
min_acc: -1.0
max_jerk: 0.3
min_jerk: -0.3
kp: 0.3

backward:
start_jerk: -0.1
min_jerk_mild_stop: -0.3
min_jerk: -1.5
min_acc_mild_stop: -1.0
min_acc: -2.5
span_jerk: -0.01
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**:
ros__parameters:
jerk_weight: 0.1 # weight for "smoothness" cost for jerk
over_v_weight: 10000.0 # weight for "over speed limit" cost
over_a_weight: 500.0 # weight for "over accel limit" cost
over_j_weight: 200.0 # weight for "over jerk limit" cost
jerk_filter_ds: 0.1 # resampling ds for jerk filter
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/**:
ros__parameters:
pseudo_jerk_weight: 100.0 # weight for "smoothness" cost
over_v_weight: 100000.0 # weight for "over speed limit" cost
over_a_weight: 1000.0 # weight for "over accel limit" cost
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/**:
ros__parameters:
pseudo_jerk_weight: 200.0 # weight for "smoothness" cost
over_v_weight: 100000.0 # weight for "over speed limit" cost
over_a_weight: 5000.0 # weight for "over accel limit" cost
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/**:
ros__parameters:
# motion state constraints
max_velocity: 20.0 # max velocity limit [m/s]

# external velocity limit parameter
margin_to_insert_external_velocity_limit: 0.3 # margin distance to insert external velocity limit [m]

# curve parameters
max_lateral_accel: 0.8 # max lateral acceleration limit [m/ss]
min_curve_velocity: 2.74 # min velocity at lateral acceleration limit [m/ss]
decel_distance_before_curve: 3.5 # slow speed distance before a curve for lateral acceleration limit
decel_distance_after_curve: 2.0 # slow speed distance after a curve for lateral acceleration limit

# engage & replan parameters
replan_vel_deviation: 5.53 # velocity deviation to replan initial velocity [m/s]
engage_velocity: 0.25 # engage velocity threshold [m/s] (if the trajectory velocity is higher than this value, use this velocity for engage vehicle speed)
engage_acceleration: 0.1 # engage acceleration [m/ss] (use this acceleration when engagement)
engage_exit_ratio: 0.5 # exit engage sequence to normal velocity planning when the velocity exceeds engage_exit_ratio x engage_velocity.
stop_dist_to_prohibit_engage: 0.5 # if the stop point is in this distance, the speed is set to 0 not to move the vehicle [m]

# stop velocity
stopping_velocity: 2.778 # change target velocity to this value before v=0 point [m/s]
stopping_distance: 0.0 # distance for the stopping_velocity [m]. 0 means the stopping velocity is not applied.

# path extraction parameters
extract_ahead_dist: 200.0 # forward trajectory distance used for planning [m]
extract_behind_dist: 5.0 # backward trajectory distance used for planning [m]
delta_yaw_threshold: 1.0472 # Allowed delta yaw between ego pose and trajectory pose [radian]

# resampling parameters for optimization
max_trajectory_length: 200.0 # max trajectory length for resampling [m]
min_trajectory_length: 150.0 # min trajectory length for resampling [m]
resample_time: 5.0 # resample total time for dense sampling [s]
dense_dt: 0.1 # resample time interval for dense sampling [s]
dense_min_interval_distance: 0.1 # minimum points-interval length for dense sampling [m]
sparse_dt: 0.5 # resample time interval for sparse sampling [s]
sparse_min_interval_distance: 4.0 # minimum points-interval length for sparse sampling [m]

# resampling parameters for post process
post_max_trajectory_length: 300.0 # max trajectory length for resampling [m]
post_min_trajectory_length: 30.0 # min trajectory length for resampling [m]
post_resample_time: 10.0 # resample total time for dense sampling [s]
post_dense_dt: 0.1 # resample time interval for dense sampling [s]
post_dense_min_interval_distance: 0.1 # minimum points-interval length for dense sampling [m]
post_sparse_dt: 0.1 # resample time interval for sparse sampling [s]
post_sparse_min_interval_distance: 1.0 # minimum points-interval length for sparse sampling [m]

# system
over_stop_velocity_warn_thr: 1.389 # used to check if the optimization exceeds the input velocity on the stop point
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# see AvoidanceParameters description in avoidance_module_data.hpp for description.
/**:
ros__parameters:
avoidance:
resample_interval_for_planning: 0.3
resample_interval_for_output: 4.0
detection_area_right_expand_dist: 0.0
detection_area_left_expand_dist: 1.0

threshold_distance_object_is_on_center: 1.0 # [m]
threshold_speed_object_is_stopped: 1.0 # [m/s]
object_check_forward_distance: 150.0 # [m]
object_check_backward_distance: 2.0 # [m]
lateral_collision_margin: 2.0 # [m]

prepare_time: 2.0 # [s]
min_prepare_distance: 1.0 # [m]
min_avoidance_distance: 10.0 # [m]

min_nominal_avoidance_speed: 7.0 # [m/s]
min_sharp_avoidance_speed: 1.0 # [m/s]

max_right_shift_length: 5.0
max_left_shift_length: 5.0

nominal_lateral_jerk: 0.2 # [m/s3]
max_lateral_jerk: 1.0 # [m/s3]

object_hold_max_count: 20

# For prevention of large acceleration while avoidance
min_avoidance_speed_for_acc_prevention: 3.0 # [m/s]
max_avoidance_acceleration: 0.5 # [m/ss]

# for debug
publish_debug_marker: false
print_debug_info: false

# not enabled yet
longitudinal_collision_margin_min_distance: 0.0 # [m]
longitudinal_collision_margin_time: 0.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**:
ros__parameters:
backward_path_length: 5.0
forward_path_length: 300.0
backward_length_buffer_for_end_of_lane: 5.0
backward_length_buffer_for_end_of_pull_over: 5.0
backward_length_buffer_for_end_of_pull_out: 5.0
minimum_lane_change_length: 12.0
minimum_pull_over_length: 16.0
drivable_area_resolution: 0.1
drivable_area_width: 100.0
drivable_area_height: 50.0
refine_goal_search_radius_range: 7.5
intersection_search_distance: 30.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**:
ros__parameters:
lane_change:
min_stop_distance: 5.0
stop_time: 2.0
hysteresis_buffer_distance: 2.0
lane_change_prepare_duration: 4.0
lane_changing_duration: 8.0
lane_change_finish_judge_buffer: 3.0
minimum_lane_change_velocity: 5.6
prediction_duration: 8.0
prediction_time_resolution: 0.5
static_obstacle_velocity_thresh: 1.5
maximum_deceleration: 1.0
enable_abort_lane_change: false
enable_collision_check_at_prepare_phase: false
use_predicted_path_outside_lanelet: false
use_all_predicted_path: false
enable_blocked_by_obstacle: false
lane_change_search_distance: 30.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**:
ros__parameters:
lane_following:
expand_drivable_area: false
right_bound_offset: 0.5
left_bound_offset: 0.5
lane_change_prepare_duration: 2.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**:
ros__parameters:
pull_out:
min_stop_distance: 2.0
stop_time: 0.0
hysteresis_buffer_distance: 1.0
pull_out_prepare_duration: 4.0
pull_out_duration: 2.0
pull_out_finish_judge_buffer: 1.0
minimum_pull_out_velocity: 2.0
prediction_duration: 30.0
prediction_time_resolution: 0.5
static_obstacle_velocity_thresh: 1.5
maximum_deceleration: 1.0
enable_collision_check_at_prepare_phase: false
use_predicted_path_outside_lanelet: false
use_all_predicted_path: false
use_dynamic_object: true
enable_blocked_by_obstacle: false
pull_out_search_distance: 30.0
before_pull_out_straight_distance: 5.0
after_pull_out_straight_distance: 5.0
maximum_lateral_jerk: 2.0
minimum_lateral_jerk: 0.5
deceleration_interval: 15.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**:
ros__parameters:
pull_over:
min_stop_distance: 5.0
stop_time: 2.0
hysteresis_buffer_distance: 2.0
pull_over_prepare_duration: 4.0
pull_over_duration: 2.0
pull_over_finish_judge_buffer: 3.0
minimum_pull_over_velocity: 3.0
prediction_duration: 30.0
prediction_time_resolution: 0.5
static_obstacle_velocity_thresh: 1.5
maximum_deceleration: 1.0
enable_collision_check_at_prepare_phase: false
use_predicted_path_outside_lanelet: false
use_all_predicted_path: false
enable_blocked_by_obstacle: false
pull_over_search_distance: 30.0
after_pull_over_straight_distance: 5.0
before_pull_over_straight_distance: 5.0
margin_from_boundary: 0.5
maximum_lateral_jerk: 2.0
minimum_lateral_jerk: 0.5
deceleration_interval: 15.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**:
ros__parameters:
side_shift:
min_distance_to_start_shifting: 5.0
time_to_start_shifting: 1.0
shifting_lateral_jerk: 0.2
min_shifting_distance: 5.0
min_shifting_speed: 5.56
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**:
ros__parameters:
min_stop_distance: 5.0
stop_time: 2.0
hysteresis_buffer_distance: 2.0
backward_path_length: 5.0
forward_path_length: 300.0
max_accel: -5.0
lane_change_prepare_duration: 4.0
lane_changing_duration: 8.0
backward_length_buffer_for_end_of_lane: 5.0
lane_change_finish_judge_buffer: 3.0
minimum_lane_change_length: 12.0
minimum_lane_change_velocity: 5.6
prediction_duration: 8.0
prediction_time_resolution: 0.5
drivable_area_resolution: 0.1
drivable_area_width: 100.0
drivable_area_height: 50.0
static_obstacle_velocity_thresh: 1.5
maximum_deceleration: 1.0
refine_goal_search_radius_range: 7.5
Loading