All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
Aim: Simulating the forward kinematics of a 2R Robotic arm using MATLAB Programming. Theory: Forward Kinematics:refers to the use of the kinematic euations of a robot to compute the position of the end-effector from specified values for the joint parameters. joint angles are the inputs, the outputs would be the co-ordinates…
Rehaman Khan Pathan
updated on 12 Oct 2020
Aim: Simulating the forward kinematics of a 2R Robotic arm using MATLAB Programming.
Theory:
Forward Kinematics:refers to the use of the kinematic euations of a robot to compute the position of the end-effector from specified values for the joint parameters.
joint angles are the inputs, the outputs would be the co-ordinates of end-effectors.
Assuming Input variables:
let L1 = Length of the link 1
L2 = Length of the link 2
theta1 = angle of the linkage 1
theta2 = angle of the linkage 2
Software Used: MATLAB
Program:
% Forward Kinematis of a Robotic Arm manipulator
clear all
close all
clc
% Inputs
% L1 = length of link 1
% L2 = length of link 2
% theta1 = Angle of link 1
% theta2 = Angle of link 2
L1 = 1;
L2 = 0.5;
theta1 = linspace(0,90,10)
theta2 = linspace(0,90,10)
ct =1;
for i = 1:length(theta1)
THETA1 = theta1(i);
for j = 1: length(theta2)
THETA2 = theta2(j);
x0 = 0;
y0 = 0;
x1 = L1*cosd(THETA1);
y1 = L1*sind(THETA1);
x2 = x1 + L2*cosd(THETA2);
y2 = y1 + L2*sind(THETA2);
% Ploting
plot([x0 x1],[y0,y1],[x1 x2],[y1 y2],'linewidth',3)
axis([-0.1 1.5 0.1 1.5])
pause(0.03)
M(ct) = getframe(gcf);
ct = ct+1;
end
end
movie(M)
videofile = VideoWriter('robotlinkage5','uncompressed AVI')
open(videofile)
writeVideo(videofile,M)
close(videofile)
Output:
theta1 =
0 10 20 30 40 50 60 70 80 90
theta2 =
0 10 20 30 40 50 60 70 80 90
videofile =
VideoWriter
General Properties:
Filename: 'robotlinkage5.avi'
Path: 'C:UsersRehamanDesktopSkill LyncPractice Matlab'
FileFormat: 'avi'
Duration: 0
Video Properties:
ColorChannels: 3
Height: []
Width: []
FrameCount: 0
FrameRate: 30
VideoBitsPerPixel: 24
VideoFormat: 'RGB24'
VideoCompressionMethod: 'None'
Animation Video Link:
https://drive.google.com/file/d/1cY22RNgRlHp8CG68cbLp0a5ahDtziJPm/view?usp=sharing
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...
Independent Research Project
Aim: To calculate the estimated force acting on the valve during the different operating conditions. Given Problem Statement: This estimated force should be above the target cracking force (opening force) of the valve which is 300N. The solid geometry will be provided, which can be simplified to extract fluid…
26 Jul 2021 04:13 PM IST
Week 4 Challenge : CFD Meshing for BMW car
Aim: For the given model, check and solve all geometrical errors on half portion and Assign appropriate PIDs. Perform meshing with the given Target length and element Quality criteria. After meshing the half model, Do symmetry to the other side. Software Used: ANSA Pre-processor Given data: Target lengths for the…
11 May 2021 11:42 AM IST
Week 5.1 - Mid term project - Solving the steady and unsteady 2D heat conduction problem
Aim: Solving the 2D heat conduction problem for steady and transient state using various iterative techniques (Jacobi, Gauss seidel and Successive over relaxation methods) using Matlab Given that: Top Boundary = 600 K Bottom Boundary = 900 K Left Boundary = 400 K Right Boundary = 800 K Your absolute error criteria…
02 Apr 2021 04:03 AM IST
Week 3 Challenge : CFD meshing on Turbocharger
Aim: Check the geometrical errors to make appropriate volumes and assign the PID's. Also perform the surface mesh on Turbocharger. Software used: ANSA Pre-processor Theory: A turbocharger is a device fitted to a vehicle’s engine that is designed to improve the overall efficiency and increase performance. This is…
23 Mar 2021 10:47 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.