Skip to content

Commit 9ecea1f

Browse files
authored
feat(e2e_simulator.launch): add argument for running the CARLA interface (#924)
Signed-off-by: Giovanni Muhammad Raditya <mraditya01@yahoo.com>
1 parent cada67d commit 9ecea1f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

autoware_launch/launch/e2e_simulator.launch.xml

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<arg name="vehicle_model" default="sample_vehicle" description="vehicle model name"/>
77
<arg name="sensor_model" default="sample_sensor_kit" description="sensor model name"/>
88
<arg name="data_path" default="$(env HOME)/autoware_data" description="packages data and artifacts directory path"/>
9+
<arg name="simulator_type" default="awsim" description="select the simulator type ('awsim' or 'carla')"/>
910

1011
<!-- launch module preset -->
1112
<arg name="planning_module_preset" default="default" description="planning module preset"/>
@@ -39,6 +40,9 @@
3940
<!-- Tools -->
4041
<arg name="rviz" default="true" description="launch rviz"/>
4142
<arg name="rviz_config" default="$(find-pkg-share autoware_launch)/rviz/autoware.rviz" description="rviz config"/>
43+
<group scoped="false" if="$(eval '\'$(var simulator_type)\' == \'carla\'')">
44+
<include file="$(find-pkg-share carla_autoware)/carla_autoware.launch.xml"/>
45+
</group>
4246

4347
<group scoped="false">
4448
<include file="$(find-pkg-share autoware_launch)/launch/autoware.launch.xml">

0 commit comments

Comments
 (0)