X-Git-Url: https://defiant.homedns.org/gitweb/?p=ros_wild_thumper.git;a=blobdiff_plain;f=scripts%2Frecord_pid_run.sh;fp=scripts%2Frecord_pid_run.sh;h=5d4c991bfedecdf9d9e0a89f04bac390a23a9f20;hp=0000000000000000000000000000000000000000;hb=6dd2756b82c8c2b5a1e42fb120ba58e86f19d02d;hpb=f01d69d0a1b761c2d7c4f662b5be998fc1a889c8 diff --git a/scripts/record_pid_run.sh b/scripts/record_pid_run.sh new file mode 100755 index 0000000..5d4c991 --- /dev/null +++ b/scripts/record_pid_run.sh @@ -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