Skip to content

sarinyash551-lgtm/robot-spatial-transformations-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 Robot Spatial Transformations Tool

Python Robotics Linear Algebra License

A pure Python implementation of spatial transformations and homogeneous transformation matrices used in robotics, implemented entirely without external numerical libraries such as NumPy.


📌 Overview

This project demonstrates the mathematical foundations of spatial transformations used in robotics through manual implementation of matrix operations.

Instead of relying on external libraries, every operation—including matrix multiplication, transpose, rotation matrices, and homogeneous transformation matrices—is implemented from scratch using only Python's standard library.

The project is designed for students, robotics enthusiasts, and engineers who want to understand how robot coordinate transformations work internally.


✨ Features

  • Manual matrix multiplication implementation
  • Matrix transpose implementation
  • Degree-to-radian conversion
  • Rotation matrices about X, Y, and Z axes
  • Homogeneous transformation matrix construction
  • Pure Python implementation (No NumPy)
  • Educational robotics mathematics
  • Well-documented functions

🛠 Technologies Used

  • Python
  • Python Standard Library (math)
  • Matrix Algebra
  • Robotics Mathematics
  • Homogeneous Transformations

📂 Project Structure

robot-spatial-transformations-tool/

├── spatial_transformations_tool.py
├── demo.mp4
├── README.md
├── LICENSE
├── .gitignore
└── .gitattributes

🎥 Demo

A demonstration video of the implementation is included in this repository.

demo.mp4

🚀 Installation

Clone the repository

git clone https://github.com/sarinyash551-lgtm/robot-spatial-transformations-tool.git

Move into the project folder

cd robot-spatial-transformations-tool

Run the Python script

python spatial_transformations_tool.py

📚 Concepts Covered

  • Matrix Multiplication
  • Matrix Transpose
  • Rotation Matrices
  • Coordinate Frames
  • Coordinate Transformations
  • Euler Rotations
  • Homogeneous Coordinates
  • Homogeneous Transformation Matrices
  • 3×3 Rotation Matrices
  • 4×4 Transformation Matrices

🔬 Mathematical Operations Implemented

  • Degree → Radian Conversion
  • Matrix Multiplication
  • Matrix Transpose
  • Rotation about X-axis
  • Rotation about Y-axis
  • Rotation about Z-axis
  • Homogeneous Transformation Matrix Construction

All mathematical operations are implemented manually without relying on external numerical libraries.


🎯 Applications

This project can be used for:

  • Robotics
  • Robot Kinematics
  • Engineering Mathematics
  • Computer Graphics
  • Computer Vision
  • Educational Demonstrations
  • Coordinate Frame Analysis

🚀 Future Improvements

  • Forward Kinematics
  • Denavit–Hartenberg (DH) Parameters
  • Inverse Kinematics
  • 3D Visualization
  • Animation of Coordinate Frames
  • Interactive GUI
  • NumPy Optimized Version

👨‍💻 Author

Yash Sarin

GitHub: https://github.com/sarinyash551-lgtm


📄 License

This project is licensed under the MIT License.

About

Interactive Python tool for visualizing 2D spatial transformations including translation, rotation, scaling, shearing and reflection.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors