Assignment 4: Inverse Kinematics
Will timestamp when extra credit was done after due date
Usage: ./as4 <filename>
File format:
-arm [joint/]length ... (joint types: pm for prismatic, pn for pin, ba for ball, dp for double pin)
-path a b (where a and b are coefficients defining the surface described by equation z = ax^3 + by^3)
-cir r (where r is the radius of the cross-section of a vertical cylinder centered at the origin)
-ell a b (where a is the radius in the x direction and b is the radius in the y direction)
The resulting path is the intersection of the cubic surface and the volume specified by the cir or ell flags.
Showing basic requirements
Input file:
-arm .5 .2 .5 .6
-path 0.3 -0.3
-ell 1 1.5
Another example
Input file:
-arm .2 .3 .4 .5
-path 0.3 0.5
-cir 1
Yet another example
Input file:
-arm .1 .1 .1 .1 .1 .1 .1 .1 .1 .1 .1 .1 .1 .1
-path 0.3 0.5
-cir 1
Showing pin joints
Input file:
-arm .5 pn/.2 .5 pn/.6
-path 0.3 -0.3
-ell 1 1.5
Showing prismatic joints
Input file:
-arm .5 pm/.2 .3 pm/.1
-path 0.3 -0.3
-ell 1 1.5
Showing double pin joints
Input file:
-arm .5 dp/.2 .3 dp/.1 .6
-path 0.3 -0.3
-ell 1 1.5
Everything together
Input file:
-arm ba/.3 pm/.1 pn/.2 pn/.3 dp/.3 ba/.3
-path 0.3 -0.3
-ell 1 1.5
Another combination
Input file:
-arm .3 pn/.1 dp/.2 pn/.3 .5 .2 dp/.3 pn/.3 .3 pm/.1
-path 0.1 -0.1
-ell 2 2
Without path rotating
For grading purposes (just in case)
Same as first shown