Skip to content

Instantly share code, notes, and snippets.

@Octogonapus
Octogonapus / BB_ARM.xml
Last active February 28, 2018 17:54
BB_ARM copy of HephaestusWorkCell
<root>
<mobilebase>
<cadEngine>
<git>https://gist.github.com/74d9cb301ceece7548650c3edf41459a.git</git>
<file>seaLinkGen.groovy</file>
</cadEngine>
<driveEngine>
<git>https://gist.github.com/74d9cb301ceece7548650c3edf41459a.git</git>
<file>WalkingDriveEngine.groovy</file>
</driveEngine>
@Octogonapus
Octogonapus / helloWorld.groovy
Created February 28, 2018 01:29 — forked from madhephaestus/.gitignore
BowlerStudio Hello World
// Have BowlerStudio speak messages
BowlerKernel.speak("Welcome to Bowler Studio")
def controller = BowlerBuilder.getInjector().getInstance(MainWindowController.class)
println controller.class
@Octogonapus
Octogonapus / combat_robot_base.groovy
Last active February 24, 2018 06:45
antweight combat robot base
def motorDiam = 35, motorLength = 35
CSG motor = new Cylinder(motorDiam/2, motorDiam/2, motorLength, 80).toCSG()
motor = motor.roty(90)
motor = motor.movex(-motor.getMinX()).movez(-motor.getMinZ())
CSG base = new Cube(180, 120, 40).toCSG()
base = base.movez(-base.getMinZ())
CSG rightMotor = motor.movex(base.getMaxX() - motor.getTotalX()/2).movex(-10)
@Octogonapus
Octogonapus / vertex_quantization.groovy
Last active February 21, 2018 21:12
Vertex quantization test
@Grab(group='org.codehaus.gpars', module='gpars', version='1.2.1')
import static groovyx.gpars.GParsPool.withPool
CSG getEllipse(double xRadius, double yRadius, double z) {
List<Vector3d> points = [];
for (double i = 0; i < 2 * Math.PI; i += 0.01) {
points.add(new Vector3d((xRadius*yRadius*Math.cos(i)) / Math.sqrt((Math.pow((yRadius*Math.cos(i)), 2) + Math.pow((xRadius*Math.sin(i)), 2))),
(xRadius*yRadius*Math.sin(i)) / Math.sqrt((Math.pow((yRadius*Math.cos(i)), 2) + Math.pow((xRadius*Math.sin(i)), 2))),
0));
@Octogonapus
Octogonapus / DefaultDhSolver.groovy
Last active February 17, 2018 21:43
NASA_Curiosity_copy copy of NASA_Curiosity
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() {
@Octogonapus
Octogonapus / 52t_helical_gear.groovy
Created January 17, 2018 23:53
52t helical gear
double hsAxleX = 6.35;
@Octogonapus
Octogonapus / BowlerWorkCell.xml
Created January 12, 2018 22:28
BowlerWorkCell copy of HephaestusWorkCell
<root>
<mobilebase>
<cadEngine>
<git>https://gist.github.com/82d0c9c66a492cc30850143df6155833.git</git>
<file>seaLinkGen.groovy</file>
</cadEngine>
<driveEngine>
<git>https://gist.github.com/82d0c9c66a492cc30850143df6155833.git</git>
<file>WalkingDriveEngine.groovy</file>
</driveEngine>
@Octogonapus
Octogonapus / camera_mount_left_half.stl
Last active January 8, 2018 16:32
Camera mount to threaded rod
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Octogonapus
Octogonapus / end1_fixed.stl
Last active January 6, 2018 19:50
Open Cable Chain Ends
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.