From b8ad854d6b1611deacb0433617f7c24e2e569640 Mon Sep 17 00:00:00 2001 From: Loki Le Dev Date: Sun, 11 Apr 2021 14:34:09 +0200 Subject: [PATCH] [DEV] Use model path in sdf meshes --- onshape_to_robot/robot_description.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onshape_to_robot/robot_description.py b/onshape_to_robot/robot_description.py index f2732c3..5723445 100644 --- a/onshape_to_robot/robot_description.py +++ b/onshape_to_robot/robot_description.py @@ -437,7 +437,7 @@ def addSTL(self, matrix, stl, color, name, node='visual'): self.append('<'+node+' name="'+name+'_visual">') self.append(pose(matrix)) self.append('') - self.append('file://'+stl+'') + self.append(f'model://{self.robotName}/{stl}') self.append('') if node == 'visual': self.append(self.material(color))