kinjax
kinjax is a Python package that provides functions for computing the forward kinematics and Jacobian of a robot. It uses JAX to enable fast computations on GPUs.
Installation
To install the module, run:
pip install kinjax
Usage
To use kinjax, you need to provide it with a URDF file that describes the robot you want to compute the forward kinematics and Jacobian for. You can then call get_fk_fn and get_jacobian_fn to create functions that can compute the forward kinematics and Jacobian of the robot, respectively.
Here's an example of how to use kinjax to compute the forward kinematics and Jacobian of a robot:
import jax
import jax.numpy as jnp
import kinjax
end_effector_link_name = "hand"
dof = 6
# Load the URDF file
link_dict, joint_dict = kinjax.get_link_joint_dict("robot.urdf")
# Compute the forward kinematics function for the robot
fk_fn = kinjax.get_fk_fn(link_dict, joint_dict, dof, end_effector_link_name)
# Compute the Jacobian function for the robot
jac_fn = kinjax.get_jacobian_fn(link_dict, joint_dict, dof, end_effector_link_name)
# Compute the forward kinematics and Jacobian for a given joint configuration
q = jnp.array([0.1, 0.2, 0.3, 0.4, 0.5, 0.6])
T_fk = fk_fn(q)
J = jac_fn(q)
License
This project is licensed under the MIT License
Metadata
Release files for kinjax 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kinjax-0.0.5.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kinjax-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.2 kB
Release files / kinjax-0.0.5.tar.gz
| Download URL | kinjax-0.0.5.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50a601fec6da9b58099db2d9d2b812630dc50e2b7bf4ec9d44b3571c242956e2
|
|
BLAKE2b-256 checksum How to use checksums |
1746b63e347173dbf2f903256cc639e543a521bb309d715a1575c86a64af010d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/6.1.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.10
|
Release files / kinjax-0.0.5-py3-none-any.whl
| Download URL | kinjax-0.0.5-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
71a41a4da4c667905b4e517617dc43d2d559ec41430f5dc5923d8426a4d1081f
|
|
BLAKE2b-256 checksum How to use checksums |
7190ff172f45cd2f104d8a766e30057644c6527df7a21c321d4b61f176f85ccf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/6.1.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.10
|