Skip to content

Commit 1a087cd

Browse files
authored
fix(robot_spec): include with_mesh in the key (#61)
1 parent 92fcdc2 commit 1a087cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/plainmp/robot_spec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
def load_urdf_model_using_cache(file_path: Path, with_mesh: bool = False, deepcopy: bool = True):
5050
file_path = file_path.expanduser()
5151
assert file_path.exists()
52-
key = str(file_path)
52+
key = f"{file_path}_{with_mesh}"
5353
if key not in _loaded_urdf_models:
5454
if with_mesh:
5555
model = RobotModelFromURDF(urdf_file=str(file_path))

0 commit comments

Comments
 (0)