Skip to content

Commit

Permalink
[jsk_fetch_startup] Add audible warning
Browse files Browse the repository at this point in the history
  • Loading branch information
iory authored and 708yamaguchi committed Jul 4, 2022
1 parent 2426298 commit 961847f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
12 changes: 12 additions & 0 deletions jsk_fetch_robot/jsk_fetch_startup/config/warning_blacklist.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
blacklist:
- name: "/CPU/CPU Usage/my_machine CPU Usage"
- name: "/Other/amcl: Standard deviation"
- name: "/Other/jsk_joy_node: Joystick Driver Status"
- name: "/Other/l515_head l515_head_realsense2_camera_.*: Frequency Status"
- name: "/Peripherals/PS3 Controller"
- name: "/Sensors/IMU/IMU.*"
- name: "/SoundPlay/sound_play.*"
run_stop_blacklist:
- name: "\\w*_(mcb|breaker)"
- name: "Mainboard"
message: "Runstop pressed"
14 changes: 14 additions & 0 deletions jsk_fetch_robot/jsk_fetch_startup/launch/fetch_bringup.launch
Original file line number Diff line number Diff line change
Expand Up @@ -264,4 +264,18 @@
<include file="$(find jsk_fetch_startup)/launch/fetch_rosserial.launch" />
</group>

<node name="audible_warning"
pkg="jsk_tools" type="audible_warning.py"
clear_params="true"
output="screen" >
<remap from="/robotsound" to="/sound_play" />
<rosparam command="load" file="$(find jsk_fetch_startup)/config/warning_blacklist.yaml" />
<rosparam>
run_stop_topic: robot_state
run_stop_condition: "m.runstopped is True"
seconds_to_start_speaking: 60
speak_interval: 600
</rosparam>
</node>

</launch>

0 comments on commit 961847f

Please sign in to comment.