Skip to content

Commit

Permalink
Merge pull request #46 from CommonWealthRobotics/kh/physics-update-mu…
Browse files Browse the repository at this point in the history
…joco

Adding mujoco test
  • Loading branch information
madhephaestus authored Jun 11, 2024
2 parents 95d8ebc + 99eb99a commit aff4d78
Show file tree
Hide file tree
Showing 35 changed files with 4,642 additions and 443 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,15 @@ jobs:
- name: start xvfb
run:
Xvfb :0 &

- name: initialize the X11 DISPLAY variable
run:
export DISPLAY=:0

- name: After checkout, list directory contnts
run: pwd; ls -la
- name: Install libraries
run: |
sudo apt update
sudo apt install libgtk2.0-0
- name: initialize the X11 DISPLAY variable
run:
export DISPLAY=:0

- name: Pull a JavaFX JDK
run: wget http://static.azul.com/zulu/bin/zulu8.33.0.1-ca-fx-jdk8.0.192-linux_x64.tar.gz
Expand All @@ -46,16 +44,23 @@ jobs:
run: ./gradlew shadowJar

- name: Test with Gradle
run: xvfb-run -s '-screen 0 1024x768x24' ./gradlew test

run: xvfb-run -s '-screen 0 1024x768x24' ./gradlew test
- name: If Fail
if: ${{ failure() }}
run: cat /home/runner/work/bowler-script-kernel/bowler-script-kernel/build/reports/tests/test/index.html

- name: Test Bezier
run: xvfb-run -s '-screen 0 1024x768x24' java -Dprism.verbose=true -Dprism.forceGPU=true -jar build/libs/bowler-kernel.jar -g https://gist.github.com/4aeeaa49bd3a807eed8f8ff3dea84c48.git BezierEditorDemo.groovy
- name: start xvfb
run:
Xvfb :0 &
- name: Test Local
run: xvfb-run -s '-screen 0 1024x768x24' java -Dprism.verbose=true -Dprism.forceGPU=true -jar build/libs/bowler-kernel.jar -f kernel-return-test.groovy

- name: Clean Cad
run: rm -rf $HOME/bowler-workspace/gitcache/github.com/Hephaestus-Arm/HephaestusArm2
- name: build Cad
run: xvfb-run -s '-screen 0 1024x768x24' java -Dprism.verbose=true -Dprism.forceGPU=true -jar build/libs/bowler-kernel.jar -g https://github.com/Hephaestus-Arm/HephaestusArm2.git hephaestus.xml
- name: Test Bezier
run: xvfb-run -s '-screen 0 1024x768x24' java -Dprism.verbose=true -Dprism.forceGPU=true -jar build/libs/bowler-kernel.jar -g https://gist.github.com/4aeeaa49bd3a807eed8f8ff3dea84c48.git BezierEditorDemo.groovy



3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ hs_err_pid*
.idea
out
manufacturing
html
physicsTest
/MUJOCO_LOG.TXT
2 changes: 1 addition & 1 deletion JCSG
Submodule JCSG updated 38 files
+67 −0 .github/workflows/release.yml
+1 −1 .gitignore
+36 −1 README.md
+38 −0 UpdateJavaDocs.sh
+84 −87 build.gradle
+2,428 −0 doxy.doxyfile
+ libs/batik-all.jar
+ libs/js.jar
+ libs/miethxml-toolkit.jar
+ libs/miethxml-ui.jar
+ libs/pdf-transcoder.jar
+ libs/xml-apis-ext.jar
+ libs/xml-apis.jar
+15 −0 publish.sh
+4 −0 src/main/java/eu/mihosoft/vrl/v3d/Bounds.java
+260 −139 src/main/java/eu/mihosoft/vrl/v3d/CSG.java
+2 −2 src/main/java/eu/mihosoft/vrl/v3d/ChamferedCylinder.java
+1 −3 src/main/java/eu/mihosoft/vrl/v3d/Dodecahedron.java
+0 −2 src/main/java/eu/mihosoft/vrl/v3d/Edge.java
+0 −1 src/main/java/eu/mihosoft/vrl/v3d/Fillet.java
+2 −4 src/main/java/eu/mihosoft/vrl/v3d/Icosahedron.java
+2 −4 src/main/java/eu/mihosoft/vrl/v3d/Octahedron.java
+10 −0 src/main/java/eu/mihosoft/vrl/v3d/PropertyStorage.java
+2 −2 src/main/java/eu/mihosoft/vrl/v3d/Sphere.java
+2 −2 src/main/java/eu/mihosoft/vrl/v3d/Tetrahedron.java
+6 −7 src/main/java/eu/mihosoft/vrl/v3d/Toroid.java
+10 −58 src/main/java/eu/mihosoft/vrl/v3d/ext/openjfx/importers/obj/FloatArrayList.java
+20 −68 src/main/java/eu/mihosoft/vrl/v3d/ext/openjfx/importers/obj/IntegerArrayList.java
+2 −8 src/main/java/eu/mihosoft/vrl/v3d/ext/org/poly2tri/PolygonUtil.java
+21 −11 src/main/java/eu/mihosoft/vrl/v3d/ext/quickhull3d/Face.java
+2 −5 src/main/java/eu/mihosoft/vrl/v3d/ext/quickhull3d/HullUtil.java
+9 −0 src/main/java/eu/mihosoft/vrl/v3d/ext/quickhull3d/Point3d.java
+43 −33 src/main/java/eu/mihosoft/vrl/v3d/ext/quickhull3d/QuickHull3D.java
+47 −41 src/main/java/eu/mihosoft/vrl/v3d/ext/quickhull3d/Vector3d.java
+9 −7 src/main/java/eu/mihosoft/vrl/v3d/svg/SVGLoad.java
+1 −0 src/main/resources/com/neuronrobotics/javacad/README.md
+1 −4 src/main/resources/com/neuronrobotics/javacad/build.properties
+35 −0 src/test/java/eu/mihosoft/vrl/v3d/QuickullStressTest.java
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@

