]> defiant.homedns.org Git - ros_wild_thumper.git/commitdiff
pid tuning with fixes
authorErik Andresen <erik@vontaene.de>
Sat, 16 Jul 2016 13:10:45 +0000 (15:10 +0200)
committerErik Andresen <erik@vontaene.de>
Sat, 16 Jul 2016 13:10:45 +0000 (15:10 +0200)
data/motor_ctrl_pid_values.ods
scripts/record_pid_run.sh [new file with mode: 0755]

index 3f10ca9e47019b2eb3566c09fc816e1991b7c246..543fa457d9bf6497c7c682fecd78704306e15934 100644 (file)
Binary files a/data/motor_ctrl_pid_values.ods and b/data/motor_ctrl_pid_values.ods differ
diff --git a/scripts/record_pid_run.sh b/scripts/record_pid_run.sh
new file mode 100755 (executable)
index 0000000..5d4c991
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+# go
+rostopic pub -1 cmd_vel geometry_msgs/Twist '[0.3, 0, 0]' '[0, 0, 0]' > /dev/null &
+
+sleep 1
+
+# start record
+rostopic echo /odom/twist/twist/linear/x > /tmp/velocity.txt &
+echoid=$!
+
+# done record
+sleep 15
+kill $echoid
+
+# stop
+rostopic pub -1 cmd_vel geometry_msgs/Twist '[0, 0, 0]' '[0, 0, 0]' > /dev/null &
+
+# print info
+$(rospack find wild_thumper)/scripts/get_velocity.py /tmp/velocity.txt