All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
AIM:- To write a program in Matlab to simulate the forward kinematics of a 2R Robotic Arm INTRODUCTION:-Forward kinematics refers to the use of the kinematics equations of a robot to compute the position of the end-effector from specified values for the joint parameters. The kinematics equations of the robot…
MD TAUFIQUE SAMDAANI
updated on 23 May 2020
AIM:-
To write a program in Matlab to simulate the forward kinematics of a 2R Robotic Arm
INTRODUCTION:-
Forward kinematics refers to the use of the kinematics equations of a robot to compute the position of the end-effector from specified values for the joint parameters.
The kinematics equations of the robot are used in robotics, computer games, and animation. The reverse process that computes the joint parameters that achieve a specified position of the end-effector is known as inverse kinematics.
A Robotic Arm (not robotic hand) is a type of mechanical arm, usually programmable, with similar functions to a human arm; the arm may be the sum total of the mechanism or may be part of a more complex robot. The links of such a manipulator are connected by joints allowing either rotational motion (such as in an articulated robot) or translational (linear) displacement. The links of the manipulator can be considered to form a kinematic chain. The terminus of the kinematic chain of the manipulator is called the end effector and it is analogous to the human hand.
CODE:-
clear all
close all
clc
%Inputs
theta1=linspace(0,90,8)
theta2=linspace(0,90,10)
% lengths of link
l1=1;
l2=0.5;
% For looping
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);
%plotting
% To generate images for making animation
figure(ct)
hold on
plot([x0 x1],[y0 y1],[x1 x2],[y1 y2],'linewidth',3,'color','b')
axis ([-0.1 1.5 0 1.5])
file_text=sprintf('robo%05d.png',ct)
saveas (gca, file_text)% saving images generated
pause(0.03)
ct=ct+1;
endfor
endfor
Youtube Link Of Animation Video :-
Errors encountered:-
Faced certain syntax errors one of them is as follows:-
Error message that came in command window
Output:-
One of the Image generated:-
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...
Planetary Gear
AIM:- To generate 3D models To assemble The generated models to from the planetary gear To do Motion Analysis on the Planetary Gear on the cases given INTRODUCTION:- Planetary Gear or Epicyclic gear is a gear system consisting of one or more outer, or planet, gears or pinions, revolving about a central sun…
18 Jul 2020 03:32 PM IST
MBD Simulation on IC Engine Valve Train
AIM:- To Model the parts To Assemble the parts created To run simulation on IC Engine Valve under the given conditions INTRODUCTION:- A valvetrain or valve train is a mechanical system that controls operation of the intake and exhaust valves in an internal combustion engine. The intake valves…
18 Jul 2020 03:29 PM IST
MBD Simulation on a Piston Assembly
AIM:- To design the different parts of the Piston Assembly. To Assemble the parts created To do Motion Analysis on the Piston Assembly and , rotary motion is provided to the crankshaft INTRODUCTION:- Piston Assembly motion analysis is study of the reciprocating motion of the piston in the cyclinder and the motion…
18 Jul 2020 03:22 PM IST
Internal Geneva Mechanism
AIM:- To create 3D models for Driver and Driven Wheels To create assemble the driver an driven wheel in order to show Internal Geneva Mechanism To do motion Study of internal geneva mechanism ( with and without Precise Contact) To make a plot of the driven wheel's angular displacement and discuss the results in different…
18 Jul 2020 03:13 PM IST
Related Courses
0 Hours of Content
Skill-Lync offers industry relevant advanced engineering courses for engineering students by partnering with industry experts.
© 2025 Skill-Lync Inc. All Rights Reserved.