# Documentation

[Javadoc Generated Documentation](https://commonwealthrobotics.com/bowler-script-kernel/namespaces.html)


# Bowler Kernel Scripting environment

[![Join the chat at https://gitter.im/CommonWealthRobotics/bowler-script-kernel](https://badges.gitter.im/NeuronRobotics/bowler-script-kernel.svg)](https://gitter.im/NeuronRobotics/bowler-script-kernel?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Expand Down
36 changes: 36 additions & 0 deletions UpdateJavaDocs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/bash

GITURL=$(git config --get remote.origin.url)

echo $GITURL

if test -d /path/to/directory; then
echo "html Directory exists."
cd html
git pull
else
git clone $GITURL html
cd html
fi

if ( git checkout origin/gh-pages -b gh-pages) then
echo "Checked out $GITURL gh-pages"
else
echo "Creating out $GITURL gh-pages"
git checkout origin/development -b gh-pages
rm -r *
echo "# A simple README file for the gh-pages branch" > README.md
git add README.md
git commit -m"Replaced gh-pages html with simple readme"
git push -u origin gh-pages
fi
cd ..

doxygen doxy.doxyfile

cd html
git add *
git add search/*
git commit -a -m"updating the doxygen"
git push
cd ..
11 changes: 8 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ dependencies {
//compile group: "de.swirtz", name: "ktsRunner", version: "0.0.7"
compile 'us.ihmc:jinput:2.0.6-ihmc2'
compile group: 'us.ihmc', name: 'ihmc-native-library-loader', version: '1.3.1'

// compile 'net.java.jinput:jinput:2.0.10' // pegged to Java 17, no MacOS m1 support until java updated
// compile 'net.java.jinput:jinput:2.0.10:natives-all'

compile 'com.google.crypto.tink:tink:1.3.0-rc1'

Expand Down Expand Up @@ -220,7 +221,9 @@ dependencies {

//compile group: 'com.neuronrobotics', name:'GithubPasswordManager', version:'0.6.1'
//compile "com.neuronrobotics:JavaCad:0.14.0"
compile project('JCSG')
//compile project('JCSG')
compile group: 'com.neuronrobotics', name: 'JavaCad', version:'1.1.0'

//compile "com.neuronrobotics:CHDK-PTP-Java:0.5.3-SNAPSHOT"
//compile "com.neuronrobotics:java-bowler:3.25.4"
compile project('java-bowler')
Expand Down Expand Up @@ -371,7 +374,9 @@ dependencies {
// https://mvnrepository.com/artifact/com.github.docker-java/docker-java-transport-httpclient5
implementation group: 'com.github.docker-java', name: 'docker-java-transport-httpclient5', version: '3.3.0'

implementation group: 'com.neuronrobotics', name: 'mujoco-java', version:'2.2.0-pre.5'
//MuJoCo
implementation group: 'org.bytedeco', name: 'javacpp', version: '1.5.7'
implementation group: 'com.neuronrobotics', name: 'mujoco-java', version:'3.1.3-pre.11'

// https://mvnrepository.com/artifact/org.robokind/org.robokind.api.speech
implementation group: 'org.robokind', name: 'org.robokind.api.speech', version: '0.9.5'
Expand Down
Loading

0 comments on commit aff4d78

Please sign in to comment.