Code covered by the BSD License
-
cal_cp_ptp(cp_name, ts, l1, l...
CP + PTP Trajectory Calculation
-
cal_eta(eta_s, eta_f, vec_max...
Basic Trajectory Calculation using 5-1-5 Polynomial
-
cal_ptp(cp, pos_s, pos_f, ts,...
PTP Trajectory Calculation
-
cal_time_data(cp_ptp, ts, tim...
Finish Time and Pen Time Table Calculation
-
cat_cp_ptp(cp, ptp)
Concatenate CP and PTP trajectory
-
chk_limit(thetas, thetas_max,...
Theta and Omega Limitation Check
-
cp_circle(ts)
CP Trajectory (Circle)
-
cp_ml_logo
CP Trajectory (MATLAB Logo)
-
cp_smile(ts)
CP Trajectory (Smile Mark)
-
cp_spiral(ts)
CP Trajectory (Spiral)
-
theta2xy(theta1, theta2, l1, ...
Angle to Position Conversion for 2 link SCARA robot
-
xy2theta(x, y, l1, l2)
Position to Angle Conversion for 2 link SCARA robot
-
param_controller.m
-
param_nxtscara.m
-
param_plant.m
-
param_ref.m
-
param_sim.m
-
post_sdo_codegen.m
-
pre_sdo_codegen.m
-
nxtscara
-
nxtscara_controller
-
nxtscara_vr
-
View all files
from
NXT SCARA (Two-Link Planar Robot Arm) Controller Design
by Yorihisa Yamamoto
NXT SCARA Model-Based Design based on Embedded Coder Robot NXT.
|
| cal_cp_ptp(cp_name, ts, l1, l2)
|
function cp_ptp = cal_cp_ptp(cp_name, ts, l1, l2)
% CP + PTP Trajectory Calculation
%
% [Inputs]
% cp_name : CP trajectory name ('circle', 'spiral', 'smile', 'ml_logo')
% ts : sample rate [msec]
% l1 : link1 length [m]
% l2 : link2 length [m]
% [Outputs]
% cp_ptp : CP + PTP trajectory
% CP trajectory
switch cp_name
case 'Circle'
cp = cp_circle(ts);
case 'Spiral'
cp = cp_spiral(ts);
case 'Smile Mark'
cp = cp_smile(ts);
case 'MATLAB Logo'
cp = cp_ml_logo;
otherwise
error('Unexpected CP Trajectory Name.')
end
% start & finish position
pos_s = [l1 + l2; 0];
pos_f = pos_s;
% PTP trajectory
ptp = cal_ptp(cp, pos_s, pos_f, ts, l1, l2);
% concatenate CP and PTP trajectory
cp_ptp = cat_cp_ptp(cp, ptp);
|
|
Contact us at files@mathworks.com