Skip to content

Commit e3b4221

Browse files
committed
keras_ros diagnostics
1 parent b487f88 commit e3b4221

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

keras_ros/package.xml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0"?>
2-
<package>
2+
<package format="2">
33
<name>keras_ros</name>
44
<version>0.0.1</version>
55
<description>The keras_ros package</description>
@@ -9,14 +9,13 @@
99
<license>TODO</license>
1010

1111
<buildtool_depend>catkin</buildtool_depend>
12-
<build_depend>rospy</build_depend>
13-
<build_depend>image_recognition_msgs</build_depend>
14-
<build_depend>image_recognition_util</build_depend>
1512

16-
<run_depend>rospy</run_depend>
17-
<run_depend>image_recognition_msgs</run_depend>
18-
<run_depend>python-keras-pip</run_depend>
19-
<run_depend>python-numpy</run_depend>
20-
<run_depend>python-opencv</run_depend>
21-
<run_depend>python-tensorflow-pip</run_depend>
13+
<exec_depend>diagnostic_updater</exec_depend>
14+
<exec_depend>rospy</exec_depend>
15+
<exec_depend>image_recognition_msgs</exec_depend>
16+
<exec_depend>image_recognition_util</exec_depend>
17+
<exec_depend>python-keras-pip</exec_depend>
18+
<exec_depend>python-numpy</exec_depend>
19+
<exec_depend>python-opencv</exec_depend>
20+
<exec_depend>python-tensorflow-pip</exec_depend>
2221
</package>

keras_ros/scripts/face_properties_node

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import os
44
import sys
55

66
import cv2
7+
import diagnostic_updater
78
import rospy
89
from cv_bridge import CvBridge, CvBridgeError
910
from image_recognition_msgs.msg import FaceProperties
@@ -89,6 +90,10 @@ if __name__ == '__main__':
8990

9091
try:
9192
WideResnetFaceProperties(weights_file_path, img_size, depth, width, save_images_folder)
93+
updater = diagnostic_updater.Updater()
94+
updater.setHardwareID("none")
95+
updater.add(diagnostic_updater.Heartbeat())
96+
rospy.Timer(rospy.Duration(1), lambda event: updater.force_update())
9297
rospy.spin()
9398
except Exception as e:
9499
rospy.logfatal(e)

0 commit comments

Comments
 (0)