From 73f06ff13be868a7775082f0b80af09f23cc0dd4 Mon Sep 17 00:00:00 2001 From: Iori Yanokura Date: Tue, 5 Nov 2024 16:08:22 +0900 Subject: [PATCH] Suppress warning --- ros/kxr_models/python/kxr_models/download_urdf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ros/kxr_models/python/kxr_models/download_urdf.py b/ros/kxr_models/python/kxr_models/download_urdf.py index 55c2ce52..69dce939 100644 --- a/ros/kxr_models/python/kxr_models/download_urdf.py +++ b/ros/kxr_models/python/kxr_models/download_urdf.py @@ -31,5 +31,7 @@ def download_urdf_mesh_files(namespace=None): while not osp.exists(compressed_urdf_path): rospy.loginfo(f"Waiting {compressed_urdf_path} from server") rospy.sleep(1.0) - gdown.cached_download(url=server_url, path=compressed_urdf_path) + gdown.cached_download(url=server_url, + hash=f'md5:{urdf_hash}', + path=compressed_urdf_path) gdown.extractall(osp.join(kxr_models_path, "models", "urdf", f"{urdf_hash}.tar.gz"))