Skip to content

Instantly share code, notes, and snippets.

View madhephaestus's full-sized avatar

Kevin Harrington madhephaestus

View GitHub Profile
@madhephaestus
madhephaestus / ToroidTest.groovy
Last active January 31, 2023 15:48
Demonstration of Toroid
return new Toroid(10, 20, 20, 16).toCSG()
/.settings
/.project
/.classpath
/.cproject
/cache/
/*.class
@madhephaestus
madhephaestus / assembly.groovy
Last active April 14, 2022 23:37
Demonstrate assembly instructions
import eu.mihosoft.vrl.v3d.CSG
import eu.mihosoft.vrl.v3d.Cylinder
import eu.mihosoft.vrl.v3d.Hexagon
import eu.mihosoft.vrl.v3d.Transform
CSG vitamin_LewanSoulMotor_lx_224 = Vitamins.get("LewanSoulMotor", "lx_224")
CSG vitamin_LewanSoulHorn_round_m3_bolts = Vitamins.get("LewanSoulHorn", "round_m3_bolts")
CSG vitamin_capScrew_M3 = Vitamins.get("capScrew", "M3")
CSG simpleSyntax =new Cylinder(40,4).toCSG() // a one line Cylinder
@madhephaestus
madhephaestus / TestGist.groovy
Last active March 10, 2022 17:30
Tasting the eclipse loading
//Your code here
println "Hello world"
@madhephaestus
madhephaestus / .gitignore
Last active January 9, 2021 22:14
jabber.groovy
/.project
/.classpath
/cache/
/*.class/.project
/.classpath
/.cproject
/cache/
/*.class
@madhephaestus
madhephaestus / .gitignore
Last active August 30, 2020 20:53
printDHTable.groovy
/.classpath
/.project
**.class
@madhephaestus
madhephaestus / armtest.groovy
Last active August 8, 2020 21:58
armtest.groovy
//Your code here
def base=DeviceManager.getSpecificDevice( "Standard6dof",{
ScriptingEngine.gitScriptRun(
"https://github.com/madhephaestus/6dofServoArm.git", "6dofServoArm.xml",
null
)
}
)
def limb = base.getAllDHChains().get(0)
@madhephaestus
madhephaestus / moveParallel.groovy
Created August 4, 2020 19:27
moveParallel.groovy
//Your code here
@madhephaestus
madhephaestus / HIDTest.groovy
Last active June 17, 2020 03:35
HIDTest.groovy
@Grab(group='org.hid4java', module='hid4java', version='0.5.0')
import org.hid4java.HidDevice;
import org.hid4java.HidManager;
import org.hid4java.HidServices;
public int getPid() {
//return 0xffff804d; // arduino zero RawHID
//return 0xffff8033 // pybadge
return 0x486; // teensy
}
@madhephaestus
madhephaestus / testGripper.groovy
Last active May 24, 2020 19:30
testGripper.groovy
//ScriptingEngine.gitScriptRun("https://github.com/CommonWealthRobotics/DeviceProviders.git","loadAll.groovy", null);
def robot = DeviceManager.getSpecificDevice( "HephaestusArmV2",{
return MobileBaseLoader.fromGit(
"https://github.com/Hephaestus-Arm/HephaestusArm2.git",
"hephaestus.xml"
)
})
def dev = DeviceManager.getSpecificDevice( "hephaestus-16c00486")