Remove download.py add a WIP for Simxarm

This commit is contained in:
Cadene 2024-03-08 18:07:49 +00:00
parent 167a51cb69
commit a45802c281
1 changed files with 0 additions and 22 deletions

View File

@ -1,22 +0,0 @@
# TODO(rcadene): obsolete remove
import os
import zipfile
import gdown
def download():
url = "https://drive.google.com/uc?id=1nhxpykGtPDhmQKm-_B8zBSywVRdgeVya"
download_path = "data.zip"
gdown.download(url, download_path, quiet=False)
print("Extracting...")
with zipfile.ZipFile(download_path, "r") as zip_f:
for member in zip_f.namelist():
if member.startswith("data/xarm") and member.endswith(".pkl"):
print(member)
zip_f.extract(member=member)
os.remove(download_path)
if __name__ == "__main__":
download()