diff --git a/scripts/node_human_helper.py b/scripts/node_human_helper.py index 81e612ce3d954fc1039c8c2926f9668d32a63dcd..266eeab7869de25b39ea86b233f3fa41718ee104 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