From e255f4fb7dae062b594ee0cd6464dc65e5d53498 Mon Sep 17 00:00:00 2001 From: Michele Persiani <michelep@cs.umu.se> Date: Tue, 10 Oct 2017 19:01:51 +0200 Subject: [PATCH] Second commit --- scripts/node_human_helper.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/node_human_helper.py b/scripts/node_human_helper.py index 81e612c..266eeab 100755 --- a/scripts/node_human_helper.py +++ b/scripts/node_human_helper.py @@ -28,6 +28,9 @@ this.difficulty_service_proxy = None def helpUser(nextAction, board): rospy.loginfo("I suggest action %s for board %s", nextAction, board) + + + def helpCallback(msg): id_human = ttt.getUserId() id_ai = ttt.getAiId() @@ -52,7 +55,7 @@ def callbackGripperActionExecuted(msg): difficulty = msg_difficulty.data if difficulty == 1: - helpCallback(None) + helpCallback(Empty()) if difficulty == 4: # countdown -- GitLab