Code covered by the BSD License
-
botFwdKinematics2(x,y,th1,th2...
-
botInvKinematics2(xe,ye,r0)
-
botThetaDot2(r,reDot,P,Q)
function result = botThetaDot(r,reDot,P,Q)
-
mytry1(varargin)
MYTRY1 M-file for mytry1.fig
-
plotbot2(x,y,theta1,theta2)
function plotbot(x,y,phi,theta1,theta2)
-
View all files
from
Weighted Kinematic Control of PPRR Manipulator
by Hrishi Shah
A PPRR serial redundant Manipulator is modeled and controlled to trace a rotated ellipse.
|
| botFwdKinematics2(x,y,th1,th2)
|
function [xe,ye] = botFwdKinematics2(x,y,th1,th2)
% function [xe,ye] = botFwdKinematics(x,y,phi,th1,th2)
%
% Computes forward kinematics of a mobile robot with 2-Link manipulator.
%
% Inputs:
% x - Cartesian x-location of mobile robot center.
% y - Cartesian y-location of mobile robot center.
% phi - Angle between inerital x-axis and body frame x-axis.
% th1 - Relative joint angle for link 1.
% th2 - Relative joint angle for link 2.
%
% Outputs:
% xe - Cartesian x-location of end effector.
% ye - Cartesian y-location of end effector.
global a1 a2
% a1 = 4; a2 = 3;
phi2 = th1;
phi3 = phi2+th2;
r = [x + a1*cos(phi2) + a2*cos(phi3); ...
y + a1*sin(phi2) + a2*sin(phi3)];
xe = r(1);
ye = r(2);
|
|
Contact us