diff --git a/util/read_rosbag.sh b/util/read_rosbag.sh index b048daa..002fd78 100755 --- a/util/read_rosbag.sh +++ b/util/read_rosbag.sh @@ -2,7 +2,15 @@ # cd ../bag/GDC1 cd ../bag # cd .. -for f in *.bag +filenames="*.bag" +while getopts "f:" opt +do + case "$opt" in + f) filenames=${OPTARG};; + esac +done + +for f in $filenames do (rostopic echo localization > $f.yaml) & topic_pid=$!