• Stars
    star
    140
  • Rank 260,834 (Top 6 %)
  • Language
    Python
  • License
    MIT License
  • Created about 5 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Simple kinematics calculation toolkit for robotics

Build status PyPI version MIT License Downloads

Simple kinematics body toolkit.

Core features

  • Pure python library.
  • Support URDF, SDF and MJCF file.
  • Calculate FK, IK and jacobian.

Installation

pip install kinpy

Getting started

Here is a program that reads urdf and generates a kinematic chain.

import kinpy as kp

chain = kp.build_chain_from_urdf(open("kuka_iiwa/model.urdf").read())
print(chain)
# lbr_iiwa_link_0_frame
# └──── lbr_iiwa_link_1_frame
#       └──── lbr_iiwa_link_2_frame
#             └──── lbr_iiwa_link_3_frame
#                   └──── lbr_iiwa_link_4_frame
#                         └──── lbr_iiwa_link_5_frame
#                               └──── lbr_iiwa_link_6_frame
#                                     └──── lbr_iiwa_link_7_frame

Displays the parameter names of joint angles included in the chain.

print(chain.get_joint_parameter_names())
# ['lbr_iiwa_joint_1', 'lbr_iiwa_joint_2', 'lbr_iiwa_joint_3', 'lbr_iiwa_joint_4', 'lbr_iiwa_joint_5', 'lbr_iiwa_joint_6', 'lbr_iiwa_joint_7']

Given joint angle values, calculate forward kinematics.

import math
th = {'lbr_iiwa_joint_2': math.pi / 4.0, 'lbr_iiwa_joint_4': math.pi / 2.0}
ret = chain.forward_kinematics(th)

You can get the position and orientation of each link.

Visualization

KUKA IIWA

kuka

Mujoco humanoid

humanoid

Mujoco ant

ant

Simple arm

simple_arm

Citing

@software{kinpy,
    author = {{Kenta-Tanaka et al.}},
    title = {kinpy},
    url = {https://github.com/neka-nat/kinpy},
    version = {0.0.3},
    date = {2019-10-11},
}

More Repositories

1

cupoch

Robotics with GPU computing
C++
894
star
2

probreg

Python package for point cloud registration using probabilistic model (Coherent Point Drift, GMMReg, SVR, GMMTree, FilterReg, Bayesian CPD)
Python
842
star
3

ddp-gym

Differential Dynamic Programming controller operating in OpenAI Gym environment.
Python
86
star
4

distributed_rl

Pytorch implementation of distributed deep reinforcement learning
Python
72
star
5

inv_rl

Inverse Reinforcement Learning Argorithms
Python
51
star
6

gazebo_domain_randomization

Domain randomization for gazebo simulator
C++
43
star
7

tensorboard-chainer

tensorboard for chainer
Python
40
star
8

python-forexconnect

Python binding of forexconnect api
C++
39
star
9

image_completion_tf2

"Globally and Locally Consistent Image Completion" with Tensorflow2 Keras
Python
31
star
10

dq3d

dual quaternion for 3d geometric operations
C++
28
star
11

pytorch-hdml

Hardness-Aware Deep Metric Learning (CVPR2019) in pytorch
Python
28
star
12

SBIcomm

Communicate with the SBI securities
Python
27
star
13

ur_ws

Universal robot with robotiq hand workspace
C++
26
star
14

python-octomap

python binding of octomap
Python
25
star
15

streamlit-mermaid

Streamlit component for mermaid
Python
25
star
16

vin-keras

This is an implimentation of Value Iteration Networks (NIPS2016 best paper) in keras
Python
18
star
17

awesome-cobots

A list of awesome collaborative robots.
17
star
18

sdrsac

Python package of SDRSAC(Global point cloud regitsration, CVPR2019 Oral)
Python
16
star
19

ros_np_multiarray

Convert between numpy ndarray and ros multiarray
CMake
16
star
20

mylangrobot

Language instructions to mycobot using GPT-4V
Python
16
star
21

xurdf

Parser for urdf and xacro
Rust
11
star
22

cad3dify

2D to 3D CAD Conversion Using GPT-4o
Python
11
star
23

humanoid_robot

Read "humanoid robot" and implement some algorithms
Python
9
star
24

pytorch-softtriple

SoftTriple (ICCV2019) in pytorch
Python
8
star
25

stenocaptioner

CLI tool for automatic subtitling using whisper.
Python
8
star
26

mycobot-rs

This is a Rust API for myCobot serial communication.
Rust
8
star
27

web-sam

React application using Segment Anything in browser
TypeScript
8
star
28

async-rl-noreward

Keras implementation of Curiosity-driven Exploration by Self-supervised Prediction
Python
8
star
29

fast-mm-rag

Fast Multimodal RAG on CPU
Python
8
star
30

cuimage

Rust implementation of image processing library with CUDA
Rust
7
star
31

ez_interactive_marker

Easily create interactive markers from yaml files.
Python
6
star
32

wgimage

Imageprocessing library with WebGPU
Rust
5
star
33

siskin

minimal pointcloud tools for Rust
Rust
5
star
34

sam-cpp-python

Python bindings for sam.cpp
C
5
star
35

kdtree-ts

KDTree for typescript
TypeScript
4
star
36

mmdetection3d-ros

Python
4
star
37

realsense-web-viewer

Realsense pointcloud viewer with webgl
TypeScript
4
star
38

reflex-firebase

A Reflex custom component firebase
Python
4
star
39

notionflow

Experiment tracking tool on Notion
Python
3
star
40

chainer-videogan

A chainer impelementation of Generating Videos with Scene Dynamics
Python
3
star
41

karmarkar

Rust implementation of Karmarkar's algorithm
Rust
2
star
42

burn-tutorial

Rust
2
star
43

sgm-rs

Semi-global matching for Rust
Rust
2
star
44

rust_cuda_test

Rust
2
star
45

ros_cvdnn

ROS packages for OpenCV DNN module
C++
2
star
46

fastmunk

Python package for fast munkres algorithm
Rust
2
star
47

wgstd

WebGPU based standard algorithms
Rust
2
star
48

mycobot-web

myCobot serial communication in your browser
TypeScript
2
star
49

ros-noetic-docker-compose

Docker compose for ROS noetic
Dockerfile
2
star
50

pendulum-rs

Pendulum simulations
Rust
2
star
51

stable-diffusion-tauri-ui

WebGPU based stable diffusion GUI
Rust
2
star
52

neka-nat.github.io

neka-nat homepage
1
star
53

ros-drcsim

Docker image to provide DRCSim environment.
1
star
54

anylabel-web

Web annotation tool
TypeScript
1
star
55

sagemaker-custom-pytorch-container

Python
1
star
56

player_zoo

Deep reinforcement learning implementations
Python
1
star
57

roslib-react-tutorials

TypeScript
1
star