This is a module which calculates IK 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
reverse_servos(servos being reversed) # reverses the motion of the particular servo. This command should be run before doing any calculations unless none of the servos need to be reversed
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
cartesian_to_servo(leg, x, y, z) # returns an array of 3 servo angles (in the order: tibia, femur, coxa that will move the end of the leg to that position on the XYZ axes with an origin of the center of the coxa servo.
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-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54e8de898e6bc542e3bec6914a1ae58472579486c50a221a3d2765d048298251 |
|
MD5 | 955c48292ff4c40145badb91fdbe7ef6 |
|
BLAKE2b-256 | 85ff5bd01cc6e970c4809b5423cbd52040990d502e2bb00c2c2426e11f347ccf |
Hashes for 3dof_hexapod_ik_generator-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f4ff1a4a6386c83ef0a521013159e5803f22f039c7fc28b6ce737bce477a9b0 |
|
MD5 | 60a500b9b08324ef396e139e736c4411 |
|
BLAKE2b-256 | 1d029f7226394595d732235d3d92bb28adc08b12fefa6d13d6a9df158128a8d8 |