rofunc.simulator.utils.ycb_downloader#
1. Module Contents#
1.1. Functions#
Download YCB objects from the official website |
|
Fetches the object information before download |
|
Downloads files from a given URL |
|
Get the TGZ file URL for a particular object and dataset type |
|
Extract a TGZ file |
|
Check the validity of a URL |
1.2. API#
- rofunc.simulator.utils.ycb_downloader.download_ycb_objects(objects_to_download='all', files_to_download=['google_16k'], extract=True, core_num=20)[source]#
Download YCB objects from the official website
- Parameters:
objects_to_download – List of objects to download. If “all”, will download all objects. http://ycb-benchmarks.s3-website-us-east-1.amazonaws.com/
files_to_download – List of files to download for each object. ‘berkeley_rgbd’ contains all of the depth maps and images from the Carmines. ‘berkeley_rgb_highres’ contains all of the high-res images from the Canon cameras. ‘berkeley_processed’ contains all of the segmented point clouds and textured meshes. ‘google_16k’ contains google meshes with 16k vertices. ‘google_64k’ contains google meshes with 64k vertices. ‘google_512k’ contains google meshes with 512k vertices.
extract – Extract all files from the downloaded .tgz, and remove .tgz files. If false, will just download all .tgz files to output_directory
core_num – Number of cores to use for parallel downloading
- Returns:
- rofunc.simulator.utils.ycb_downloader.parallel(object, objects_to_download, files_to_download, extract, base_url, output_directory)[source]#
- rofunc.simulator.utils.ycb_downloader.fetch_objects(url)[source]#
Fetches the object information before download
- rofunc.simulator.utils.ycb_downloader.download_file(url, filename, pbar=None)[source]#
Downloads files from a given URL