This is a module which calculates IK servo angles for leaning and shifting a 3dof hexapod's body.
Project description
This is a simple Python package for hexapod IK calculations.
Commands:
To be imported as ikengine
class IKEngine # initialises the class object. Takes 4 arguments in mm - coxaLength, femurLength, tibiaLength and bodySideLength. Optionally can take a 5th argument that can either be a list or a tuple. Please pass the servos that need to be reversed into this tuple/list. They will be reversed (angle = 180 - angle) for the whole runtime of your program that utilises this library.
shift_lean(posX, posY, posZ, rotX, rotY, rotZ) # returns an array of 18 servo angles that are calculated using IK from the given variables that correspond to the translation and tilt of the body of the hexapod. The order goes from tibia to coxa, from left to right and then from front to back
Any questions or suggestions? Please feel free to contact me at macaquedev@gmail.com
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for 3dof-hexapod-ik-generator-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0a7bcce2cfd1877958f66b4e26482ce425597c6ec02384640a2160ac41b6ea0 |
|
MD5 | b7e7d9f224ee37fd1d34bd1f8d5beada |
|
BLAKE2b-256 | 9b2b2a7b32dad61d8bd7dd38c699b9d66ea39b29b636b707ff87cd651b5ed980 |
Hashes for 3dof_hexapod_ik_generator-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf16cfac27a1a7e5fa8b69b62db92a17e06915754db5d51df0ca5fc217a1b5e1 |
|
MD5 | bd48fdd2c7464aef27c783973b09e3e1 |
|
BLAKE2b-256 | fe4d470c26400c31c3725fc1a1f0cdaa20bf0db99da8e549f19eb3e3bf128727 |