Skip to content

Commit

Permalink
update read_rosbag to take in -f
Browse files Browse the repository at this point in the history
  • Loading branch information
TieJean committed Nov 25, 2021
1 parent 9c0461d commit 0da4873
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion util/read_rosbag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=$!
Expand Down

0 comments on commit 0da4873

Please sign in to comment.