Skip to content

Commit

Permalink
Merge pull request dexsuite#17 from xbkaishui/fix-bug
Browse files Browse the repository at this point in the history
fix-bug windows run error
  • Loading branch information
yzqin authored Jun 3, 2024
2 parents a817fa5 + 07e7117 commit 59e3d64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dex_retargeting/retargeting_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import numpy as np
import yaml
import os

from dex_retargeting import yourdfpy as urdf
from dex_retargeting.kinematics_adaptor import MimicJointKinematicAdaptor
Expand Down Expand Up @@ -147,7 +148,7 @@ def build(self) -> SeqRetargeting:
robot_urdf = urdf.URDF.load(
self.urdf_path, add_dummy_free_joints=self.add_dummy_free_joint, build_scene_graph=False
)
urdf_name = self.urdf_path.split("/")[-1]
urdf_name = self.urdf_path.split(os.path.sep)[-1]
temp_dir = tempfile.mkdtemp(prefix="dex_retargeting-")
temp_path = f"{temp_dir}/{urdf_name}"
robot_urdf.write_xml_file(temp_path)
Expand Down

0 comments on commit 59e3d64

Please sign in to comment.