Skip to content

Commit

Permalink
feat: add is_simulation variable in autoware.launch.xml (#889)
Browse files Browse the repository at this point in the history
Signed-off-by: Takayuki Murooka <[email protected]>
  • Loading branch information
takayuki5168 authored Feb 29, 2024
1 parent 618e790 commit 30d55bf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autoware_launch/launch/autoware.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
<arg name="traffic_light_recognition/enable_fine_detection" default="true" description="enable traffic light fine detection"/>
<!-- Auto mode setting-->
<arg name="enable_all_modules_auto_mode" default="false" description="enable all module's auto mode"/>
<arg name="is_simulation" default="false" description="Autoware's behavior will change depending on whether this is a simulation or not."/>

<!-- Global parameters -->
<group scoped="false">
Expand Down Expand Up @@ -104,6 +105,7 @@
<include file="$(find-pkg-share autoware_launch)/launch/components/tier4_planning_component.launch.xml">
<arg name="module_preset" value="$(var planning_module_preset)"/>
<arg name="enable_all_modules_auto_mode" value="$(var enable_all_modules_auto_mode)"/>
<arg name="is_simulation" value="$(var is_simulation)"/>
</include>
</group>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
<!-- NOTE: optional parameters are written here -->
<arg name="module_preset" default="default"/>
<arg name="enable_all_modules_auto_mode" default="false"/>
<arg name="is_simulation" default="false"/>
<include file="$(find-pkg-share autoware_launch)/config/planning/preset/$(var module_preset)_preset.yaml"/>

<include file="$(find-pkg-share tier4_planning_launch)/launch/planning.launch.xml">
<arg name="vehicle_param_file" value="$(find-pkg-share $(var vehicle_model)_description)/config/vehicle_info.param.yaml"/>
<arg name="pointcloud_container_name" value="$(var pointcloud_container_name)"/>
<arg name="enable_all_modules_auto_mode" value="$(var enable_all_modules_auto_mode)"/>
<arg name="is_simulation" value="$(var is_simulation)"/>

<!-- common -->
<arg name="common_config_path" value="$(find-pkg-share autoware_launch)/config/planning/scenario_planning/common"/>
Expand Down
1 change: 1 addition & 0 deletions autoware_launch/launch/planning_simulator.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
<arg name="rviz_respawn" value="$(var rviz_respawn)"/>
<!-- Auto mode setting-->
<arg name="enable_all_modules_auto_mode" value="$(var enable_all_modules_auto_mode)"/>
<arg name="is_simulation" value="true"/>
</include>
</group>

Expand Down

0 comments on commit 30d55bf

Please sign in to comment.