Search
Upload a zip archive hw02.zip (via the course ware) containing:
hw02.zip
hw02.json
hw02.pdf
Creating hw02.json:
Create an empty dictionary in Python:
mechanism = {}
The dictionary has 24 keys: “theta1 offset”, $\dots$, “theta6 offset”, “d1”, $\dots$, “d6”, “a1”, $\dots$, “a6”, “alpha1”, $\dots$, “alpha6”. Fill in the values with DH parameters of the given manipulator. Values are numbers. Consider distances in meters and angles in radians.
“theta1 offset”
“theta6 offset”
“d1”
“d6”
“a1”
“a6”
“alpha1”
“alpha6”
Finally, save mechanism to hw02.json:
mechanism
import json with open("hw02.json", "w") as outfile: json.dump(mechanism, outfile)