From 7a91fe74a0b41ee20df04c6b956ac5ea351c0fda Mon Sep 17 00:00:00 2001 From: nickzherdev Date: Wed, 20 Feb 2019 18:26:16 +0300 Subject: [PATCH] fix bugs --- eurobot_stm/scripts/manipulator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eurobot_stm/scripts/manipulator.py b/eurobot_stm/scripts/manipulator.py index 0a8a4df..a2bc0a8 100755 --- a/eurobot_stm/scripts/manipulator.py +++ b/eurobot_stm/scripts/manipulator.py @@ -23,9 +23,9 @@ def response_callback(self, data): self.last_response_id = response[0] self.last_response_args = response[1] - def send_command(self, cmd, args): + def send_command(self, id, cmd, args): while (True): - self.publisher.publish(String("manipulator-"+self.id_command+" "+str(cmd) + str(args))) + self.publisher.publish(String(str(id) +str(cmd) + str(args))) self.id_command += 1 rospy.sleep(0.1) if self.last_response_id == (str(id)):