Skip to content

Commit 105f620

Browse files
Merge pull request #465 from CommonWealthRobotics/kh/robot-lab
Update Robot Lab
2 parents 2d14912 + 532d2c3 commit 105f620

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

libraries/bowler-script-kernel

Submodule bowler-script-kernel updated 34 files

src/main/java/com/neuronrobotics/bowlerstudio/creature/CreatureLab.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ public void setGameController(BowlerJInputDevice bowlerJInputDevice) {
389389
}
390390

391391
public void setGitDhEngine(String gitsId, String file, DHParameterKinematics dh) {
392-
MobileBaseLoader.get(CSGDatabase.getInstance(),baseManager.getMobileBase()).setDefaultDhParameterKinematics(dh);
392+
MobileBaseLoader.setDefaultDhParameterKinematics(CSGDatabase.getInstance(),dh);
393393

394394
}
395395

src/main/java/com/neuronrobotics/bowlerstudio/threed/BowlerStudio3dEngine.java

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
import eu.mihosoft.vrl.v3d.CSG;
5757
import eu.mihosoft.vrl.v3d.Cylinder;
5858
import eu.mihosoft.vrl.v3d.JavaFXInitializer;
59+
import eu.mihosoft.vrl.v3d.MissingManipulatorException;
5960
import eu.mihosoft.vrl.v3d.parametrics.CSGDatabase;
6061
import eu.mihosoft.vrl.v3d.parametrics.CSGDatabaseInstance;
6162
import eu.mihosoft.vrl.v3d.parametrics.IParameterChanged;
@@ -943,7 +944,15 @@ public void run() {
943944
});
944945
if (showRuler != null) {
945946
Axis axis = new Axis(showRuler.isSelected());
946-
BowlerStudio.runLater(() -> axis.getTransforms().add(currentCsg.getManipulator()));
947+
if(currentCsg.hasManipulator())
948+
BowlerStudio.runLater(() -> {
949+
try {
950+
axis.getTransforms().add(currentCsg.getManipulator());
951+
} catch (MissingManipulatorException e) {
952+
// TODO Auto-generated catch block
953+
e.printStackTrace();
954+
}
955+
});
947956
axisMap.put(current, axis);
948957
BowlerStudio.runLater(() -> lookGroup.getChildren().add(axis));
949958
}
@@ -1636,9 +1645,15 @@ public void setSelectedCsg(CSG scg, boolean justHighlight) {
16361645
poseToMove.translateZ(zcenter);
16371646
}
16381647

1639-
Affine manipulator2 = selectedCsg.getManipulator();
1648+
Affine manipulator2;
1649+
try {
1650+
manipulator2 = selectedCsg.hasManipulator()? selectedCsg.getManipulator():new Affine();
1651+
focusToAffine(poseToMove, manipulator2);
1652+
} catch (MissingManipulatorException e) {
1653+
// TODO Auto-generated catch block
1654+
e.printStackTrace();
1655+
}
16401656

1641-
focusToAffine(poseToMove, manipulator2);
16421657
}
16431658
resetMouseTime();
16441659
}

0 commit comments

Comments
 (0)