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
| public class HelloWorld | |
| { | |
| public HelloWorld() | |
| { | |
| System.out.println("Hello World"); | |
| } | |
| } | |
| HelloWorld hw = new HelloWorld(); |
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
| /.settings | |
| /.project | |
| /.classpath | |
| /.cproject | |
| /cache/ | |
| /*.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
| import eu.mihosoft.vrl.v3d.parametrics.*; | |
| [hexSideLength = 15, hexWidth = 3] | |
| [rowRadius = 46.1549, numberOfHexPerRow = 30] | |
| //Returns a single side for a hex | |
| CSG getSide() | |
| { | |
| return new Cube(hexWidth, hexWidth, hexSideLength).noCenter() | |
| .toCSG() |
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
| for (int i = 0; i < 100; i += 1) | |
| { | |
| println "The loop count is: "+i | |
| } |
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
| int x = 2**2; | |
| if(x > 4) | |
| { | |
| System.out.println("Does this work?"); | |
| } | |
| int i = 9; | |
| if(i % 2 == 1) | |
| { | |
| System.out.println("Does this work?"); | |
| } |
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
| CSG head = new Sphere (30).toCSG() | |
| .movex(0) | |
| .movey(0) | |
| .movez(40) | |
| CSG base = new Cylinder (50,1,100).toCSG() | |
| .movex(0) | |
| .movey(0) | |
| .movez(-77) | |
| CSG orangering2 = new Sphere (30.1).toCSG() | |
| .movex(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.io.File; | |
| import java.io.IOException; | |
| import java.util.HashSet; | |
| import java.util.Set; | |
| import org.eclipse.jgit.api.errors.GitAPIException; | |
| import org.eclipse.jgit.api.errors.InvalidRemoteException; | |
| import org.eclipse.jgit.api.errors.TransportException; | |
| import com.neuronrobotics.bowlerstudio.scripting.ScriptingEngine; |
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
| /.settings | |
| /.project | |
| /.classpath | |
| /.cproject | |
| /cache/ | |
| /*.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
| <root> | |
| <mobilebase> | |
| <cadEngine> | |
| <git>https://gist.github.com/6ec266cd72cf57e22f9026e8c15ca636.git</git> | |
| <file>ThreeDPrintCad.groovy</file> | |
| </cadEngine> | |
| <driveEngine> | |
| <git>https://gist.github.com/a8423ccd585c8de046dd41636c2e8596.git</git> | |
| <file>Walking.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
| 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() { |