Skip to content

Instantly share code, notes, and snippets.

View madhephaestus's full-sized avatar

Kevin Harrington madhephaestus

View GitHub Profile
@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")
@madhephaestus
madhephaestus / ExtrudeSlicePolygon.groovy
Last active April 8, 2020 14:14
Extruding slices and polygons
import eu.mihosoft.vrl.v3d.CSG
import eu.mihosoft.vrl.v3d.Cube
import eu.mihosoft.vrl.v3d.Extrude
import eu.mihosoft.vrl.v3d.Polygon
import eu.mihosoft.vrl.v3d.Slice
import eu.mihosoft.vrl.v3d.Transform
def base = new Cube(20).toCSG()
.difference(new Cube(5,10,20).toCSG())
.difference(new Cube(10,5,20).toCSG())
@madhephaestus
madhephaestus / .gitignore
Last active April 7, 2020 20:33
serialTest.groovy
/serialTest.class
/.classpath
/.project
@madhephaestus
madhephaestus / .gitignore
Last active November 12, 2024 14:58
gsonExample.groovy
/.project
/.classpath
/.cproject
/cache/
/*.class
@madhephaestus
madhephaestus / grabtest.groovy
Created February 3, 2020 16:39 — forked from keionbis/grabtest.groovy
grabtest.groovy
// https://mvnrepository.com/artifact/net.java.dev.jna/jna
@Grapes(
@Grab(group='net.java.dev.jna', module='jna', version='4.2.2')
)
println "test"
return null
@madhephaestus
madhephaestus / kotlinCad.kt
Last active January 17, 2020 20:47
testing the cad system in kotlin
import eu.mihosoft.vrl.v3d.*
Cube( 40.0,// X dimention
60.0,// Y dimention
80.0// Z dimention
).toCSG()
@madhephaestus
madhephaestus / testKotlin.kt
Last active February 21, 2020 16:07
adding a kotlin file
import com.neuronrobotics.bowlerstudio.BowlerKernel
BowlerKernel.speak("You can write scripts in Kotlin")
@madhephaestus
madhephaestus / testVitamins.groovy
Created January 6, 2020 03:40
testVitamins.groovy
//Your code here
@madhephaestus
madhephaestus / DefaultDhSolver.groovy
Last active December 29, 2019 06:52
MediumKat_copy copy of MediumKat
import java.util.ArrayList;
import com.neuronrobotics.sdk.addons.kinematics.DHChain;
import com.neuronrobotics.sdk.addons.kinematics.DHLink;
import com.neuronrobotics.sdk.addons.kinematics.DhInverseSolver;
import com.neuronrobotics.sdk.addons.kinematics.math.TransformNR;
import com.neuronrobotics.sdk.common.Log;
import Jama.Matrix;
return new DhInverseSolver() {
@madhephaestus
madhephaestus / .gitignore
Last active December 22, 2019 17:52
JavaFXUIAdversary.groovy
/.classpath
/JavaFXUIAdversary.class
/.project
/JavaFXUIAdversary$_run_closure1.class