Skip to content

Commit

Permalink
fix windows run
Browse files Browse the repository at this point in the history
  • Loading branch information
xbkaishui committed Jun 3, 2024
1 parent a817fa5 commit 07e7117
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 07e7117

Please sign in to comment.