Skip to content

Commit f939aae

Browse files
Merge pull request #277 from tier4/sync-upstream
chore: sync upstream
2 parents 1aeec12 + 7672f47 commit f939aae

File tree

58 files changed

+800
-274
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+800
-274
lines changed

.github/workflows/build-and-test-differential.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
build-depends-repos: build_depends.repos
2323
steps:
2424
- name: Cancel previous runs
25-
uses: styfle/cancel-workflow-action@0.9.1
25+
uses: styfle/cancel-workflow-action@0.10.0
2626

2727
- name: Check out repository
2828
uses: actions/checkout@v3

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ci:
44

55
repos:
66
- repo: https://github.com/pre-commit/pre-commit-hooks
7-
rev: v4.2.0
7+
rev: v4.3.0
88
hooks:
99
- id: check-json
1010
- id: check-merge-conflict
@@ -24,7 +24,7 @@ repos:
2424
args: [-c, .markdownlint.yaml, --fix]
2525

2626
- repo: https://github.com/pre-commit/mirrors-prettier
27-
rev: v2.6.2
27+
rev: v2.7.1
2828
hooks:
2929
- id: prettier
3030

@@ -46,7 +46,7 @@ repos:
4646
- id: shellcheck
4747

4848
- repo: https://github.com/scop/pre-commit-shfmt
49-
rev: v3.5.0-1
49+
rev: v3.5.1-1
5050
hooks:
5151
- id: shfmt
5252
args: [-w, -s, -i=4]
@@ -57,7 +57,7 @@ repos:
5757
- id: isort
5858

5959
- repo: https://github.com/psf/black
60-
rev: 22.3.0
60+
rev: 22.6.0
6161
hooks:
6262
- id: black
6363
args: [--line-length=100]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# autoware_launcher
22

3-
## Getting Started
3+
## Getting started
44

55
### Using real vehicle
66

