All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
AIM: To simulate forward kinematic of a 2R-Robotic Arm.GOVERNING EQUATIONS:The robotic arm is used for multiple industrial applications, from welding, material handling, and thermal spraying, to painting and drilling.Forward kinematics refers to the use of the kinematic equations…
NAVEEN SWAMI
updated on 15 May 2020
AIM: To simulate forward kinematic of a 2R-Robotic Arm.
GOVERNING EQUATIONS:
The robotic arm is used for multiple industrial applications, from welding, material handling, and thermal spraying, to painting and drilling.
Forward kinematics refers to the use of the kinematic equations of a robot to compute the position of the end-effector from specified values for the joint parameters.
GIVEN:
Length of link1 = 2 meters
Length of link2 = 1.5 meters
Values of θ1 = (00,100,200,300,400,500,600,700,800,900)
Values of θ2 = (00,100,200,300,400,500,600,700,800,900)
Taking the start point of the first link as a reference coordinate system than, for a given value of θ1 and θ2, we can write that, using trigonometry
X0=0 Y0=0
X1=L1*Cos(θ1) Y1=L1*Sin(θ1)
X2=X1 + L2*Cos(θ2) Y2=Y1 + L2*Sin(θ2)
OBJECTIVES OF THE PROJECT:
The main objective of the challenge is to write a PYTHON program to find the coordinates of the link1 and link2 using the equations derived through trigonometry and then plot the lines representing the position of both links at various values of θ1 and θ2. All the plots at different angles are captured and converted into an animation to simulate the robotic arm.
PROGRAM:
import numpy as np import math import matplotlib.pyplot as plt #length of first link l1=2 #length of second link l2=1.5 #angle of first link theta1=np.array(np.linspace(0,90,10)) #angle of second link theta2=np.array(np.linspace(0,90,10)) #base point x0=0 y0=0 ct=1 for i in range(0,np.size(theta1)): for j in range(0,np.size(theta2)): #common point x1=l1*np.cos(math.radians((theta1[i]))) y1=l1*np.sin(math.radians((theta1[i]))) #end point x2=x1 + l2*np.cos(math.radians((theta2[j]))) y2=y1 + l2*np.sin(math.radians((theta2[j]))) filename= str(ct)+ '.png' #plotting plt.figure() plt.plot([x0,x1],[y0,y1]) plt.plot([x1,x2],[y1,y2]) plt.title('Robotic Arm Simulation') plt.xlim([0,3.5]) plt.ylim([0,3.5]) plt.savefig(filename) ct=ct+1
OUTPUT:
Animation Link: Robotic Arm simulation animation
STEPS:
1. Before the prosecution of the code, the coordinates of start and endpoints of both links were derived using trigonometry.
2. The length of links and the range of θ1 and θ2 were defined in the code.
3. For loop was executed to plot positions of both link at every value of θ1 and θ2.
4. Inside the second for loop, the derived equations for every point is defined.
5. Plt command was given to plot the lines representing Link1 and link2 using coordinates.
6. Using plt.savefig(filename), all plot figures were saved siquencially with proper names.
7. All figures were combined to create an animation.
ERROR FACED: No error encountered
CONCLUSION:
Using PYTHON programming, the written code simulates the position of a 2R-Robotic Arm. The results show the maximum reach of the robotic arm used to perform the different industrial applications.
Leave a comment
Thanks for choosing to leave a comment. Please keep in mind that all the comments are moderated as per our comment policy, and your email will not be published for privacy reasons. Please leave a personal & meaningful conversation.
Other comments...
MBD Simulation on IC Engine Valve Train
AIM: MOTION ANALYSIS OF IC ENGINE VALVE TRAIN MECHANISM THEORY: Valve Train is a mechanical system in an IC engine that is responsible for controlling the intake and the exhaust of the combustion process. During the intake process, the intake valve opens to let air enter the combustion chamber and during the exhaust process,…
21 Jun 2020 08:00 AM IST
MOTION ANALYSIS OF IC ENGINE PISTON ASSEMBLY MECHANISM
AIM: MOTION ANALYSIS OF IC ENGINE PISTON ASSEMBLY MECHANISM. THEORY: In IC Engine, the combustion is driven by Slider Crank Mechanism. Inside the cylinder, the piston performs reciprocating motion which results in compression and expansion of gas inside the cylinder. This motion of the piston is guided by the Slider Crank…
18 Jun 2020 06:12 AM IST
MOTION ANALYSIS OF PLANETARY GEAR SYSTEM
AIM: MOTION ANALYSIS OF PLANETARY GEAR SYSTEM THEORY: A planetary gear mechanism also is known as Epicyclic Gear Train, is a gear mechanism consisting of 4 components, namely, sun gear A, several planet gears B, internal gear(ring gear) C and carrier D that connects planet gears as seen in the image below. It has a very…
11 Jun 2020 11:28 AM IST
MULTI-BODY DYNAMICS SIMULATION OF INTERNAL GENEVA MECHANISM IN SOLIDWORKS
AIM: MULTI-BODY DYNAMICS SIMULATION OF INTERNAL GENEVA MECHANISM IN SOLIDWORKS. THEORY: Geneva mechanism is the mechanism through which continuous rotation motion is converted into intermittent rotation motion. In this, the driver wheel rotates continuously and the driven wheel has rotation in regular intervals not continuously.…
02 Jun 2020 09:49 AM IST
Related Courses
Skill-Lync offers industry relevant advanced engineering courses for engineering students by partnering with industry experts.
© 2025 Skill-Lync Inc. All Rights Reserved.