-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbot_service.launch
25 lines (24 loc) · 1.42 KB
/
bot_service.launch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!-- This is an example launch file for how a ROS application could use a node -->
<launch>
<arg name="use_aws_lex" default="false"/>
<arg name="use_google" default="false"/>
<arg name="use_rasa" default="true"/>
<arg name="instance_id" default="default"/>
<group if="$(arg use_aws_lex)">
<rosparam file="$(find harmoni_bot)/config/configuration.yaml" subst_value="True"/>
<param name="instance_id" value="$(arg instance_id)"/>
<node pkg="harmoni_bot" type="aws_lex_service.py" name="harmoni_bot_lex_$(arg instance_id)" output="screen" args="$(arg instance_id)"/>
</group>
<group if="$(arg use_google)">
<rosparam file="$(find harmoni_bot)/config/configuration.yaml" subst_value="True"/>
<param name="instance_id" value="$(arg instance_id)"/>
<node pkg="harmoni_bot" type="google_service.py" name="harmoni_bot_google_$(arg instance_id)" output="screen" args="$(arg instance_id)"/>
</group>
<group if="$(arg use_rasa)">
<rosparam file="$(find harmoni_bot)/config/configuration.yaml" subst_value="True"/>
<param name="instance_id" value="$(arg instance_id)"/>
<param name="harmoni_bot_dir" value="$(find harmoni_bot)"/>
<node pkg="harmoni_bot" type="start_rasa_server.sh" name="start_rasa_server" />
<node pkg="harmoni_bot" type="rasa_service.py" name="harmoni_bot_rasa_$(arg instance_id)" output="screen" args="$(arg instance_id)"/>
</group>
</launch>