]> defiant.homedns.org Git - ros_wild_thumper.git/blobdiff - scripts/move_base.py
tuning
[ros_wild_thumper.git] / scripts / move_base.py
index 1188e2c8cd0b8abda78dab2ce154a1fd05c26b05..6886ec0cbfd69a303bcea8ff482c6aa61397ba2d 100755 (executable)
@@ -23,6 +23,11 @@ class MoveBase:
                        rate.sleep()
 
        def set_speed(self, left, right):
+               if left > 0: left+=80
+               elif left < 0: left-=80
+               if right > 0: right+=80
+               elif right < 0: right-=80
+
                if left > 255: left=255
                elif left < -255: left=-255
                if right > 255: right=255