Skip to content
Snippets Groups Projects
Commit 07b3b193 authored by Gabriele Buondonno's avatar Gabriele Buondonno Committed by Gabriele Buondonno
Browse files

[python] [rpy] Remove numpy.matrix

parent f2f54eec
Branches
Tags
No related merge requests found
......@@ -30,7 +30,7 @@ def rotate(axis, ang):
eg. T = rot('x', pi / 4): rotate pi/4 rad about x axis
'''
cood = {'x': 0, 'y': 1, 'z': 2}
u = np.matrix(np.zeros([3, 1]), np.double)
u = np.zeros(3)
u[cood[axis]] = 1.0
return pin.AngleAxis(ang, u).matrix()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment