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.)
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:
Unity Version: [e.g. Unity 2020.2.0f1]
Unity machine OS + version: [e.g. Windows 10]
ROS machine OS + version: [e.g. Ubuntu 18.04, ROS Noetic]
ROS–Unity communication: [e.g. Docker]
Checklist
[x] Ensured this PR is up-to-date with the dev branch
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
dev
branchdev
branchOther comments