MATLAB implementation of fundamental 3D transformation concepts used in robotics and kinematics.
This project builds step-by-step understanding of:
- Rotation matrices
- Homogeneous transformations
- Frame visualization
- Transformation composition
3D-Transformation-Robotics
day1_rotation.m
day2_transformation.m
day3_composition.m
day4_2DOF_arm.m
day5_Robot Arm Animation
day6_Robot Arm Workspace
functions
rotZ.m
createTransform.m
drawFrame.m
images
day1_rotation.png
day2_transformation.png
day3_composition.png
day4_robot_arm.png
day5_robotarmautomation.png
day6_workspace.png
- Rotation about Z-axis
- Orthogonality check (R * Rᵀ = I)
- Determinant verification (det(R) = 1)
- 3D vector rotation visualization
A valid rotation matrix must satisfy:
RᵀR = I
det(R) = 1
A rotation matrix must be orthogonal and have determinant equal to 1.
- Built 4×4 homogeneous transformation matrix
- Combined rotation and translation
- Transformed points between frames
- Visualized Frame A and Frame B
Homogeneous transformation:
T = [ R p
0 1 ]
Where:
- R is the rotation matrix
- p is the translation vector
Rotation and translation can be unified into a single matrix using homogeneous coordinates.
- Modular reusable functions (rotZ, createTransform, drawFrame)
- Transformation composition
- Visual comparison of multiplication order
- Structured project into reusable components
T₁ = R × Trans
T₂ = Trans × R
Transformation order changes the final pose.
Transformation composition order determines whether motion occurs in the global frame or the local frame.
- 2DOF planar robot arm
- Forward kinematics using transformation matrices
- Visualization of robot links and joints
- End-effector position extraction
x = L1 cos(θ1) + L2 cos(θ1 + θ2) y = L1 sin(θ1) + L2 sin(θ1 + θ2)
Forward kinematics computes the end-effector position from joint angles.
- Animated 2DOF robot arm
- Continuous joint motion
- Dynamic frame visualization
Robot motion can be simulated by varying joint angles over time.
- Computed reachable workspace
- Sampled joint angles
- Visualized reachable points
Robot workspace represents all positions the end effector can reach.
- MATLAB
- Linear Algebra
- 3D Visualization
This project is part of a structured robotics learning path progressing toward:
- Forward Kinematics
- Denavit–Hartenberg Parameters
- Jacobian Analysis
- Robot Arm Simulation