Skip to content

Commit

Permalink
Add nodes to adjust the volume of the speaking
Browse files Browse the repository at this point in the history
  • Loading branch information
Kanazawanaoaki authored and knorth55 committed Dec 4, 2022
1 parent ac80fed commit c1be29b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit c1be29b

Please sign in to comment.