Skip to content

Commit

Permalink
[DEV] Use model path in sdf meshes
Browse files Browse the repository at this point in the history
  • Loading branch information
Loki Le Dev committed Apr 11, 2021
1 parent aad492c commit b8ad854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onshape_to_robot/robot_description.py
Original file line number Diff line number Diff line change
Expand Up @@ -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('<geometry>')
self.append('<mesh><uri>file://'+stl+'</uri></mesh>')
self.append(f'<mesh><uri>model://{self.robotName}/{stl}</uri></mesh>')
self.append('</geometry>')
if node == 'visual':
self.append(self.material(color))
Expand Down

0 comments on commit b8ad854

Please sign in to comment.