install_sample_data.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 
00003 import argparse
00004 import multiprocessing
00005 
00006 import jsk_data
00007 
00008 
00009 def download_data(*args, **kwargs):
00010     p = multiprocessing.Process(
00011             target=jsk_data.download_data,
00012             args=args,
00013             kwargs=kwargs)
00014     p.start()
00015 
00016 
00017 def main():
00018     parser = argparse.ArgumentParser()
00019     parser.add_argument('-v', '--verbose', dest='quiet', action='store_false')
00020     args = parser.parse_args()
00021     quiet = args.quiet
00022 
00023     PKG = 'jsk_pcl_ros'
00024 
00025     download_data(
00026         pkg_name=PKG,
00027         path='sample/data/2016-06-24-17-43-57_tabletop.bag.tgz',
00028         url='https://drive.google.com/uc?id=0B9P1L--7Wd2vUllPT3VPOHN6LVU',
00029         md5='dbc3daff4fe9812cab7328e7702e6438',
00030         extract=True,
00031     )
00032 
00033     download_data(
00034         pkg_name=PKG,
00035         path='sample/data/2017-06-19-19-34-18_tabletop_coffeecup.tgz',
00036         url='https://drive.google.com/uc?id=0B5DV6gwLHtyJRTJ0eGdVYk43bEU',
00037         md5='d58e894c853fc4485d08547b9fc2b640',
00038         extract=True,
00039     )
00040 
00041     download_data(
00042         pkg_name=PKG,
00043         path='sample/data/2016-10-26-02-09-51_coffee_cup.pcd',
00044         url='https://drive.google.com/uc?id=0B5DV6gwLHtyJVVQ2TFhVSTJqZ3M',
00045         md5='27d1a39e6ea596c4e24f1347f53f2e7b',
00046         extract=False,
00047     )
00048 
00049     download_data(
00050         pkg_name=PKG,
00051         path='sample/data/drill.pcd',
00052         url='http://www.jsk.t.u-tokyo.ac.jp/~ueda/dataset/2015/02/drill.pcd',
00053         md5='b6ea8f7bd97fd1e88fb6af2f6cd42ac5',
00054         extract=False,
00055     )
00056 
00057     download_data(
00058         pkg_name=PKG,
00059         path='sample/data/2016-07-06-12-16-43-person-in-point-cloud.tgz',
00060         url='https://drive.google.com/uc?id=0B_NiLAzvehC9cHhnOFd0YUN2N1U',
00061         md5='c59067adc429fb9f1cf180d350a2da43',
00062         extract=True,
00063         compressed_bags=[
00064             'sample/data/2016-07-06-12-16-43-person-in-point-cloud/vision.compressed.bag',
00065         ],
00066     )
00067 
00068     download_data(
00069         pkg_name=PKG,
00070         path='sample/data/stereo_arc2017_objects.bag',
00071         url='https://drive.google.com/uc?id=0B9P1L--7Wd2va1ZvWHJRT3Y5dkk',
00072         md5='4d8f51d0827f66afe5b91473aeaf9c97',
00073     )
00074 
00075     download_data(
00076         pkg_name=PKG,
00077         path='sample/data/room73b2_table.bag',
00078         url='https://drive.google.com/uc?id=0B9P1L--7Wd2vdXdfMWNSUU9IVEU',
00079         md5='a38fee55c926152f3d65023d60322eb0',
00080     )
00081 
00082     download_data(
00083         pkg_name=PKG,
00084         path='sample/data/sample_add_color_from_image_20170319.bag',
00085         url='https://drive.google.com/uc?id=0B9P1L--7Wd2vN284RHBXT1duUWM',
00086         md5='d432e7eec587708849ac85fdb3c6247f',
00087         compressed_bags=[
00088             'sample/data/sample_add_color_from_image_20170319.bag',
00089         ],
00090     )
00091 
00092 
00093 if __name__ == '__main__':
00094     main()


jsk_pcl_ros
Author(s): Yohei Kakiuchi
autogenerated on Sun Oct 8 2017 02:43:49