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();
}
Aggregations