This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Have BowlerStudio speak messages | |
BowlerKernel.speak("Welcome to Bowler Studio") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def controller = BowlerBuilder.getInjector().getInstance(MainWindowController.class) | |
println controller.class |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
double hsAxleX = 6.35; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.