From 7d4e2b35de97e0ccadcba2e46aa0c86d7a1f7392 Mon Sep 17 00:00:00 2001 From: schoenpat <49246677+schoenpat@users.noreply.github.com> Date: Fri, 10 Apr 2020 13:26:25 +0200 Subject: [PATCH] Fix wrong param name In the old version the node always used the default value. Now you can overwrite the value at the launch with roslaunch. --- roboclaw_node/nodes/roboclaw_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roboclaw_node/nodes/roboclaw_node.py b/roboclaw_node/nodes/roboclaw_node.py index 692c99d..8ed9009 100755 --- a/roboclaw_node/nodes/roboclaw_node.py +++ b/roboclaw_node/nodes/roboclaw_node.py @@ -177,7 +177,7 @@ def __init__(self): roboclaw.ResetEncoders(self.address) self.MAX_SPEED = float(rospy.get_param("~max_speed", "2.0")) - self.TICKS_PER_METER = float(rospy.get_param("~tick_per_meter", "4342.2")) + self.TICKS_PER_METER = float(rospy.get_param("~ticks_per_meter", "4342.2")) self.BASE_WIDTH = float(rospy.get_param("~base_width", "0.315")) self.encodm = EncoderOdom(self.TICKS_PER_METER, self.BASE_WIDTH)