Skip to main content

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

3dof-hexapod-ik-generator-1.0.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file 3dof-hexapod-ik-generator-1.0.0.tar.gz.

File metadata

  • Download URL: 3dof-hexapod-ik-generator-1.0.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3

File hashes

Hashes for 3dof-hexapod-ik-generator-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b0a7bcce2cfd1877958f66b4e26482ce425597c6ec02384640a2160ac41b6ea0
MD5 b7e7d9f224ee37fd1d34bd1f8d5beada
BLAKE2b-256 9b2b2a7b32dad61d8bd7dd38c699b9d66ea39b29b636b707ff87cd651b5ed980

See more details on using hashes here.

File details

Details for the file 3dof_hexapod_ik_generator-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: 3dof_hexapod_ik_generator-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3

File hashes

Hashes for 3dof_hexapod_ik_generator-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf16cfac27a1a7e5fa8b69b62db92a17e06915754db5d51df0ca5fc217a1b5e1
MD5 bd48fdd2c7464aef27c783973b09e3e1
BLAKE2b-256 fe4d470c26400c31c3725fc1a1f0cdaa20bf0db99da8e549f19eb3e3bf128727

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page