]> defiant.homedns.org Git - ros_wild_thumper.git/blob - scripts/record_pid_run.sh
ledstripe.rb: Fix Exception
[ros_wild_thumper.git] / scripts / record_pid_run.sh
1 #!/bin/sh
2
3 # go
4 rostopic pub -1 cmd_vel geometry_msgs/Twist '[0.3, 0, 0]' '[0, 0, 0]' > /dev/null &
5
6 sleep 1
7
8 # start record
9 rostopic echo /odom/twist/twist/linear/x > /tmp/velocity.txt &
10 echoid=$!
11
12 # done record
13 sleep 15
14 kill $echoid
15
16 # stop
17 rostopic pub -1 cmd_vel geometry_msgs/Twist '[0, 0, 0]' '[0, 0, 0]' > /dev/null &
18
19 # print info
20 $(rospack find wild_thumper)/scripts/get_velocity.py /tmp/velocity.txt