Skip to content

Commit aff4d78

Browse files
Merge pull request #46 from CommonWealthRobotics/kh/physics-update-mujoco
Adding mujoco test
2 parents 95d8ebc + 99eb99a commit aff4d78

35 files changed

+4642
-443
lines changed

.github/workflows/verify.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,15 @@ jobs:
1717
- name: start xvfb
1818
run:
1919
Xvfb :0 &
20-
21-
- name: initialize the X11 DISPLAY variable
22-
run:
23-
export DISPLAY=:0
24-
2520
- name: After checkout, list directory contnts
2621
run: pwd; ls -la
2722
- name: Install libraries
2823
run: |
2924
sudo apt update
3025
sudo apt install libgtk2.0-0
26+
- name: initialize the X11 DISPLAY variable
27+
run:
28+
export DISPLAY=:0
3129

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

4846
- name: Test with Gradle
49-
run: xvfb-run -s '-screen 0 1024x768x24' ./gradlew test
50-
47+
run: xvfb-run -s '-screen 0 1024x768x24' ./gradlew test
48+
- name: If Fail
49+
if: ${{ failure() }}
50+
run: cat /home/runner/work/bowler-script-kernel/bowler-script-kernel/build/reports/tests/test/index.html
51+
52+
- name: Test Bezier
53+
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
54+
- name: start xvfb
55+
run:
56+
Xvfb :0 &
5157
- name: Test Local
5258
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
5359

5460
- name: Clean Cad
5561
run: rm -rf $HOME/bowler-workspace/gitcache/github.com/Hephaestus-Arm/HephaestusArm2
5662
- name: build Cad
5763
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
58-
- name: Test Bezier
59-
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
64+
6065

6166

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ hs_err_pid*
2626
.idea
2727
out
2828
manufacturing
29+
html
30+
physicsTest
31+
/MUJOCO_LOG.TXT

JCSG

Submodule JCSG updated 38 files

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2+
# Documentation
3+
4+
[Javadoc Generated Documentation](https://commonwealthrobotics.com/bowler-script-kernel/namespaces.html)
5+
6+
17
# Bowler Kernel Scripting environment
28

39
[![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)

UpdateJavaDocs.sh

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/bin/bash
2+
3+
GITURL=$(git config --get remote.origin.url)
4+
5+
echo $GITURL
6+
7+
if test -d /path/to/directory; then
8+
echo "html Directory exists."
9+
cd html
10+
git pull
11+
else
12+
git clone $GITURL html
13+
cd html
14+
fi
15+
16+
if ( git checkout origin/gh-pages -b gh-pages) then
17+
echo "Checked out $GITURL gh-pages"
18+
else
19+
echo "Creating out $GITURL gh-pages"
20+
git checkout origin/development -b gh-pages
21+
rm -r *
22+
echo "# A simple README file for the gh-pages branch" > README.md
23+
git add README.md
24+
git commit -m"Replaced gh-pages html with simple readme"
25+
git push -u origin gh-pages
26+
fi
27+
cd ..
28+
29+
doxygen doxy.doxyfile
30+
31+
cd html
32+
git add *
33+
git add search/*
34+
git commit -a -m"updating the doxygen"
35+
git push
36+
cd ..

build.gradle

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ dependencies {
160160
//compile group: "de.swirtz", name: "ktsRunner", version: "0.0.7"
161161
compile 'us.ihmc:jinput:2.0.6-ihmc2'
162162
compile group: 'us.ihmc', name: 'ihmc-native-library-loader', version: '1.3.1'
163-
163+
// compile 'net.java.jinput:jinput:2.0.10' // pegged to Java 17, no MacOS m1 support until java updated
164+
// compile 'net.java.jinput:jinput:2.0.10:natives-all'
164165

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

@@ -220,7 +221,9 @@ dependencies {
220221

221222
//compile group: 'com.neuronrobotics', name:'GithubPasswordManager', version:'0.6.1'
222223
//compile "com.neuronrobotics:JavaCad:0.14.0"
223-
compile project('JCSG')
224+
//compile project('JCSG')
225+
compile group: 'com.neuronrobotics', name: 'JavaCad', version:'1.1.0'
226+
224227
//compile "com.neuronrobotics:CHDK-PTP-Java:0.5.3-SNAPSHOT"
225228
//compile "com.neuronrobotics:java-bowler:3.25.4"
226229
compile project('java-bowler')
@@ -371,7 +374,9 @@ dependencies {
371374
// https://mvnrepository.com/artifact/com.github.docker-java/docker-java-transport-httpclient5
372375
implementation group: 'com.github.docker-java', name: 'docker-java-transport-httpclient5', version: '3.3.0'
373376

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

376381
// https://mvnrepository.com/artifact/org.robokind/org.robokind.api.speech
377382
implementation group: 'org.robokind', name: 'org.robokind.api.speech', version: '0.9.5'

0 commit comments

Comments
 (0)