SCALAR_kinematics.py is the organized class for 6DoF, 4DoF or 3DoF or with gripper FK and IK.
see example.py how to use the code
pip install git+https://github.com/qaz1678249/scalar_kinematics.git
from scaler_kin import scaler_k # imports the latest scaler kinematics
from scaler_kin import Leg # import the leg class for 6DoF or with gripper
from scaler_kin.v2 import scaler_k # imports the v2 scaler kinematics
from scaler_kin.v2 import Leg # imports the leg class for 6DoF or with gripper
from scaler_kin.biped import scaler_k # imports the biped scaler kinematics
from scaler_kin.biped import Leg # imports the leg class
from scaler_kin.biped import hardware_constants # import biped
This kinematics has different parallel linkage lengths for two legs. Thus hardware_constrants for those linkages are now numpy array instead of a scalar value.
4DoF kinematics is added
the kinematics class was wrongly named as scalar_k instead of scaler_k as well as their function names.
Now the following import works, but shows you deprecated warning
from scaler_kin import scalar_k # imports the latest scaler kinematics
s = scalar_k()
s.scalar_forward_kinematics(...)
So instead, use
from scaler_kin import scaler_k # imports the latest scaler kinematics
s = scaler_k()
s.scaler_forward_kinematics(...)
Camera arm kinematics is added
from camera_arm_kin import Cam_arm # imports the latest camera arm kinematics
c = Cam_arm()
c.cam_arm_fk(...)
The way importing classes have changed to a proper syntax. especially:
- Leg
- scaler_k
- hardware_constants
If you need to use older way of imports you can use ver_0.2 branch
pip install git+https://github.com/qaz1678249/scalar_kinematics.git@ver_0.2