Skip to content

Instantly share code, notes, and snippets.

View madhephaestus's full-sized avatar

Kevin Harrington madhephaestus

View GitHub Profile
@hugs
hugs / ik.py
Created December 7, 2012 06:46
Delta robot - Inverse and forward kinematics library - (For @bitbeam bot)
# Original code from
# http://forums.trossenrobotics.com/tutorials/introduction-129/delta-robot-kinematics-3276/
# License: MIT
import math
# Specific geometry for bitbeambot:
# http://flic.kr/p/cYaQah
e = 26.0
f = 69.0
@kastner
kastner / kin.js
Created March 31, 2013 02:03
forward and reverse kinematics for a linear delta bot
DELTA_DIAGONAL_ROD = 288.5
// Horizontal offset from middle of printer to smooth rod center.
DELTA_SMOOTH_ROD_OFFSET = 206.0 // mm
// Horizontal offset of the universal joints on the end effector.
// DELTA_EFFECTOR_OFFSET = 32.0 // mm
DELTA_EFFECTOR_OFFSET = 32.0 // mm
// Horizontal offset of the universal joints on the carriages.
// Create a cube
import eu.mihosoft.vrl.v3d.STL;
double size =40;
CSG cube = new Cube(size).toCSG()
//create a sphere
CSG sphere = new Sphere(size/20*12.5).toCSG()
//perform a difference
// perform union, difference and intersection
CSG cubePlusSphere = cube.union(sphere);