26 while not event.is_set():
32 bag_file = os.path.join(rospkg.RosPack().get_path(
'sr_data_visualization'),
'biotacs_and_everything_else.bag')
34 if not os.path.isfile(bag_file):
35 sys.stdout.write(
"Bag file for testing not found, downloading now. This may take a few minutes .")
37 url =
"https://www.dropbox.com/s/6vfxvmla4hcsbzd/biotacs_and_everything_else.bag?dl=1" 38 file_path = os.path.join(rospkg.RosPack().get_path(
'sr_data_visualization'))
39 trigger = threading.Event()
40 t = threading.Thread(target=show_progress, args=(trigger,))
42 urllib.urlretrieve(url, bag_file)
45 print "File downloaded: ", bag_file
48 print "Bag file already exists, doing nothing."