Skip to content

Commit

Permalink
Merge pull request #391 from CommonWealthRobotics/kh/physics-update-m…
Browse files Browse the repository at this point in the history
…ujoco

kernel
  • Loading branch information
madhephaestus authored Jun 11, 2024
2 parents ec69a0c + 74cd05f commit 01dbfa5
Show file tree
Hide file tree
Showing 48 changed files with 2,756 additions and 925 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,15 @@ jobs:
tag_name: ${{ github.ref }}
env:
GITHUB_TOKEN: ${{ github.token }}

- name: upload JVM Configuration
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: jvm.json
asset_name: jvm.json
asset_content_type: application/json
- name: upload BowlerStudio artifact
uses: actions/upload-release-asset@v1
env:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@
/Oracle_VM_VirtualBox_Extension_Pack-5.2.20.vbox-extpack
/chdk-ptp-java.log
/deps.txt
/MUJOCO_LOG.TXT
/physicsTest/
9 changes: 6 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,9 @@ dependencies {
compile group: 'java3d', name: 'vecmath', version: '1.3.1'
compile 'org.slf4j:slf4j-simple:1.6.1'

//compile "com.neuronrobotics:JavaCad:0.14.0"
compile "com.neuronrobotics:CHDK-PTP-Java:0.5.3-SNAPSHOT"
//compile "com.neuronrobotics:java-bowler:3.25.4"
//compile fileTree (dir: '../java-bowler/build/libs/', includes: ['nrsdk-3.23.3-jar-with-dependencies.jar'])
//compile fileTree (dir: '../JCSG/build/libs/', includes: ['JavaCad-0.8.2.jar'])
compile "com.neuronrobotics:WalnutiQ:2.3.3"


Expand Down Expand Up @@ -342,7 +340,8 @@ dependencies {
//compile fileTree (dir: 'libraries/bowler-script-kernel/libs/', includes: ['*.jar'])
compile project(':libraries:bowler-script-kernel:java-bowler')
compile project(':libraries:bowler-script-kernel')
compile project(':libraries:bowler-script-kernel:JCSG')
//compile project(':libraries:bowler-script-kernel:JCSG')

compile project(':libraries:dockfx')
compile project(':libraries:bowler-script-kernel:GithubPasswordManager:GithubPasswordManager')
//compile project(':kinematics-chef')
Expand All @@ -356,6 +355,10 @@ dependencies {

//https://github.com/HanSolo/Medusa
compile group: 'eu.hansolo', name: 'Medusa', version: '7.1'
//MuJoCo
implementation group: 'org.bytedeco', name: 'javacpp', version: '1.5.7'
implementation group: 'com.neuronrobotics', name: 'mujoco-java', version:'3.1.3-pre.11'


}

Expand Down
38 changes: 38 additions & 0 deletions jvm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"Linux-x64":{
"url":"https://cdn.azul.com/zulu/bin/"
,
"type":"tar.gz",
"name":"zulu8.78.0.19-ca-fx-jdk8.0.412-linux_x64",
"jvmargs":["-Dprism.forceGPU=true"]
},
"Linux-aarch64":{
"url":"https://cdn.azul.com/zulu/bin/"
,
"type":"tar.gz",
"name":"zulu8.78.0.19-ca-fx-jdk8.0.412-linux_aarch64",
"jvmargs":["-Dprism.forceGPU=true"]

},
"Windows-x64":{
"url":"https://cdn.azul.com/zulu/bin/"
,
"type":"zip",
"name":"zulu8.78.0.19-ca-fx-jdk8.0.412-win_x64"
},
"Mac-x64":{
"url":"https://cdn.azul.com/zulu/bin/"
,
"type":"zip",
"name":"zulu8.78.0.19-ca-fx-jdk8.0.412-macosx_x64",
"jvmargs":["-Dprism.forceGPU=true"]
},
"Mac-aarch64":{
"url":"https://cdn.azul.com/zulu/bin/"
,
"type":"zip",
"name":"zulu8.78.0.19-ca-fx-jdk8.0.412-macosx_aarch64",
"jvmargs":["-Dprism.forceGPU=true"]
}

}
2 changes: 1 addition & 1 deletion libraries/bowler-script-kernel
Submodule bowler-script-kernel updated 35 files
+14 −9 .github/workflows/verify.yml
+3 −0 .gitignore
+1 −1 JCSG
+6 −0 README.md
+36 −0 UpdateJavaDocs.sh
+8 −3 build.gradle
+2,428 −0 doxy.doxyfile
+1 −1 java-bowler
+ libs/kabeja-0.4.jar
+ libs/kabeja-svg-0.4.jar
+ libs/kabeja-xslt.jar
+0 −1 settings.gradle
+38 −0 simpleReturn.groovy
+2 −1 src/main/java/com/neuronrobotics/bowlerkernel/Bezier3d/BezierEditor.java
+5 −4 src/main/java/com/neuronrobotics/bowlerkernel/djl/UniquePersonFactory.java
+53 −8 src/main/java/com/neuronrobotics/bowlerstudio/BowlerKernel.java
+5 −11 src/main/java/com/neuronrobotics/bowlerstudio/IssueReportingExceptionHandler.java
+9 −4 src/main/java/com/neuronrobotics/bowlerstudio/assets/AssetFactory.java
+62 −146 src/main/java/com/neuronrobotics/bowlerstudio/assets/ConfigurationDatabase.java
+46 −0 src/main/java/com/neuronrobotics/bowlerstudio/assets/FontSizeManager.java
+5 −0 src/main/java/com/neuronrobotics/bowlerstudio/assets/IFontSizeReciver.java
+445 −64 src/main/java/com/neuronrobotics/bowlerstudio/creature/MobileBaseCadManager.java
+16 −15 src/main/java/com/neuronrobotics/bowlerstudio/physics/MobileBasePhysicsManager.java
+1,108 −0 src/main/java/com/neuronrobotics/bowlerstudio/physics/MuJoCoPhysicsManager.java
+2 −1 src/main/java/com/neuronrobotics/bowlerstudio/physics/PhysicsCore.java
+20 −3 src/main/java/com/neuronrobotics/bowlerstudio/printbed/PrintBedManager.java
+53 −36 src/main/java/com/neuronrobotics/bowlerstudio/scripting/ScriptingEngine.java
+73 −44 src/main/java/com/neuronrobotics/bowlerstudio/vitamins/VitaminBomManager.java
+34 −17 src/main/java/com/neuronrobotics/bowlerstudio/vitamins/Vitamins.java
+1 −6 src/main/java/com/neuronrobotics/sdk/addons/gamepad/BowlerJInputDevice.java
+47 −30 src/main/java/com/neuronrobotics/sdk/addons/gamepad/JogTrainerWidget.java
+3 −1 src/main/java/com/neuronrobotics/sdk/addons/gamepad/PersistantControllerMap.java
+74 −0 test/java/src/junit/bowler/MuJoCoBowlerIntegrationTest.java
+20 −0 test/java/src/junit/bowler/MuJoCoTest.java
+24 −37 test/java/src/junit/bowler/PyTorchResNetTest.java
1 change: 0 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
include ':libraries:bowler-script-kernel'
include ':libraries:bowler-script-kernel:java-bowler'
include ':libraries:bowler-script-kernel:JCSG'
include ':libraries:dockfx'
include ':libraries:bowler-script-kernel:GithubPasswordManager:GithubPasswordManager'
rootProject.name = 'BowlerStudio'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.neuronrobotics.bowlerstudio;

import com.neuronrobotics.bowlerstudio.assets.AssetFactory;
import com.neuronrobotics.bowlerstudio.assets.FontSizeManager;
import com.neuronrobotics.bowlerstudio.scripting.ArduinoLoader;
import com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage;
import com.neuronrobotics.bowlerstudio.scripting.ScriptingEngine;
Expand Down Expand Up @@ -94,6 +95,12 @@ public void start(Stage primaryStage) throws Exception {
// This is needed when loading on MAC
loader.setClassLoader(getClass().getClassLoader());
root = loader.load();
FontSizeManager.addListener(fontNum->{
int tmp = fontNum-10;
if(tmp<12)
tmp=12;
root.setStyle("-fx-font-size: "+tmp+"pt");
});
extention.getItems().clear();
if (getGitRepo() != null) {
newProject.getChildren().clear();
Expand All @@ -114,6 +121,10 @@ public void start(Stage primaryStage) throws Exception {

icon = AssetFactory.loadAsset(asset);
langaugeIcon.setImage(icon);
FontSizeManager.addListener(fontNum->{
langaugeIcon.setScaleX(FontSizeManager.getImageScale());
langaugeIcon.setScaleY(FontSizeManager.getImageScale());
});
} catch (Exception e2) {
// TODO Auto-generated catch block
e2.printStackTrace();
Expand Down Expand Up @@ -147,6 +158,7 @@ private void setSelected(String selectedItem) throws Exception {
Image loadAsset = AssetFactory.loadAsset(file);
try {
langaugeIcon.setImage(loadAsset);

}catch(Throwable t) {
t.printStackTrace();
}
Expand Down
Loading

0 comments on commit 01dbfa5

Please sign in to comment.