Skip to content

Commit 47947df

Browse files
Update importer.py (#213)
Co-authored-by: FrogGuaGuaGua <[email protected]>
1 parent 160b252 commit 47947df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

urdf2webots/importer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ def convertUrdfContent(input, output=None, robotName=None, normal=False, boxColl
177177
sys.stderr.write('ROS not sourced, package "%s" will not be found.\n' % packageName)
178178
if os.path.split(directory)[1]:
179179
packagePath = os.path.split(directory)[0]
180+
packagePath = packagePath.replace("\\","/")
180181
input = input.replace('package://' + packageName, packagePath + '/' + packageName)
181182
else:
182183
sys.stderr.write('Can\'t determine package root path.\n')

0 commit comments

Comments
 (0)