Unity-Technologies / URDF-Importer

URDF importer
Apache License 2.0
217 stars 71 forks source link

[Bug-Fix] Fixing inability to read relative file paths #150

Closed vidurvij-Unity closed 2 years ago

vidurvij-Unity commented 2 years ago

Proposed change(s)

Fix a regression from a previous pull request where the function UrdfAssetPathHandler.GetRelativeAssetPathFromUrdfPath was returning null in case the file path is of format "folder1/folder2/example.stl".

Useful links (GitHub issues, JIRA tickets, forum threads, etc.)

https://github.com/Unity-Technologies/URDF-Importer/pull/147/files#r718991313 https://jira.unity3d.com/browse/AIRO-1349

Types of change(s)

Testing and Verification

Please describe the tests that you ran to verify your changes. Please also provide instructions, ROS packages, and Unity project files as appropriate so we can reproduce the test environment.

Test Configuration:

Checklist

Other comments