Skip to content

Commit d9553e4

Browse files
authored
feat(tier4_autoware_api_launch): pass api mode (#11687)
Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp>
1 parent fb56815 commit d9553e4

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

launch/tier4_autoware_api_launch/launch/deprecated_api.launch.xml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@
44

55
<!-- awapi -->
66
<group>
7-
<include file="$(find-pkg-share awapi_awiv_adapter)/launch/awapi_awiv_adapter.launch.xml"/>
7+
<include file="$(find-pkg-share awapi_awiv_adapter)/launch/awapi_awiv_adapter.launch.xml">
8+
<arg name="api_mode" value="$(var api_mode)"/>
9+
</include>
810
</group>
911

1012
<!-- autoware api adaptor -->
1113
<group>
1214
<push-ros-namespace namespace="autoware_api"/>
13-
<include file="$(find-pkg-share autoware_iv_external_api_adaptor)/launch/external_api_adaptor.launch.py"/>
15+
<include file="$(find-pkg-share autoware_iv_external_api_adaptor)/launch/external_api_adaptor.launch.py">
16+
<arg name="api_mode" value="$(var api_mode)"/>
17+
</include>
1418
</group>
1519

1620
<group if="$(eval &quot; $(var api_mode) &lt; 2 &quot;)">
@@ -21,11 +25,15 @@
2125

2226
<!-- tier4 autoware api extension -->
2327
<group>
24-
<include file="$(find-pkg-share tier4_autoware_api_extension)/launch/tier4_autoware_api_extension.launch.xml"/>
28+
<include file="$(find-pkg-share tier4_autoware_api_extension)/launch/tier4_autoware_api_extension.launch.xml">
29+
<arg name="api_mode" value="$(var api_mode)"/>
30+
</include>
2531
</group>
2632

2733
<!-- tier4 deprecated api adapter -->
28-
<group if="$(eval &quot; $(var api_mode) &lt; 2 &quot;)">
29-
<include file="$(find-pkg-share tier4_deprecated_api_adapter)/launch/tier4_deprecated_api_adapter.launch.xml"/>
34+
<group>
35+
<include file="$(find-pkg-share tier4_deprecated_api_adapter)/launch/tier4_deprecated_api_adapter.launch.xml">
36+
<arg name="api_mode" value="$(var api_mode)"/>
37+
</include>
3038
</group>
3139
</launch>

0 commit comments

Comments
 (0)