Skip to content

feat(psim)!: change a setting parameter type from bool to string #1106

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

Merged
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<launch>
<arg name="launch_dummy_perception"/>
<arg name="launch_dummy_vehicle"/>
<arg name="launch_dummy_localization"/>
<arg name="localization_sim_mode"/>
<arg name="launch_dummy_doors"/>
<arg name="launch_diagnostic_converter"/>
<arg name="perception/enable_detection_failure"/>
Expand All @@ -18,7 +18,7 @@
<include file="$(find-pkg-share tier4_simulator_launch)/launch/simulator.launch.xml">
<arg name="launch_dummy_perception" value="$(var launch_dummy_perception)"/>
<arg name="launch_dummy_vehicle" value="$(var launch_dummy_vehicle)"/>
<arg name="launch_dummy_localization" value="$(var launch_dummy_localization)"/>
<arg name="localization_sim_mode" value="$(var localization_sim_mode)"/>
<arg name="launch_dummy_doors" value="$(var launch_dummy_doors)"/>
<arg name="launch_diagnostic_converter" value="$(var launch_diagnostic_converter)"/>
<arg name="perception/enable_detection_failure" value="$(var perception/enable_detection_failure)"/>
Expand Down
6 changes: 4 additions & 2 deletions autoware_launch/launch/planning_simulator.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
<arg name="enable_all_modules_auto_mode" default="$(var scenario_simulation)" description="enable all module's auto mode"/>
<!-- Simulated time -->
<arg name="use_sim_time" default="$(var scenario_simulation)"/>
<!-- Localization-->
<arg name="localization_sim_mode" default="api" description="select localization mode. none, api"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<arg name="localization_sim_mode" default="api" description="select localization mode. none, api"/>
<arg name="localization_sim_mode" default="api" description="select localization mode. Options are 'none' or 'api'. 'api' starts an external API for initial position estimation. 'none' does not start any localization-related process."/>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've add description. 226f872


<group scoped="false">
<!-- Vehicle -->
Expand Down Expand Up @@ -81,13 +83,13 @@
<let name="launch_dummy_perception" value="true" unless="$(var scenario_simulation)"/>
<let name="launch_dummy_vehicle" value="false" if="$(var scenario_simulation)"/>
<let name="launch_dummy_vehicle" value="true" unless="$(var scenario_simulation)"/>
<let name="launch_dummy_localization" value="true"/>
<let name="localization_sim_mode" value="$(var localization_sim_mode)"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that we added localization_sim_mode as arg in the in the same file, I think we can remove this let statement.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for my poor understanding. Thank you.

<let name="launch_diagnostic_converter" value="$(var scenario_simulation)"/>

<include file="$(find-pkg-share autoware_launch)/launch/components/tier4_simulator_component.launch.xml">
<arg name="launch_dummy_perception" value="$(var launch_dummy_perception)"/>
<arg name="launch_dummy_vehicle" value="$(var launch_dummy_vehicle)"/>
<arg name="launch_dummy_localization" value="$(var launch_dummy_localization)"/>
<arg name="localization_sim_mode" value="$(var localization_sim_mode)"/>
<arg name="launch_dummy_doors" value="$(var launch_dummy_doors)"/>
<arg name="launch_diagnostic_converter" value="$(var launch_diagnostic_converter)"/>
<arg name="perception/enable_detection_failure" value="$(var perception/enable_detection_failure)"/>
Expand Down
Loading