Table of Contents

Homework 1

Submission

hw1_submission.zip

Design

Constraints

%Was not able to optimize using this code
eq_violations(1) = (tree2.j(17).position - [-0.0484 -0.0890 0.0811])*(tree2.j(17).position - [-0.0484 -0.0890 0.0811])';
 
%But it worked just fine with this code
eq_violations(1:3) = (tree2.j(17).position - [-0.0484 -0.0890 0.0811]);

Optimization Criterion

score = (tree1.j(29).position - target)*(tree1.j(29).position - target)';

Part 2

Computing the Gradient Analytically

angles = sym('angles',[29,1]);
for i = 2:29
 parent = tree.l(i).parent;
 tree.j(i).rotation = generate_axis_angle_rotation_matrix_symbolic( tree.j(i).axis, angles(i) );
.
.
.

Remaining Issues/Questions