selfcheck.py: correctly detect unset aruco_detect/length

This commit is contained in:
Oleg Kalachev
2020-03-17 23:11:46 +03:00
parent 0b74430a11
commit 267aaf45d3

View File

@@ -339,7 +339,10 @@ def is_process_running(binary, exact=False, full=False):
@check('ArUco markers')
def check_aruco():
if is_process_running('aruco_detect', full=True):
info('aruco_detect/length = %g m', rospy.get_param('aruco_detect/length'))
try:
info('aruco_detect/length = %g m', rospy.get_param('aruco_detect/length'))
except KeyError:
failure('aruco_detect/length parameter is not set')
known_tilt = rospy.get_param('aruco_detect/known_tilt', '')
if known_tilt == 'map':
known_tilt += ' (ALL markers are on the floor)'