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.time.Duration; | |
import java.util.ArrayList; | |
import javafx.application.Platform; | |
import org.reactfx.util.FxTimer; | |
import com.neuronrobotics.sdk.addons.kinematics.DHParameterKinematics; | |
import com.neuronrobotics.sdk.addons.kinematics.MobileBase; | |
import com.neuronrobotics.sdk.addons.kinematics.math.RotationNR; |
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
DELTA_DIAGONAL_ROD = 288.5 | |
// Horizontal offset from middle of printer to smooth rod center. | |
DELTA_SMOOTH_ROD_OFFSET = 206.0 // mm | |
// Horizontal offset of the universal joints on the end effector. | |
// DELTA_EFFECTOR_OFFSET = 32.0 // mm | |
DELTA_EFFECTOR_OFFSET = 32.0 // mm | |
// Horizontal offset of the universal joints on the carriages. |
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
@GrabResolver(name='sonatype', root='https://oss.sonatype.org/content/repositories/releases/') | |
@Grab(group='com.neuronrobotics', module='SimplePacketComsJava', version='0.1.6') | |
import java.net.InetAddress; | |
import java.util.ArrayList; | |
import java.util.HashSet; | |
import java.util.List; | |
import edu.wpi.SimplePacketComs.*; | |
import edu.wpi.SimplePacketComs.PacketType; |
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='com.neuronrobotics', module='SimplePacketComsJava', version='0.0.9') | |
import edu.wpi.SimplePacketComs.bytepacket.BytePacketType; | |
import edu.wpi.SimplePacketComs.floatpacket.FloatPacketType; | |
import edu.wpi.SimplePacketComs.*; | |
import edu.wpi.SimplePacketComs.phy.UDPSimplePacketComs; | |
import java.net.InetAddress; | |
import java.util.HashSet; | |
class GameController extends NonBowlerDevice{ |
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
@GrabResolver(name='sonatype', root='https://oss.sonatype.org/content/repositories/releases/') | |
@Grab(group='com.neuronrobotics', module='SimplePacketComsJava', version='0.1.1') | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import org.hid4java.HidDevice; | |
import org.hid4java.HidManager; | |
import org.hid4java.HidServices; |
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
@GrabResolver(name='sonatype', root='https://oss.sonatype.org/content/repositories/releases/') | |
@Grab(group='com.neuronrobotics', module='SimplePacketComsJava', version='0.1.0') | |
import edu.wpi.SimplePacketComs.device.hephaestus.HephaestusArm; | |
import Jama.Matrix; | |
public class HIDSimpleComsDevice extends NonBowlerDevice{ | |
public HephaestusArm arm; | |
public HephaestusArm slave; | |
public HIDSimpleComsDevice(int vidIn, int pidIn,int vidSlave, int pidSlave){ |
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.awt.image.BufferedImage; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.opencv.core.Core; | |
import org.opencv.core.CvType; | |
import org.opencv.core.Mat; | |
import org.opencv.core.MatOfByte; | |
import org.opencv.core.Point; | |
import org.opencv.core.Rect; |
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.hid4java', module='hid4java', version='0.5.0') | |
import org.hid4java.* | |
import org.hid4java.event.*; | |
import java.nio.ByteBuffer; | |
import java.nio.ByteOrder; | |
class PacketProcessor{ | |
HidDevice myHidDevice; | |
ByteOrder be =ByteOrder.LITTLE_ENDIAN; |
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
package com.neuronrobotics.test.nrdk; | |
import com.neuronrobotics.sdk.genericdevice.GenericDevice; | |
import com.neuronrobotics.sdk.serial.SerialConnection; | |
public class SimpleConnection { | |
/** | |
* @param args | |
*/ |
NewerOlder