@@ -14,7 +14,7 @@ ros2 launch autoware_launch autoware.launch.xml map_path:=/path/to/map_folder ve
1414
ros2 launch autoware_launch planning_simulator.launch.xml map_path:=/path/to/map_folder vehicle_model:=[vehicle_name] sensor_model:=[sensor_name]
1515
```
1616

17-
## Directory Structure
17+
## Directory structure
1818

1919
- [autoware_launch](./autoware_launch)
2020
- [control_launch](./control_launch)

autoware_api_launch/launch/include/external_api_adaptor.launch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def _create_api_node(node_name, class_name, **kwargs):
2929

3030
def generate_launch_description():
3131
components = [
32+
_create_api_node("calibration_status", "CalibrationStatus"),
3233
_create_api_node("cpu_usage", "CpuUsage"),
3334
_create_api_node("diagnostics", "Diagnostics"),
3435
_create_api_node("door", "Door"),

autoware_launch/launch/autoware.launch.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<!-- Optional parameters -->
88
<arg name="rviz" default="true" description="launch rviz"/>
99
<arg name="use_pointcloud_container" default="true" description="launch pointcloud container"/>
10+
<arg name="perception_mode" default="camera_lidar_fusion" description="select perception mode. camera_lidar_radar_fusion, camera_lidar_fusion, lidar_radar_fusion, lidar, radar"/>
1011
<arg name="pointcloud_container_name" default="pointcloud_container"/>
1112
<arg name="lanelet2_map_file" default="lanelet2_map.osm" description="lanelet2 map file name"/>
1213
<arg name="pointcloud_map_file" default="pointcloud_map.pcd" description="pointcloud map file name"/>
@@ -59,6 +60,7 @@
5960
<arg name="vehicle_mirror_param_file" value="$(find-pkg-share $(var vehicle_model)_description)/config/mirror.param.yaml"/>
6061
<arg name="use_pointcloud_container" value="$(var use_pointcloud_container)" />
6162
<arg name="pointcloud_container_name" value="$(var pointcloud_container_name)"/>
63+
<arg name="perception_mode" value="$(var perception_mode)"/>
6264
</include>
6365
</group>
6466

@@ -70,8 +72,7 @@
7072
<!-- Perception -->
7173
<group>
7274
<include file="$(find-pkg-share perception_launch)/launch/perception.launch.xml">
73-
<!-- options for mode: camera_lidar_fusion, lidar, camera -->
74-
<arg name="mode" value="camera_lidar_fusion" />
75+
<arg name="mode" value="$(var perception_mode)" />
7576
<arg name="use_pointcloud_container" value="$(var use_pointcloud_container)" />
7677
<arg name="pointcloud_container_name" value="$(var pointcloud_container_name)"/>
7778
</include>

autoware_launch/launch/logging_simulator.launch.xml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
<arg name="rviz" default="true" description="launch rviz" />
2020
<arg name="lanelet2_map_file" default="lanelet2_map.osm" description="lanelet2 map file name"/>
2121
<arg name="pointcloud_map_file" default="pointcloud_map.pcd" description="pointcloud map file name"/>
22+
<arg name="perception_mode" default="camera_lidar_fusion" description="select perception mode. camera_lidar_radar_fusion, camera_lidar_fusion, lidar_radar_fusion, lidar, radar"/>
2223
<arg name="use_pointcloud_container" default="true" description="launch pointcloud container"/>
2324
<arg name="pointcloud_container_name" default="pointcloud_container"/>
2425
<arg name="launch_vehicle_interface" default="false"/>
2526
<!-- Optional parameters for scenario simulation -->
2627
<arg name="scenario_simulation" default="false" description="use scenario simulation"/>
27-
<arg name="use_foa" default="false" />
2828

2929
<!-- Global parameters -->
3030
<!-- Do not add "group" in order to propagate global parameters -->
@@ -75,6 +75,7 @@
7575
<arg name="vehicle_mirror_param_file" value="$(find-pkg-share $(var vehicle_model)_description)/config/mirror.param.yaml"/>
7676
<arg name="use_pointcloud_container" value="$(var use_pointcloud_container)" />
7777
<arg name="pointcloud_container_name" value="$(var pointcloud_container_name)"/>
78+
<arg name="perception_mode" value="$(var perception_mode)"/>
7879
</include>
7980
</group>
8081

@@ -86,8 +87,7 @@
8687
<!-- Perception -->
8788
<group>
8889
<include file="$(find-pkg-share perception_launch)/launch/perception.launch.xml" if="$(var perception)">
89-
<!-- options for mode: camera_lidar_fusion, lidar, camera -->
90-
<arg name="mode" value="lidar" />
90+
<arg name="mode" value="$(var perception_mode)" />
9191
<arg name="use_pointcloud_container" value="$(var use_pointcloud_container)" />
9292
<arg name="pointcloud_container_name" value="$(var pointcloud_container_name)"/>
9393
</include>
@@ -98,7 +98,6 @@
9898
<include file="$(find-pkg-share planning_launch)/launch/planning.launch.xml" if="$(var planning)">
9999
<arg name="use_pointcloud_container" value="$(var use_pointcloud_container)"/>
100100
<arg name="pointcloud_container_name" value="$(var pointcloud_container_name)"/>
101-
<arg name="use_foa" value="$(var use_foa)" />
102101
</include>
103102
</group>
104103

@@ -107,7 +106,6 @@
107106
<include file="$(find-pkg-share control_launch)/launch/control.launch.xml" if="$(var control)">
108107
<!-- options for lateral_controller_mode: mpc_follower, pure_pursuit -->
109108
<arg name="lateral_controller_mode" value="mpc_follower" />
110-
<arg name="use_multithread" value="true" />
111109
</include>
112110
</group>
113111

autoware_launch/rviz/autoware.rviz

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,7 @@ Visualization Manager:
724724
Display Twist: true
725725
Display UUID: true
726726
Display Velocity: true
727+
Line Width: 0.03
727728
Enabled: true
728729
MOTORCYCLE:
729730
Alpha: 0.999
@@ -771,6 +772,7 @@ Visualization Manager:
771772
Display Twist: true
772773
Display UUID: true
773774
Display Velocity: true
775+
Line Width: 0.03
774776
Enabled: true
775777
MOTORCYCLE:
776778
Alpha: 0.999
@@ -818,6 +820,7 @@ Visualization Manager:
818820
Display Twist: false
819821
Display UUID: true
820822
Display Velocity: true
823+
Line Width: 0.03
821824
Enabled: true
822825
MOTORCYCLE:
823826
Alpha: 0.999
@@ -843,6 +846,18 @@ Visualization Manager:
843846
Alpha: 0.999
844847
Color: 255; 255; 255
845848
Value: true
849+
- Class: rviz_default_plugins/MarkerArray
850+
Enabled: false
851+
Name: Maneuver
852+
Namespaces:
853+
maneuver: true
854+
Topic:
855+
Depth: 5
856+
Durability Policy: Volatile
857+
History Policy: Keep Last
858+
Reliability Policy: Reliable
859+
Value: /perception/object_recognition/prediction/maneuver
860+
Value: true
846861
Enabled: true
847862
Name: Prediction
848863
- Class: rviz_common/Group
@@ -1018,6 +1033,18 @@ Visualization Manager:
10181033
Reliability Policy: Reliable
10191034
Value: /planning/scenario_planning/lane_driving/behavior_planning/behavior_velocity_planner/virtual_wall/crosswalk
10201035
Value: true
1036+
- Class: rviz_default_plugins/MarkerArray
1037+
Enabled: true
1038+
Name: VirtualWall (Walkway)
1039+
Namespaces:
1040+
{}
1041+
Topic:
1042+
Depth: 5
1043+
Durability Policy: Volatile
1044+
History Policy: Keep Last
1045+
Reliability Policy: Reliable
1046+
Value: /planning/scenario_planning/lane_driving/behavior_planning/behavior_velocity_planner/virtual_wall/walkway
1047+
Value: true
10211048
- Class: rviz_default_plugins/MarkerArray
10221049
Enabled: true
10231050
Name: VirtualWall (DetectionArea)
@@ -1155,6 +1182,18 @@ Visualization Manager:
11551182
Reliability Policy: Reliable
11561183
Value: /planning/scenario_planning/lane_driving/behavior_planning/behavior_velocity_planner/debug/crosswalk
11571184
Value: false
1185+
- Class: rviz_default_plugins/MarkerArray
1186+
Enabled: false
1187+
Name: Walkway
1188+
Namespaces:
1189+
{}
1190+
Topic:
1191+
Depth: 5
1192+
Durability Policy: Volatile
1193+
History Policy: Keep Last
1194+
Reliability Policy: Reliable
1195+
Value: /planning/scenario_planning/lane_driving/behavior_planning/behavior_velocity_planner/debug/walkway
1196+
Value: false
11581197
- Class: rviz_default_plugins/MarkerArray
11591198
Enabled: false
11601199
Name: Intersection
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**:
2+
ros__parameters:
3+
frequency_hz: 10.0
4+
engage_acceptable_limits:
5+
allow_autonomous_in_stopped: true # no check if the velocity is zero, always allowed.
6+
dist_threshold: 1.5
7+
yaw_threshold: 0.524
8+
speed_upper_threshold: 10.0
9+
speed_lower_threshold: -10.0
10+
acc_threshold: 1.5
11+
lateral_acc_threshold: 1.0
12+
lateral_acc_diff_threshold: 0.5
13+
stable_check:
14+
duration: 0.1
15+
dist_threshold: 1.5
16+
speed_upper_threshold: 2.0
17+
speed_lower_threshold: -2.0
18+
yaw_threshold: 0.262

control_launch/config/trajectory_follower/1/lateral_controller.param.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
/**:
22
ros__parameters:
3-
43
# -- system --
5-
ctrl_period: 0.03 # control period [s]
64
traj_resample_dist: 0.1 # path resampling interval [m]
75
use_steer_prediction: false # flag for using steer prediction (do not use steer measurement)
86
admissible_position_error: 5.0 # stop mpc calculation when error is larger than the following value
@@ -40,6 +38,7 @@
4038
mpc_zero_ff_steer_deg: 0.5 # threshold that feed-forward angle becomes zero
4139
mpc_acceleration_limit: 2.0 # limit on the vehicle's acceleration
4240
mpc_velocity_time_constant: 0.3 # time constant used for velocity smoothing
41+
mpc_min_prediction_length: 5.0 # minimum prediction length
4342

4443
# -- vehicle model --
4544
vehicle_model_type: "kinematics" # vehicle model type for mpc prediction. option is kinematics, kinematics_no_delay, and dynamics
@@ -54,9 +53,13 @@
5453
steering_lpf_cutoff_hz: 10.0 # cutoff frequency of lowpass filter for steering command [Hz]
5554
error_deriv_lpf_cutoff_hz: 5.0
5655

57-
# stop state
56+
# stop state: steering command is kept in the previous value in the stop state.
5857
stop_state_entry_ego_speed: 0.2
5958
stop_state_entry_target_speed: 0.2
59+
converged_steer_rad: 0.1
60+
keep_steer_control_until_converged: false
61+
new_traj_duration_time: 1.0
62+
new_traj_end_dist: 0.3
6063

6164
# vehicle parameters
6265
vehicle:

control_launch/config/trajectory_follower/1/longitudinal_controller.param.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/**:
22
ros__parameters:
3-
longitudinal_ctrl_period: 0.03
43
delay_compensation_time: 0.40
54

65
enable_smooth_stop: true
76
enable_overshoot_emergency: false
87
enable_large_tracking_error_emergency: false
98
enable_slope_compensation: true
9+
enable_keep_stopped_until_steer_convergence: false
1010

1111
# state transition
1212
drive_state_stop_dist: 0.5

control_launch/config/trajectory_follower/10/lateral_controller.param.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
/**:
22
ros__parameters:
3-
43
# -- system --
5-
ctrl_period: 0.03 # control period [s]
64
traj_resample_dist: 0.1 # path resampling interval [m]
75
use_steer_prediction: false # flag for using steer prediction (do not use steer measurement)
86
admissible_position_error: 5.0 # stop mpc calculation when error is larger than the following value
@@ -40,6 +38,7 @@
4038
mpc_zero_ff_steer_deg: 0.5 # threshold that feed-forward angle becomes zero
4139
mpc_acceleration_limit: 2.0 # limit on the vehicle's acceleration
4240
mpc_velocity_time_constant: 0.3 # time constant used for velocity smoothing
41+
mpc_min_prediction_length: 5.0 # minimum prediction length
4342

4443
# -- vehicle model --
4544
vehicle_model_type: "kinematics" # vehicle model type for mpc prediction. option is kinematics, kinematics_no_delay, and dynamics
@@ -54,9 +53,13 @@
5453
steering_lpf_cutoff_hz: 10.0 # cutoff frequency of lowpass filter for steering command [Hz]
5554
error_deriv_lpf_cutoff_hz: 5.0
5655

57-
# stop state
56+
# stop state: steering command is kept in the previous value in the stop state.
5857
stop_state_entry_ego_speed: 0.2
5958
stop_state_entry_target_speed: 0.2
59+
converged_steer_rad: 0.1
60+
keep_steer_control_until_converged: false
61+
new_traj_duration_time: 1.0
62+
new_traj_end_dist: 0.3
6063

6164
# vehicle parameters
6265
vehicle:

control_launch/config/trajectory_follower/10/longitudinal_controller.param.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/**:
22
ros__parameters:
3-
longitudinal_ctrl_period: 0.03
43
delay_compensation_time: 0.40
54

65
enable_smooth_stop: true
76
enable_overshoot_emergency: false
87
enable_large_tracking_error_emergency: false
98
enable_slope_compensation: true
9+
enable_keep_stopped_until_steer_convergence: false
1010

1111
# state transition
1212
drive_state_stop_dist: 0.5

control_launch/config/trajectory_follower/2/lateral_controller.param.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
/**:
22
ros__parameters:
3-
43
# -- system --
5-
ctrl_period: 0.03 # control period [s]
64
traj_resample_dist: 0.1 # path resampling interval [m]
75
use_steer_prediction: false # flag for using steer prediction (do not use steer measurement)
86
admissible_position_error: 5.0 # stop mpc calculation when error is larger than the following value
@@ -40,6 +38,7 @@
4038
mpc_zero_ff_steer_deg: 0.5 # threshold that feed-forward angle becomes zero
4139
mpc_acceleration_limit: 2.0 # limit on the vehicle's acceleration
4240
mpc_velocity_time_constant: 0.3 # time constant used for velocity smoothing
41+
mpc_min_prediction_length: 5.0 # minimum prediction length
4342

4443
# -- vehicle model --
4544
vehicle_model_type: "kinematics" # vehicle model type for mpc prediction. option is kinematics, kinematics_no_delay, and dynamics
@@ -54,9 +53,13 @@
5453
steering_lpf_cutoff_hz: 10.0 # cutoff frequency of lowpass filter for steering command [Hz]
5554
error_deriv_lpf_cutoff_hz: 5.0
5655

57-
# stop state
56+
# stop state: steering command is kept in the previous value in the stop state.
5857
stop_state_entry_ego_speed: 0.2
5958
stop_state_entry_target_speed: 0.2
59+
converged_steer_rad: 0.1
60+
keep_steer_control_until_converged: false
61+
new_traj_duration_time: 1.0
62+
new_traj_end_dist: 0.3
6063

6164
# vehicle parameters
6265
vehicle:

control_launch/config/trajectory_follower/2/longitudinal_controller.param.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/**:
22
ros__parameters:
3-
longitudinal_ctrl_period: 0.03
43
delay_compensation_time: 0.40
54

65
enable_smooth_stop: true
76
enable_overshoot_emergency: false
87
enable_large_tracking_error_emergency: false
98
enable_slope_compensation: true
9+
enable_keep_stopped_until_steer_convergence: false
1010

1111
# state transition
1212
drive_state_stop_dist: 0.5

0 commit comments

Comments
 (0)