From cfa8a79b92972e17fb955c79d5c6337ec49a4538 Mon Sep 17 00:00:00 2001 From: Erik Andresen Date: Sat, 16 May 2020 13:48:46 +0200 Subject: [PATCH] =?utf8?q?urdf:=20Rotate=20manipulator=20by=20180=C2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- launch/wild_thumper.launch | 1 + scripts/wt_node.py | 8 -------- urdf/wild_thumper_with_manipulator.urdf.xacro | 2 +- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/launch/wild_thumper.launch b/launch/wild_thumper.launch index ec21d0b..e6b426c 100644 --- a/launch/wild_thumper.launch +++ b/launch/wild_thumper.launch @@ -51,6 +51,7 @@ + diff --git a/scripts/wt_node.py b/scripts/wt_node.py index 2969d61..bffabce 100755 --- a/scripts/wt_node.py +++ b/scripts/wt_node.py @@ -58,7 +58,6 @@ class WTBase: sleep(3) # wait 3s for ros to register and establish all subscriber connections before sending reset diag reset_val = self.get_reset() rospy.loginfo("Reset Status: 0x%x" % reset_val) - ir_count = 0 sonar_count = 0 i2c_write_reg(0x50, 0xA4, struct.pack("B", 1)) # enable Watchdog while not rospy.is_shutdown(): @@ -69,13 +68,6 @@ class WTBase: self.get_odom() self.get_power() - if ir_count == 0: - self.get_dist_left() - ir_count+=1 - else: - self.get_dist_right() - ir_count=0 - if sonar_count == 0: self.get_dist_forward_left() self.update_dist_backward() diff --git a/urdf/wild_thumper_with_manipulator.urdf.xacro b/urdf/wild_thumper_with_manipulator.urdf.xacro index 2462a8c..1451f50 100644 --- a/urdf/wild_thumper_with_manipulator.urdf.xacro +++ b/urdf/wild_thumper_with_manipulator.urdf.xacro @@ -7,6 +7,6 @@ - + -- 2.39.5