Search in sources :

Example 1 with LinkConfigurationWidget

use of com.neuronrobotics.bowlerstudio.creature.LinkConfigurationWidget 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

LinkConfigurationWidget (com.neuronrobotics.bowlerstudio.creature.LinkConfigurationWidget)1 LinkSliderWidget (com.neuronrobotics.bowlerstudio.creature.LinkSliderWidget)1 DHParameterKinematics (com.neuronrobotics.sdk.addons.kinematics.DHParameterKinematics)1 LinkConfiguration (com.neuronrobotics.sdk.addons.kinematics.LinkConfiguration)1 MobileBase (com.neuronrobotics.sdk.addons.kinematics.MobileBase)1 Group (javafx.scene.Group)1 Scene (javafx.scene.Scene)1 VBox (javafx.scene.layout.VBox)1