Skip to content

Commit

Permalink
[jsk_pr2_startup] Add audible warning and sanity diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
iory authored and knorth55 committed May 19, 2022
1 parent e63409f commit 2461e5b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
topics:
- /kinect_head/rgb/image_raw
- /kinect_head/depth_registered/image_raw

21 changes: 21 additions & 0 deletions jsk_pr2_robot/jsk_pr2_startup/pr2.launch
Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,25 @@
<remap from="~input" to="/kinect_head/rgb/image_raw" />
</node>

<node name="audible_warning"
pkg="jsk_tools" type="audible_warning.py"
clear_params="true"
output="screen" >
<rosparam command="load" file="$(find jsk_pr2_startup)/jsk_pr2_warning/warning_blacklist.yaml" />
<rosparam>
run_stop_topic: /power_board/state
run_stop_condition: "m.run_stop is False"
seconds_to_start_speaking: 60
speak_interval: 600
</rosparam>
</node>

<node name="sanity_diagnostics"
pkg="jsk_tools" type="sanity_diagnostics.py" >
<rosparam command="load" file="$(find jsk_pr2_startup)/jsk_pr2_warning/sanity_targets.yaml" />
<rosparam subst_value="true">
duration: 60
</rosparam>
</node>

</launch>

0 comments on commit 2461e5b

Please sign in to comment.