Skip to content

Instantly share code, notes, and snippets.

View siddharthdeore's full-sized avatar
🛰️
Aerospace, Robots!

Siddharth Deore siddharthdeore

🛰️
Aerospace, Robots!
View GitHub Profile
@but0n
but0n / _GJK.md
Created March 23, 2019 09:36 — forked from vurtun/_GJK.md
3D Gilbert–Johnson–Keerthi (GJK) distance algorithm

Gilbert–Johnson–Keerthi (GJK) 3D distance algorithm

The Gilbert–Johnson–Keerthi (GJK) distance algorithm is a method of determining the minimum distance between two convex sets. The algorithm's stability, speed which operates in near-constant time, and small storage footprint make it popular for realtime collision detection.

Unlike many other distance algorithms, it has no requirments on geometry data to be stored in any specific format, but instead relies solely on a support function to iteratively generate closer simplices to the correct answer using the Minkowski sum (CSO) of two convex shapes.

@vurtun
vurtun / _GJK.md
Last active December 24, 2025 07:30
3D Gilbert–Johnson–Keerthi (GJK) distance algorithm

Gilbert–Johnson–Keerthi (GJK) 3D distance algorithm

The Gilbert–Johnson–Keerthi (GJK) distance algorithm is a method of determining the minimum distance between two convex sets. The algorithm's stability, speed which operates in near-constant time, and small storage footprint make it popular for realtime collision detection.

Unlike many other distance algorithms, it has no requirments on geometry data to be stored in any specific format, but instead relies solely on a support function to iteratively generate closer simplices to the correct answer using the Minkowski sum (CSO) of two convex shapes.

@awesomebytes
awesomebytes / urdf_to_disable_colisions.py
Last active June 17, 2024 18:29
Generate MoveIt! srdf disable collision pairs from adjacent links and links without collision mesh
#!/usr/bin/env python
"""
Given a URDF given by either
1) param server /robot_description
2) as an argument
Generate all the MoveIt! SRDF
disable collision lines between adjacent
links and links without collision mesh.