Search in sources :

Example 6 with LinkConfiguration

use of com.neuronrobotics.sdk.addons.kinematics.LinkConfiguration in project BowlerStudio by CommonWealthRobotics.

the class AppTestLinkWidgets method start.

@Override
public void start(Stage stage) throws Exception {
    ScriptingEngine.gitScriptRun("https://github.com/CommonWealthRobotics/DeviceProviders.git", "loadAll.groovy", null);
    MobileBase base = MobileBaseLoader.fromGit("https://github.com/Hephaestus-Arm/HephaestusArm2.git", "hephaestus.xml");
    DHParameterKinematics limb = base.getAllDHChains().get(0);
    int index = 2;
    LinkConfiguration conf = limb.getLinkConfiguration(index);
    LinkConfigurationWidget theWidget = new LinkConfigurationWidget(conf, limb.getFactory(), MobileBaseCadManager.get(base));
    LinkSliderWidget lsw = new LinkSliderWidget(index, limb, theWidget);
    VBox box = new VBox();
    box.getChildren().addAll(lsw);
    Group root = new Group(box);
    Scene scene = new Scene(root, 800, 900);
    stage.setTitle("My JavaFX Application");
    stage.setScene(scene);
    stage.show();
}
Also used : Group(javafx.scene.Group) LinkConfiguration(com.neuronrobotics.sdk.addons.kinematics.LinkConfiguration) LinkConfigurationWidget(com.neuronrobotics.bowlerstudio.creature.LinkConfigurationWidget) DHParameterKinematics(com.neuronrobotics.sdk.addons.kinematics.DHParameterKinematics) LinkSliderWidget(com.neuronrobotics.bowlerstudio.creature.LinkSliderWidget) Scene(javafx.scene.Scene) MobileBase(com.neuronrobotics.sdk.addons.kinematics.MobileBase) VBox(javafx.scene.layout.VBox)

Aggregations

LinkConfiguration (com.neuronrobotics.sdk.addons.kinematics.LinkConfiguration)6 DHParameterKinematics (com.neuronrobotics.sdk.addons.kinematics.DHParameterKinematics)3 ServoChannel (com.neuronrobotics.sdk.dyio.peripherals.ServoChannel)3 IOException (java.io.IOException)3 ArrayList (java.util.ArrayList)3 ServoRotoryLink (com.neuronrobotics.sdk.addons.kinematics.ServoRotoryLink)2 DyPIDConfiguration (com.neuronrobotics.sdk.dyio.dypid.DyPIDConfiguration)2 AnalogInputChannel (com.neuronrobotics.sdk.dyio.peripherals.AnalogInputChannel)2 PIDChannel (com.neuronrobotics.sdk.pid.PIDChannel)2 PIDConfiguration (com.neuronrobotics.sdk.pid.PIDConfiguration)2 CSG (eu.mihosoft.vrl.v3d.CSG)2 GitAPIException (org.eclipse.jgit.api.errors.GitAPIException)2 InvalidRemoteException (org.eclipse.jgit.api.errors.InvalidRemoteException)2 TransportException (org.eclipse.jgit.api.errors.TransportException)2 VirtualAckermanBot (com.neuronrobotics.addons.driving.virtual.VirtualAckermanBot)1 VirtualLineSensor (com.neuronrobotics.addons.driving.virtual.VirtualLineSensor)1 LinkConfigurationWidget (com.neuronrobotics.bowlerstudio.creature.LinkConfigurationWidget)1 LinkSliderWidget (com.neuronrobotics.bowlerstudio.creature.LinkSliderWidget)1 AbstractLink (com.neuronrobotics.sdk.addons.kinematics.AbstractLink)1 ILinkListener (com.neuronrobotics.sdk.addons.kinematics.ILinkListener)1