Skip to content

Commit

Permalink
Update importer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
FrogGuaGuaGua committed Mar 19, 2024
1 parent 905b12c commit 80a0817
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions urdf2webots/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ def convertUrdfContent(input, output=None, robotName=None, normal=False, boxColl
sys.stderr.write('ROS not sourced, package "%s" will not be found.\n' % packageName)
if os.path.split(directory)[1]:
packagePath = os.path.split(directory)[0]
packagePath = packagePath.replace("\\","/")
input = input.replace('package://' + packageName, packagePath + '/' + packageName)
else:
sys.stderr.write('Can\'t determine package root path.\n')
Expand Down

0 comments on commit 80a0817

Please sign in to comment.