-
Notifications
You must be signed in to change notification settings - Fork 448
feat: allow conditionally launch diffusion planner #1752
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
Changes from 2 commits
e8e5950
21a409e
9f93071
a26c70e
168ffb9
47cfb8f
fc7b851
a322102
f3fd1a6
3696ace
e18ab26
bedf6d4
16a707d
c9a5855
7063e31
07f2efc
94865c1
27907f5
95879a4
d885e12
bd53b83
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| /**: | ||
| ros__parameters: | ||
| plugins_path: $(find-pkg-share autoware_tensorrt_plugins)/plugins/libautoware_tensorrt_plugins.so | ||
| onnx_model_path: $(env HOME)/autoware_data/diffusion_planner/v3.0/diffusion_planner.onnx | ||
| args_path: $(env HOME)/autoware_data/diffusion_planner/v3.0/diffusion_planner.param.json | ||
| planning_frequency_hz: 10.0 | ||
| ignore_neighbors: false | ||
| ignore_unknown_neighbors: true | ||
| predict_neighbor_trajectory: true | ||
| traffic_light_group_msg_timeout_seconds: 0.2 | ||
| batch_size: 1 | ||
| temperature: [0.0] | ||
| velocity_smoothing_window: 8 | ||
| stopping_threshold: 0.3 | ||
| turn_indicator_keep_offset: -1.25 | ||
| turn_indicator_hold_duration: 1.0 | ||
| shift_x: false | ||
| debug_params: | ||
| publish_debug_route: true | ||
| publish_debug_map: false | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| files: | ||
| - { path: $(dirname)/autoware-main.yaml } | ||
|
|
||
| edits: | ||
| - { type: remove, path: /autoware/planning/trajectory_validation/finite } | ||
| - { type: remove, path: /autoware/planning/trajectory_validation/interval } | ||
| - { type: remove, path: /autoware/planning/trajectory_validation/curvature } | ||
| - { type: remove, path: /autoware/planning/trajectory_validation/angle } | ||
| - { type: remove, path: /autoware/planning/trajectory_validation/lateral_acceleration } | ||
| - { type: remove, path: /autoware/planning/trajectory_validation/acceleration } | ||
| - { type: remove, path: /autoware/planning/trajectory_validation/deceleration } | ||
| - { type: remove, path: /autoware/planning/trajectory_validation/steering } | ||
| - { type: remove, path: /autoware/planning/trajectory_validation/steering_rate } | ||
| - { type: remove, path: /autoware/planning/trajectory_validation/velocity_deviation } | ||
| - { type: remove, path: /autoware/planning/trajectory_validation/trajectory_shift } |
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -8,6 +8,7 @@ | |||||||||||||
| <arg name="data_path" default="$(env HOME)/autoware_data" description="packages data and artifacts directory path"/> | ||||||||||||||
|
|
||||||||||||||
| <!-- launch module preset --> | ||||||||||||||
| <arg name="planning_setting" default="rule_based" description="planning setting diffusion_planner / rule_based"/> | ||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||
| <arg name="planning_module_preset" default="default" description="planning module preset"/> | ||||||||||||||
| <arg name="control_module_preset" default="default" description="control module preset"/> | ||||||||||||||
|
|
||||||||||||||
|
|
||||||||||||||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,8 +1,18 @@ | ||||||||||||
| <?xml version="1.0"?> | ||||||||||||
| <launch> | ||||||||||||
| <arg name="use_sim_time" default="false"/> | ||||||||||||
| <arg name="planning_setting" default="rule_based" description="planning setting diffusion_planner / rule_based"/> | ||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
| <arg name="diagnostic_graph_aggregator_param_path" default="$(find-pkg-share autoware_diagnostic_graph_aggregator)/config/default.param.yaml"/> | ||||||||||||
| <arg name="diagnostic_graph_aggregator_graph_path" default="$(find-pkg-share autoware_launch)/config/system/diagnostics/autoware-main.yaml"/> | ||||||||||||
| <arg | ||||||||||||
| name="diagnostic_graph_aggregator_graph_path" | ||||||||||||
| default="$(find-pkg-share autoware_launch)/config/system/tier4_diagnostics/autoware-main-e2e.yaml" | ||||||||||||
| if="$(eval "'$(var planning_setting)'=='diffusion_planner'")" | ||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
| /> | ||||||||||||
| <arg | ||||||||||||
| name="diagnostic_graph_aggregator_graph_path" | ||||||||||||
| default="$(find-pkg-share autoware_launch)/config/system/tier4_diagnostics/autoware-main.yaml" | ||||||||||||
| if="$(eval "'$(var planning_setting)'=='rule_based'")" | ||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
| /> | ||||||||||||
|
|
||||||||||||
| <set_parameter name="use_sim_time" value="$(var use_sim_time)"/> | ||||||||||||
|
|
||||||||||||
|
|
||||||||||||
|
yukkysaito marked this conversation as resolved.
Outdated
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| <launch> | ||
| <!-- planning module --> | ||
|
|
||
| <!-- mission planner --> | ||
| <arg name="mission_planner_param_path"/> | ||
| <arg name="launch_remaining_distance_time_calculator" default="false"/> | ||
|
|
||
| <node pkg="demo_nodes_cpp" exec="parameter_blackboard" name="velocity_smoother" namespace="/planning/scenario_planning" output="screen"> | ||
| <param name="max_velocity" value="16.6"/> | ||
| </node> | ||
|
|
||
| <group> | ||
| <push-ros-namespace namespace="planning"/> | ||
| <!-- mission planning module --> | ||
| <group> | ||
| <push-ros-namespace namespace="mission_planning"/> | ||
| <include file="$(find-pkg-share tier4_planning_launch)/launch/mission_planning/mission_planning.launch.xml"> | ||
| <arg name="mission_planner_param_path" value="$(var mission_planner_param_path)"/> | ||
| </include> | ||
| </group> | ||
|
yukkysaito marked this conversation as resolved.
Outdated
|
||
|
|
||
| <group> | ||
| <!-- trajectory generator --> | ||
| <group> | ||
| <push-ros-namespace namespace="trajectory_generator"/> | ||
| <!-- neural network based planning module --> | ||
| <group> | ||
| <push-ros-namespace namespace="neural_network_based_planner"/> | ||
| <include file="$(find-pkg-share autoware_diffusion_planner)/launch/diffusion_planner.launch.xml"> | ||
| <arg name="input_odometry" value="/localization/kinematic_state"/> | ||
| <arg name="input_acceleration" value="/localization/acceleration"/> | ||
| <arg name="input_route" value="/planning/mission_planning/route"/> | ||
| <arg name="input_traffic_signals" value="/perception/traffic_light_recognition/traffic_signals"/> | ||
| <arg name="input_tracked_objects" value="/perception/object_recognition/tracking/objects"/> | ||
| <arg name="input_vector_map" value="/map/vector_map"/> | ||
| <arg name="input_turn_indicators" value="/vehicle/status/turn_indicators_status"/> | ||
| <arg name="output_trajectories" value="/planning/generator/diffusion_planner/candidate_trajectories"/> | ||
| <arg name="output_turn_indicators" value="/planning/turn_indicators_cmd"/> | ||
| </include> | ||
| <include file="$(find-pkg-share autoware_trajectory_optimizer)/launch/trajectory_optimizer.launch.xml"> | ||
| <arg name="input_trajectories" value="/planning/generator/diffusion_planner/candidate_trajectories"/> | ||
| <arg name="output_traj" value="/planning/trajectory"/> | ||
| <arg name="output_trajectories" value="/planning/generator/trajectory_optimizer/candidate_trajectories"/> | ||
| <arg | ||
| name="elastic_band_param_path" | ||
| value="$(find-pkg-share autoware_launch)/config/planning/scenario_planning/lane_driving/motion_planning/path_smoother/elastic_band_smoother.param.yaml" | ||
| /> | ||
| </include> | ||
| </group> | ||
| </group> | ||
|
yukkysaito marked this conversation as resolved.
Outdated
|
||
| </group> | ||
|
|
||
| <!-- mission remaining distance and time calculator --> | ||
| <group if="$(var launch_remaining_distance_time_calculator)"> | ||
| <include file="$(find-pkg-share autoware_remaining_distance_time_calculator)/launch/remaining_distance_time_calculator.launch.xml"/> | ||
| </group> | ||
| </group> | ||
| </launch> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
memo: This comes from autowarefoundation/autoware#6710
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v3.1 has already been released.