Week 2- 2R Robotic Arm Challenge
Explanation
Step1: Inputs two length of links of the 2R robotics arm and the variables are l1 and l2
Step2: Input a counter variable
Step3: Taking two array alpha1 and alpha2 which contains ten values of angles with the x-axis
Step4: Start a for loop starting from value 1 to alpha1 that is 10 named theta1
Step5: Start a for inside previous for loop that is alpha2 named theta2
Step6: Inputs value of the base link co-ordinates i.e. x0 & y0
Step7: calculate the values of the co-ordinates x1,y1 and x2,y2 and plot the graph
Step8: the graphs are stored in an array M and end for loop
Step9: create a movie from all those graphs
Step10: Created a name to that videofile
Step11: call a function to open the videofile and write the video an array M
Step 12: call a function to close the video file
Error comes during programing
1. Error-command input wrong
soln-correct the linspace commad

2.Error-Forgot to enter multiplying sign
soln-after giving this it works

Output-