Search
Implement the forward kinematic task for a general 6R manipulator.
Create a function fkt(mechanism, joints) which takes DH parameters of the manipulator mechanism and 6 joint angles of the manipulator joints and returns the pose of the end effector.
fkt(mechanism, joints)
mechanism
joints
Input/Output specifications for fkt:
fkt
“theta1 offset”
“theta6 offset”
“d1”
“d6”
“a1”
“a6”
“alpha1”
“alpha6”
“theta1”
“theta6”
“r”
“t”
np.array
For fkt implementation you can use NumPy only. It is forbidden to use other additional libraries!
Implement the solution in a single file hw03.py. The file must contain the fkt function, such that it can be imported (by an automatic evaluation) as
hw03.py
import hw03 pose = hw03.fkt(mechanism, joints)
Use the created fkt function to explore the range of motion of the end-effector when moving only the first joint of the Motoman MA1400 manipulator (that was used in the previous homework).
For this follow the next steps:
n
n=10000
For the last step, you can divide the x-y plane into 0.1 x 0.1 cells, compute how many of the recorded positions fall into each cell, and plot the heatmap of the resulting values.
Upload a zip archive hw03.zip (via the course ware) containing the following files:
hw03.zip
hw03.pdf