2D Kinematics Homework
You will write a program in Python to perform kinematics on a 2-dimensional arm, like we did in class. Below is an example run, given the data from our in-class example:
taylor@albert:~/zee/si475/kinematics$ python 2dkinematics.py How many joints? 2 Angle in radians? .785 Length of link? 5 Angle in radians? -.524 Length of link? 3 The end of the arm is at ( 6.43533858913 , 4.30826634503 ) The angle from the X-axis is 0.261
Numpy
You don't have to write your own library to handle matrices. A package called numpy has been installed on the machines in the lab to make this very easy, with operator overloading and everything. The internet is full of references on how to use numpy.
Submission
For ease of my testing script, please call your file 2dkinematics.py, and have your input and output look like the above.
Submit it using my submit script as 2dKinematics, by classtime January 16.