GeezerVison is showing github.com β GitHub - Awande07/matlab_6axis_robot_arm: 6-DOF robotic arm simulation implementing Denavit-Hartenberg parameters, numerical inverse kinematics, and obstacle avoidance in MATLAB.
Folders and files| Name | Name | Last commit message | Last commit date |
|---|
| | | | | | | | | | | | | | | | |
Repository files navigationMATLAB 6-Axis Robotic Arm with Inverse Kinematics

A complete 6-axis robotic arm simulation in MATLAB with forward kinematics, inverse kinematics, trajectory planning, collision avoidance, and a full pick-and-place demo.
| Robot Animation |
Pick and Place Demo |
Cartesian Trajectory |
 |
 |
 |
| Joint Space Trajectory |
 |

Click the image above to watch the full pick-and-place demonstration (3 minutes)
| Feature |
Status |
Description |
| Robot Modeling |
Complete |
6-DOF revolute robot using Denavit-Hartenberg parameters |
| Forward Kinematics |
Complete |
End-effector pose from joint angles |
| Inverse Kinematics |
Complete |
Joint angles from end-effector pose (numerical solver) |
| Trajectory Planning |
Complete |
Smooth joint-space trajectories with quintic polynomials |
| Speed Control |
Complete |
Velocity and acceleration constraints |
| Collision Detection |
Complete |
Sphere, cylinder, and box obstacle avoidance |
| Pick and Place Demo |
Complete |
End-to-end demonstration with animation |
| ROS 2 Integration |
Coming Soon |
MATLAB-ROS2 bridge for real-time control |
π οΈ Tools & Technologies
- Denavit-Hartenberg (DH) Convention - Standard kinematic modeling for robotic arms
- Homogeneous Transformations - 4Γ4 matrices for position and orientation
- Forward Kinematics - Direct geometric computation
- Inverse Kinematics - Numerical optimization using gradient descent
- Jacobian Matrices - Velocity kinematics and singularity analysis
| Tool |
Purpose |
| MATLAB R2026a |
Primary development environment |
| Robotics System Toolbox |
Robot modeling, kinematics, IK solver |
| Simulink |
Control system design (future) |
| Git |
Version control |
| Skill Category |
Specific Skills |
| Control Systems |
PID control, Trajectory planning, Stability analysis |
| Mathematical Modeling |
Linear algebra, Transform matrices, Kinematic chains |
| Robotics |
Kinematics, Motion planning, Collision detection |
| Software Engineering |
MATLAB programming, Code modularity |
| Data Science |
Data analysis, Visualization, Simulation |
matlab_6axis_robot_arm/
β
βββ src/
β βββ robot/
β β βββ robotParams.m # DH parameters, joint limits
β β βββ createRobot.m # rigidBodyTree construction
β β
β βββ kinematics/
β β βββ forwardKinematics.m # Position from joint angles
β β βββ solveIK.m # Joint angles from position (numerical IK)
β β
β βββ control/
β β βββ trajectoryConstraints.m # Velocity/acceleration limited trajectories
β β βββ trajectoryPlanner.m # Smooth trajectory generation
β β
β βββ obstacles/
β β βββ obstacleCheck.m # Sphere, cylinder, and box obstacle collision
β β
β βββ visualization/
β βββ animateTrajectory.m # Robot animation along trajectories
β
βββ examples/
β βββ pick_and_place/
β βββ pickAndPlace.m # Full pick-and-place sequence
β
βββ docs/
β βββ images/ # Project screenshots and video
β
βββ README.md
βββ LICENSE
βββ startup.m
text
git clone https://github.com/Awande07/matlab_6axis_robot_arm.git
cd matlab_6axis_robot_arm
Add to MATLAB Path
matlab
addpath(genpath(pwd));
savepath;
Run the Demo
matlab
pickAndPlace
Robot Specifications
Denavit-Hartenberg Parameters (3.0x Scaled)
Joint a (m) Ξ± (rad) d (m) ΞΈ (rad) Range (rad)
1 0 Ο/2 0.90 ΞΈβ -Ο to +Ο
2 0.75 0 0 ΞΈβ -2.5 to +2.5
3 0.60 0 0 ΞΈβ -3.0 to +3.0
4 0 Ο/2 0.75 ΞΈβ -Ο to +Ο
5 0 -Ο/2 0 ΞΈβ
-2.0 to +2.0
6 0 0 0.24 ΞΈβ -Ο to +Ο
Physical Specifications
Parameter Value
Degrees of Freedom 6 (all revolute)
Total Height ~2.19 m
Maximum Reach ~1.35 m
Tool Length 0.30 m
Joint Types All revolute
Pick and Place Sequence
Stage Waypoint Description
1 Home Starting position
2 Approach Pick Move above object
3 Pick Grasp object
4 Lift Pick Lift object
5 Transfer Move to place location
6 Approach Place Move above target
7 Place Release object
8 Lift Place Lift from target
9 Return Home Return to start
Obstacle Configuration
Sphere: Centered at (0.35, 0.1, 0.3), radius 0.1m
Cylinder: Base at (0.4, -0.1, 0), height 0.5m, radius 0.05m
Performance Metrics
Metric Value
Trajectory Points 241
Total Duration 8.0 seconds
Frame Rate 50 Hz
Joint Limit Satisfaction 100%
Collision-Free Yes
IK Success Rate 100%
Return-to-Home Error 0.000000 rad
Integration with ROS 2
This project is designed to integrate with the ROS2 Six-Axis Robotic Arm.
Component MATLAB ROS 2
Kinematics This project MoveIt 2
Trajectory This project ROS2 Control
Visualization MATLAB plots RViz2
Communication Coming soon ROS2 Topics
References
Denavit, J., & Hartenberg, R. S. (1955). "A kinematic notation for lower-pair mechanisms based on matrices." Journal of Applied Mechanics.
Craig, J. J. (2005). Introduction to Robotics: Mechanics and Control. Pearson.
Siciliano, B., & Khatib, O. (2016). Springer Handbook of Robotics. Springer.
MathWorks (2026). Robotics System Toolbox Documentation.
Author
Awande Lindani GcabashΓ©
https://img.shields.io/badge/GitHub-Awande07-181717?style=for-the-badge&logo=github
https://img.shields.io/badge/LinkedIn-Awande%2520Gcabash%25C3%25A9-0A66C2?style=for-the-badge&logo=linkedin
Applied Mathematics & Computer Science student
Robotics Technician (1 year experience)
Python & MATLAB developer
Data Science & Robotics dual-track
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
University of South Africa - Applied Mathematics and Computer Science program
MathWorks - MATLAB and Robotics System Toolbox
ROS 2 Community - Open-source robotics framework
GitHub - Version control and collaboration
Project Status
text
Robot Definition ββββββββββββββββββββ 100%
Forward Kinematics ββββββββββββββββββββ 100%
Inverse Kinematics ββββββββββββββββββββ 100%
Trajectory Planning ββββββββββββββββββββ 100%
Speed Control ββββββββββββββββββββ 100%
Obstacle Avoidance ββββββββββββββββββββ 100%
Pick and Place Demo ββββββββββββββββββββ 100%
Documentation ββββββββββββββββββββ 100%
ROS 2 Integration ββββββββββββββββββββ 20%
β Star this project on GitHub if you found it useful!
Built with persistence > perfect conditions. πΏπ¦
About6-DOF robotic arm simulation implementing Denavit-Hartenberg parameters, numerical inverse kinematics, and obstacle avoidance in MATLAB. TopicsResourcesStars0 stars Watchers0 watching Forks
|