Экспорт URDF из FreeCAD

This commit is contained in:
IDONTSUDO 2023-04-24 19:42:48 +00:00 committed by Igor Brylyov
parent 7cadf0741f
commit 45e0d29ea0
13 changed files with 267 additions and 98 deletions

View file

@ -0,0 +1,12 @@
import os
from helper.fs import FS
class SdfGenerateWorldUseCase:
def call(assembly:str) -> str:
world = FS.readFile(os.path.dirname(os.path.realpath(__file__))
+ '/../../mocks/sdf/world.sdf')
beginWorld = world[0:world.find('</world') - 1]
endWorld = world[world.find('</world') - 1: world.__len__()]
return beginWorld + assembly + endWorld