clemense / yourdfpy

Python parser for URDFs
MIT License
122 stars 13 forks source link

file paths parsing not consistent #27

Closed nashmit closed 2 years ago

nashmit commented 2 years ago

Currently, this project works well under Linux but not under Windows.

This is due to the fact that the separators are mixed into the parsing process. If the urdf file contains Linux separators "/" to define paths one will end up mixing Linux sep. with windows since in the current implementation os.path.sep is used, which in this case it's going to return \\.

Can you advise an easy fix at this point?

clemense commented 2 years ago

Thanks for reporting! As far as I understand I assume a file name prefix like package:// would look like package:\\ in Windows which is not the case, right? (I couldn't find any information on this). I will create a fix for this.

clemense commented 2 years ago

Ok, I hope this fixes it. It's now in version 0.0.51. Please re-open if this still occurs.

nashmit commented 2 years ago

Thanks for taking care of it :)