From 34bae39fabd9b44e1d169087e8d18d542f4f1525 Mon Sep 17 00:00:00 2001 From: Erik Andresen Date: Sun, 5 Apr 2015 08:06:42 +0200 Subject: [PATCH] tuning --- .gitignore | 1 + launch/teleop.launch | 6 +++--- scripts/move_base.py | 5 +++++ 3 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0d20b64 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.pyc diff --git a/launch/teleop.launch b/launch/teleop.launch index 60f4adf..0de7703 100644 --- a/launch/teleop.launch +++ b/launch/teleop.launch @@ -1,9 +1,9 @@ - - - + + + diff --git a/scripts/move_base.py b/scripts/move_base.py index 1188e2c..6886ec0 100755 --- a/scripts/move_base.py +++ b/scripts/move_base.py @@ -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 -- 2.39.5