Go to the documentation of this file.00001
00002
00003 import argparse
00004 import os.path as osp
00005
00006 import jsk_data
00007
00008
00009 def download_data(path, url, md5, pkg_path=None):
00010 if pkg_path is not None:
00011 path = osp.join(pkg_path, path)
00012 return jsk_data.download_data(
00013 pkg_name='jsk_pcl_ros_utils',
00014 path=path,
00015 url=url,
00016 md5=md5,
00017 )
00018
00019
00020 def main():
00021 parser = argparse.ArgumentParser(
00022 formatter_class=argparse.ArgumentDefaultsHelpFormatter,
00023 )
00024 parser.add_argument(
00025 '--pkg-path', help='PAKCAGE_SOURCE_DIR in cmake'
00026 )
00027 args = parser.parse_args()
00028
00029 download_data(
00030 pkg_path=args.pkg_path,
00031 path='sample/data/2017-02-05-16-11-09_shelf_bin.bag',
00032 url='https://drive.google.com/uc?id=0B9P1L--7Wd2vYWI2NnZrekEwSmc',
00033 md5='44427634f57ac76111edabd7b1f4e140',
00034 )
00035
00036 download_data(
00037 pkg_path=args.pkg_path,
00038 path='sample/data/bunny_marker_array.bag',
00039 url='https://drive.google.com/uc?id=0B9P1L--7Wd2vdW1NMlhiRU9KZDQ',
00040 md5='e7dc29d21bdd30c769396c361e4350fd',
00041 )
00042
00043 download_data(
00044 pkg_path=args.pkg_path,
00045 path='sample/data/bunny.pcd',
00046 url='https://raw.githubusercontent.com/PointCloudLibrary/pcl/pcl-1.8.0/test/bunny.pcd',
00047 md5='a4e58778ba12d3f26304127f6be82897',
00048 )
00049
00050 download_data(
00051 pkg_path=args.pkg_path,
00052 path='sample/data/arc2017_4objects.bag',
00053 url='https://drive.google.com/uc?id=0B9P1L--7Wd2vakpvU0wtMFNCTkk',
00054 md5='2c3af4482cd2e0ee95b58848ae48afaf',
00055 )
00056
00057
00058 if __name__ == '__main__':
00059 main()