Skip to content

Instantly share code, notes, and snippets.

@wkentaro
Created February 14, 2020 19:34
Show Gist options
  • Save wkentaro/97dc3181caf63d25362c7829e74f4f97 to your computer and use it in GitHub Desktop.
Save wkentaro/97dc3181caf63d25362c7829e74f4f97 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import skrobot
panda = skrobot.models.Panda()
viewer = skrobot.viewers.TrimeshSceneViewer()
viewer.add(panda)
viewer.show()
jacobian = panda.rarm.calc_jacobian_from_link_list(panda.rarm.end_coords)
print(jacobian)
print(jacobian.shape)
@wkentaro
Copy link
Author

wkentaro commented Feb 14, 2020

[[ 4.4794700e-08  3.6671513e-01 -1.1814101e-02 -1.1712865e-01
  -3.4258461e-03  1.0696432e-01 -3.5475110e-17]
 [-2.0000038e-01 -1.4464229e-02 -4.1491583e-01  8.5819177e-03
  -1.3262923e-01 -2.7629153e-03 -1.9057560e-17]
 [-1.4177047e-09  1.9984494e-01 -6.4382618e-03 -4.1036728e-01
  -2.6454533e-17 -8.8000000e-02 -4.1774487e-33]]
(3, 7)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment