Skip to content

Commit 9c1bbd6

Browse files
committed
fix path-finding to mesh folder when undefined
1 parent 18824b6 commit 9c1bbd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/figaroh/tools/robot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def load_robot(robot_urdf, package_dirs=None, isFext=False, load_by_urdf=True, r
217217
project_root = os.path.dirname(os.path.dirname(os.path.dirname(current_dir)))
218218
package_dirs = os.path.join(project_root, "models")
219219
else:
220-
package_dirs = os.path.dirname(os.path.dirname(robot_urdf))
220+
package_dirs = os.path.dirname(os.path.abspath(robot_urdf))
221221
elif package_dirs == "models":
222222
current_dir = os.path.dirname(os.path.abspath(__file__))
223223
project_root = os.path.dirname(os.path.dirname(os.path.dirname(current_dir)))

0 commit comments

Comments
 (0)