Skip to content

Commit

Permalink
enable google chat ros
Browse files Browse the repository at this point in the history
  • Loading branch information
knorth55 committed Mar 26, 2023
1 parent a173185 commit 2501c2c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions jsk_pr2_robot/jsk_pr2_startup/pr2.launch
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
doc="whether launch app_scheduler or not." />
<arg name="launch_coral" default="false"
doc="whether launch coral or not." />
<arg name="launch_google_chat" default="true"
doc="whether launch google chat or not."/>
<arg name="USER_NAME" default="false" />

<include file="$(find jsk_pr2_startup)/jsk_pr2.machine"
Expand Down Expand Up @@ -251,6 +253,12 @@
<node name="smach_to_mail" pkg="jsk_robot_startup" type="smach_to_mail.py" output="screen">
<remap from="~smach/container_status" to="/server_name/smach/container_status" />
<rosparam command="load" file="/var/lib/robot/email_topic.yaml" />
<rosparam subst_value="true">
use_mail: true
use_twitter: $(arg launch_twitter)
use_google_chat: $(arg launch_google_chat)
google_chat_space: spaces/AAAAT_OCXCw
</rosparam>
</node>

<!-- publish smach image -->
Expand All @@ -267,6 +275,17 @@
<arg name="yaml_path" value="$(find jsk_pr2_startup)/config/pr2_app_schedule.yaml" />
</include>

<!-- google chat -->
<include if="$(arg launch_google_chat)"
file="$(find google_chat_ros)/launch/google_chat.launch">
<arg name="use_yaml" value="true" />
<arg name="receiving_mode" value="pubsub" />
<arg name="project_id" value="pr2-yeusde" />
<arg name="subscription_id" value="chat-sub" />
<arg name="yaml_file" value="/var/lib/robot/google_chat.yaml" />
<arg name="gdrive_upload_service" value="/gdrive_server/upload" />
</include>

<!-- coral -->
<include if="$(arg launch_coral)"
file="$(find jsk_pr2_startup)/jsk_pr2_sensors/pr2_coral.launch">
Expand Down

0 comments on commit 2501c2c

Please sign in to comment.