From 3f009576b63c958c75d39cce6b27f68d826f2148 Mon Sep 17 00:00:00 2001 From: Kanazawa Naoaki Date: Thu, 3 Nov 2022 18:20:09 +0900 Subject: [PATCH] Add nodes to adjust the volume of the speaking --- .../jsk_pr2_warning/pr2_speak_volume_lower.l | 9 +++++++++ .../jsk_pr2_warning/pr2_speak_volume_reset.l | 9 +++++++++ .../jsk_pr2_warning/pr2_speak_volume_zero.l | 9 +++++++++ 3 files changed, 27 insertions(+) create mode 100755 jsk_pr2_robot/jsk_pr2_startup/jsk_pr2_warning/pr2_speak_volume_lower.l create mode 100755 jsk_pr2_robot/jsk_pr2_startup/jsk_pr2_warning/pr2_speak_volume_reset.l create mode 100755 jsk_pr2_robot/jsk_pr2_startup/jsk_pr2_warning/pr2_speak_volume_zero.l diff --git a/jsk_pr2_robot/jsk_pr2_startup/jsk_pr2_warning/pr2_speak_volume_lower.l b/jsk_pr2_robot/jsk_pr2_startup/jsk_pr2_warning/pr2_speak_volume_lower.l new file mode 100755 index 0000000000..e3efe68518 --- /dev/null +++ b/jsk_pr2_robot/jsk_pr2_startup/jsk_pr2_warning/pr2_speak_volume_lower.l @@ -0,0 +1,9 @@ +#!/usr/bin/env roseus + +(ros::roseus "speak_volume_lower") +(ros::set-dynamic-reconfigure-param "/audible_warning" "volume" :double 0.2) +(ros::set-dynamic-reconfigure-param "/tweet_client_tablet" "volume" :double 0.2) +(ros::set-dynamic-reconfigure-param "/tweet_client_uptime" "volume" :double 0.2) +(ros::set-dynamic-reconfigure-param "/tweet_client_warning" "volume" :double 0.2) +(ros::set-dynamic-reconfigure-param "/tweet_client_worktime" "volume" :double 0.2) +(exit) diff --git a/jsk_pr2_robot/jsk_pr2_startup/jsk_pr2_warning/pr2_speak_volume_reset.l b/jsk_pr2_robot/jsk_pr2_startup/jsk_pr2_warning/pr2_speak_volume_reset.l new file mode 100755 index 0000000000..89685bfb3b --- /dev/null +++ b/jsk_pr2_robot/jsk_pr2_startup/jsk_pr2_warning/pr2_speak_volume_reset.l @@ -0,0 +1,9 @@ +#!/usr/bin/env roseus + +(ros::roseus "speak_volume_reset") +(ros::set-dynamic-reconfigure-param "/audible_warning" "volume" :double 1.0) +(ros::set-dynamic-reconfigure-param "/tweet_client_tablet" "volume" :double 1.0) +(ros::set-dynamic-reconfigure-param "/tweet_client_uptime" "volume" :double 1.0) +(ros::set-dynamic-reconfigure-param "/tweet_client_warning" "volume" :double 1.0) +(ros::set-dynamic-reconfigure-param "/tweet_client_worktime" "volume" :double 1.0) +(exit) diff --git a/jsk_pr2_robot/jsk_pr2_startup/jsk_pr2_warning/pr2_speak_volume_zero.l b/jsk_pr2_robot/jsk_pr2_startup/jsk_pr2_warning/pr2_speak_volume_zero.l new file mode 100755 index 0000000000..6f89b26903 --- /dev/null +++ b/jsk_pr2_robot/jsk_pr2_startup/jsk_pr2_warning/pr2_speak_volume_zero.l @@ -0,0 +1,9 @@ +#!/usr/bin/env roseus + +(ros::roseus "speak_volume_zero") +(ros::set-dynamic-reconfigure-param "/audible_warning" "volume" :double 0.0) +(ros::set-dynamic-reconfigure-param "/tweet_client_tablet" "volume" :double 0.0) +(ros::set-dynamic-reconfigure-param "/tweet_client_uptime" "volume" :double 0.0) +(ros::set-dynamic-reconfigure-param "/tweet_client_warning" "volume" :double 0.0) +(ros::set-dynamic-reconfigure-param "/tweet_client_worktime" "volume" :double 0.0) +(exit)