This file contains 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
// Starting with the connected camera from BowlerStudio | |
println(cameraCHDK) | |
//Create the default detector using "haarcascade_frontalface_default.xml" | |
IObjectDetector detector = new HaarDetector("haarcascade_smile.xml") | |
// Create the input and display images. The display is where the detector writes its detections overlay on the input image | |
Mat inputImage = new Mat() | |
Mat displayImage = new Mat() | |
// Loop checking the camera for faces | |
while(true){ | |
cameraCHDK.getLatestImage(inputImage,displayImage); // capture image |
This file contains 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 com.neuronrobotics.bowlerstudio.tabs.*; | |
new CameraTab(cameraCHDK, new HaarDetector()); |
This file contains 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
bowler.killAllPidGroups(); | |
// die die die |
This file contains 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
void setup() { | |
Serial.begin(115200); | |
#define pin 23 | |
#define pmax 500 | |
#define pmin -500 | |
#define zero 1492 | |
#define INCOM 6 | |
#define EN 8 | |
#define CWCCW 7 |
This file contains 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 com.neuronrobotics.sdk.addons.gamepad.IJInputEventListener; | |
import net.java.games.input.Component; | |
import net.java.games.input.Event; | |
ServoChannel srvfront = new ServoChannel (dyio.getChannel(0)); | |
ServoChannel srvdrive = new ServoChannel (dyio.getChannel(11)); | |
IJInputEventListener listener = new IJInputEventListener() { | |
@Override public void onEvent(Component comp, Event event1,float value, String eventString) { | |
int front,drive; |
This file contains 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 com.neuronrobotics.sdk.addons.gamepad.IJInputEventListener; | |
import com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice; | |
import net.java.games.input.Component; | |
import net.java.games.input.Event; | |
import net.java.games.input.Controller; | |
import net.java.games.input.ControllerEnvironment; | |
BowlerJInputDevice g=null;// Create a variable to store the device | |
//Check if the device already exists in the device Manager | |
if(DeviceManager.getSpecificDevice(BowlerJInputDevice.class, "jogController")==null){ |
This file contains 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> | |
<driveType>walking</driveType> | |
<cadEngine> | |
<git>https://gist.github.com/bcb4760a449190206170.git</git> | |
<file>ThreeDPrintCad.groovy</file> | |
</cadEngine> | |
<driveEngine> | |
<git>https://gist.github.com/bcb4760a449190206170.git</git> |
This file contains 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/2e08db0887e365607fe283815284c128.git</git> | |
<file>ThreeDPrintCad.groovy</file> | |
</cadEngine> | |
<driveEngine> | |
<git>https://gist.github.com/2e08db0887e365607fe283815284c128.git</git> | |
<file>WalkingDriveEngine.groovy</file> | |
</driveEngine> |
This file contains 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
//Your code here | |
import com.neuronrobotics.sdk.pid.*; | |
import com.neuronrobotics.sdk.common.*; | |
import com.neuronrobotics.sdk.network.*; | |
import java.net.InetAddress; | |
BowlerAbstractConnection connection = new UDPBowlerConnection(InetAddress.getByName("192.168.1.10"),1952); | |
GenericPIDDevice dev = new GenericPIDDevice(connection); | |
Log.enableInfoPrint(); |
OlderNewer