MATLAB R2024a · Robotics System Toolbox · Python Verification

Robotic Manipulator Kinematics & Trajectory Studio

6-DOF Puma 560 forward/inverse kinematics, App Designer GUI, Yoshikawa manipulability analysis, quintic vs. cubic trajectory benchmarks, and 2-DOF PR workshop labs.

MATLAB R2024a Python Verification 6-DOF Puma 560 2-DOF NAO_ROB Quintic and Cubic 7/7 Passed License: MIT
6-DOFPuma 560 Model
7 / 7Verified Checks
9.77e-15Quintic BC Error
2.20e-07 mIK Round-Trip Error
0.1063Manipulability w
24Visual Captures

Overview

Original university robotics scripts were audited, debugged, refactored into modular MATLAB functions, and paired with an automated NumPy verification suite.

Kinematics GUI

ManipulatorApp.m

Interactive App Designer studio for 4×4 planar pose, Puma 560 FK/IK, Jacobian singularity probing, joint limits, and semicircle reach animation.

Workspace

workspace_analyzer.m

Monte Carlo joint-limit sampling computing reachable envelope and Yoshikawa manipulability index w = √det(JJᵀ).

Trajectory

Quintic & Cubic

Solves the 6×6 rest-to-rest boundary system over t ∈ [3, 8] s and benchmarks 5th-order vs. 3rd-order smoothness.

Verification

MATLAB & Python Tests

Automated checks for quintic/cubic BCs, DH transforms, workspace gates, manipulability, and IK→FK round-trip accuracy.

Kinematics & DH Parameters

Standard Denavit–Hartenberg table for the 6-DOF Puma 560 manipulator, joint rotation limits, and workspace gate constraints.

JointThetaOffset d (m)Link a (m)Twist alpha (deg)Joint LimitsRole
1θ₁0.00000.0000+90°[−160°, +160°]Waist
2θ₂0.00000.43180°[−110°, +110°]Shoulder
3θ₃0.150050.0203−90°[−135°, +135°]Elbow
4θ₄0.43180.0000+90°[−266°, +266°]Wrist Roll
5θ₅0.00000.0000−90°[−100°, +100°]Wrist Pitch
6θ₆0.00000.00000°[−266°, +266°]Wrist Yaw
Workspace Gate

Radial & Azimuth Bounds

Targets must satisfy 0.50 m ≤ r ≤ 1.00 m, −90° ≤ θ ≤ +90°, and z ≥ 0.00 m before IK solving.

Singularity & DLS IK

Jacobian & Manipulability

Probes |det(J)| < 10⁻⁶, computes Yoshikawa w = √det(JJᵀ) = 0.1063, and solves DLS IK with λ = 0.05 to 2.20e-07 m.

Planar Pose Helper

2-Link + Z SE(3)

At [30°, 45°, 10°, 0°], computes X = 1.1248 m, Y = 1.4659 m, Z = 0.1745 m with det(R) = +1.0000.

Trajectory Planning & Bug-Fix Audit

Rest-to-rest transition from q(3) = 0 to q(8) = π/2 rad comparing 3rd-order cubic and 5th-order quintic polynomials.

MetricCubic (3rd-Order)Quintic (5th-Order)Advantage
Peak Velocity |v|0.4712 rad/s0.5890 rad/sSmooth bell profile
Endpoint Acceleration±0.3770 rad/s²0.0000 rad/s²Zero actuator shock at t₀, t_f
Boundary Residual—9.77e-15Machine-precision A fit
Original FileRefactored ModuleFix / Engineering Upgrade
ass1.mquintic_trajectory.mFixed bug printing coefficients as q/v/a; replaced inv(A)*b with A and added polyval/polyder checks
ws#02.mpuma560_ik_demo.mFixed multiline *rpy2tr syntax error and added fkine verification
assignment_app.mManipulatorApp.mCached RigidBodyTree, native geometricJacobian singularity check, degree limits, fixed warning display

Modules, Manuals & Coursework Explorer

Expand any group to inspect every source file, test script, workshop manual, and archived coursework file.

SourceMATLAB Source Modules & TestsRefactored App Designer GUI, trajectory benchmarks, workshop demos, and verification scripts.
ManualsWorkshop Manuals, Reports & Assignments7 unique workshop/toolbox PDFs, 5 course assignment briefs, and project reports.
ArchiveArchived Original CourseworkPreserved unedited university scripts for before/after comparison.

Folder Structure

Clean repository layout with duplicates removed and original coursework preserved under archive/original_coursework/.

Repository Tree
Robotic_Manipulator/
├── src/
│   ├── kinematics_app/         (ManipulatorApp.m, workspace_analyzer.m, R2.jpg, Report.pdf, Pitch Deck)
│   ├── trajectory_planning/    (quintic_trajectory.m, cubic_vs_quintic_benchmark.m, SEC.pdf)
│   └── workshops/              (nao_seriallink_demo.m, puma560_ik_demo.m, manuals/)
├── tests/                      (run_demo.m, verify_kinematics.m, verify_python_sim.py)
├── docs/                       (ARCHITECTURE.md, assignments/)
├── archive/original_coursework/(unedited assignment_app.m, ass1.m, Robot_.m, ws#02.m)
├── assets/                     (screenshots/ 1440x900, thumbs/ 960x600, css/, js/)
├── index.html
├── README.md
└── LICENSE

Setup & Demo

Run in MATLAB with Robotics System Toolbox, or verify all mathematical models immediately using Python + NumPy.

MATLAB Quick Start
addpath(genpath('src'));
run('tests/run_demo.m');   % Runs quintic/cubic benchmarks + verification suite
app = ManipulatorApp;      % Launches interactive App Designer GUI
Python Verification (No MATLAB Required)
python tests/verify_python_sim.py

Verification Results

All 7 mathematical verification checks passed after the final refactor.

CheckInput / ConditionMeasured ResultStatus
Quintic Boundary Conditionst₀=3 s → t_f=8 s, q: 0 → π/2 radMax BC residual = 9.77e-15PASS
Cubic vs. Quintic BenchmarkRest-to-rest t ∈ [3, 8] sCubic |v|=0.4712 vs Quintic 0.5890 rad/s (0 end accel)PASS
Puma 560 Forward Kinematicsq = [20°, 30°, -15°, 10°, 0°, 0°]XYZ = (0.3161, -0.0446, 0.6382) mPASS
Workspace Gate ValidationAccept (0.7,0.2,0.3); Reject (0.2,0.1,0.3)Radial, azimuth, Z gates enforcedPASS
Puma 560 IK → FK Round-TripTarget = (0.70, 0.20, 0.30) mPosition error = 2.20e-07 mPASS
Manipulability & Workspace400 Monte Carlo samplesw(q_ik) = 0.1063, max reach = 0.874 mPASS
NAO_ROB 2-DOF PR Armq = [4.0 m, 0.3 rad]XYZ = (2.8660, 0.0000, 4.8866) mPASS

Author

Mohammad Rohaan

BS Computer Science — FAST-NUCES

Roll no. 22I-2327

github.com/rohaan2802 · m.rohaanarshad@gmail.com