Skip to content

Commit d61bafd

Browse files
committed
Adding comments
1 parent c56cb43 commit d61bafd

4 files changed

Lines changed: 14 additions & 9 deletions

File tree

‎Week_4_fitting/HW_2_system_analysis.ipynb‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,12 +571,19 @@
571571
},
572572
"outputs": [],
573573
"source": [
574-
"# TODO: write a deriative function.\n",
574+
"# TODO: write a deriative function to pass to odeint.\n",
575575
"# Note that the input state will have x and the derivative of x in it\n",
576576
"# You will return the derivative of x and the derivative of the derivative of x\n",
577577
"# Note that the derivative never changes - you only have to calculate the second derivative\n"
578578
]
579579
},
580+
{
581+
"cell_type": "code",
582+
"execution_count": null,
583+
"metadata": {},
584+
"outputs": [],
585+
"source": []
586+
},
580587
{
581588
"cell_type": "code",
582589
"execution_count": null,
@@ -600,7 +607,8 @@
600607
"# TODO write a function that takes in the starting conditions (x and the derivative of x), along with the parameters\n",
601608
"# you need to calculate the derivative (zeta, k, and m)\n",
602609
"# Call integrate and return the result of that function, along with the t values\n",
603-
"# You might also want the step for the t and the total amount of time to integrate over as parameters"
610+
"# You might also want the step for the t and the total amount of time to integrate over as parameters\n",
611+
"# This function should return "
604612
]
605613
},
606614
{

‎Week_6_matrices/HW_3_robot_arm.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
},
204204
"outputs": [],
205205
"source": [
206-
"# Don't change this one\n",
206+
"# Don't change this cell - this is the code/set of angles we grade from\n",
207207
"angles_check = [np.pi/2, -np.pi/4, -3.0 * np.pi/4, [np.pi/3.0, np.pi/4.0, -np.pi/4.0]]\n",
208208
"set_angles_of_arm_geometry(arm_geometry, angles_check)\n",
209209
"matrices = get_matrices_all_links(arm_geometry)\n",

‎Week_6_matrices/Lab_6_matrices_kinematics.ipynb‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,7 @@
4242
"source": [
4343
"# The usual imports\n",
4444
"import numpy as np\n",
45-
"import matplotlib.pyplot as plt\n",
46-
"\n",
47-
"# These are the routines used in the lecture activity - we'll re-use them here\n",
48-
"import matrix_routines as mt\n",
49-
"from object_routines import read_object, plot_object_in_world_coord_system"
45+
"import matplotlib.pyplot as plt"
5046
]
5147
},
5248
{

‎Week_6_matrices/arm_routines.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,8 @@ def get_gripper_location(arm_with_angles):
310310
# TODO:
311311
# Step 1: Get the matrices
312312
# Step 2: Use the last matrix plus the rotation of the wrist to build a matrix for the gripper
313-
# Step 3: Multiply the last matrix by [d, 0] to get the location in world coordinates
313+
# Step 3: Multiply the last matrix by the point [grasp_dist, 0] to get the location in world coordinates.
314+
# Don't forget the 1 when building the matrix for the point
314315
# Format for returning a tuple
315316
return (0, 0)
316317

0 commit comments

Comments
 (0)