Skip to content

Commit

Permalink
Update urdf exports
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatl committed Nov 23, 2019
1 parent 7e1f1cf commit fc679e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion urdfpy/urdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,8 +621,10 @@ def copy(self, prefix='', scale=None):
sm[:3,:3] = np.diag(np.repeat(scale, 3))
for i, m in enumerate(meshes):
meshes[i] = m.apply_transform(sm)
base, fn = os.path.split(self.filename)
fn = '{}{}'.format(prefix, self.filename)
m = Mesh(
filename=self.filename,
filename=os.path.join(base, fn),
scale=(self.scale.copy() if self.scale is not None else None),
meshes=meshes
)
Expand Down

0 comments on commit fc679e2

Please sign in to comment.