Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InMoov gets a heart #1397

Open
wants to merge 159 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 154 commits
Commits
Show all changes
159 commits
Select commit Hold shift + click to select a range
829ccd1
model for aiml xml
supertick Jan 20, 2024
67bd304
InMoov gets a heart
supertick Jan 20, 2024
754bed4
jython worky with InMoov2.py
supertick Jan 20, 2024
ed459da
reset
supertick Jan 21, 2024
e0d1687
ordered and formatted
supertick Jan 21, 2024
6608cbc
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jan 21, 2024
6838084
recovering from bad merge
supertick Jan 21, 2024
b5794f5
reset randomtest
supertick Jan 21, 2024
6e78370
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jan 21, 2024
37a3795
finite state history
supertick Jan 21, 2024
a7c1b66
fixed fire fsm event
supertick Jan 21, 2024
b90bd80
requested updates
supertick Jan 21, 2024
d52153e
Merge branch 'programab-model' of github.com-myrobotlab:MyRobotLab/my…
supertick Jan 21, 2024
49633be
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab in…
supertick Jan 23, 2024
8d4fdb9
init scripts turned off
supertick Jan 24, 2024
0cb5905
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab in…
supertick Jan 24, 2024
8580e47
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab in…
supertick Jan 24, 2024
9aacb0b
publishStateChange vs onStateChange
supertick Jan 26, 2024
4c9e5e0
execScript()
supertick Jan 26, 2024
9a24b72
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab in…
supertick Jan 27, 2024
5bbdfe0
config utils
supertick Jan 28, 2024
565f9dd
set chatBot reference on startService added setup to fsm
supertick Jan 30, 2024
535d8d4
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab in…
supertick Jan 30, 2024
e3d774a
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab in…
supertick Jan 30, 2024
533eacb
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab in…
supertick Jan 31, 2024
d2510bc
working processor action in servomixer
supertick Feb 1, 2024
b7ecaa8
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab in…
supertick Feb 1, 2024
536279f
Merge branch 'servomixer-processing' of https://github.com/MyRobotLab…
supertick Feb 1, 2024
3398f8a
fix runtime.resource for tests
supertick Feb 2, 2024
557cd80
again
supertick Feb 2, 2024
0a3c81c
again
supertick Feb 2, 2024
ce82eb5
corrected wrong path
supertick Feb 2, 2024
a7f5fb1
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab in…
supertick Feb 3, 2024
0483fb8
Subscription fixes in config - removal of hardcoded subscriptions
supertick Feb 4, 2024
135f12a
small runtime updates
supertick Feb 4, 2024
1332336
added test
supertick Feb 4, 2024
85dd347
Merge branch 'subscription-fix' of github.com-myrobotlab:MyRobotLab/m…
supertick Feb 4, 2024
2ea567e
trying to make idempotent test
supertick Feb 4, 2024
6996853
Merge branch 'subscription-fix' of github.com-myrobotlab:MyRobotLab/m…
supertick Feb 4, 2024
6a05071
npe check
supertick Feb 4, 2024
dcdab9b
finally ! fixed randomTest issue
supertick Feb 4, 2024
be739aa
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Feb 5, 2024
2e8fdb5
javadoc updates to runtime config
supertick Feb 5, 2024
0c4ba80
guard against no runtime.xml
supertick Feb 5, 2024
beafe72
removed dependency test
supertick Feb 5, 2024
dbe67cf
fixing unit tests
supertick Feb 5, 2024
188b6fd
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Feb 6, 2024
62aa007
config update
supertick Feb 6, 2024
139d01f
http client config
supertick Feb 6, 2024
7432266
synchronized
supertick Feb 9, 2024
202f364
Update CmdOptionsTest.java
supertick Feb 9, 2024
3dadcac
warn
supertick Feb 10, 2024
bff28fa
abstract test watcher
supertick Feb 10, 2024
e8603f9
transient processLock
supertick Feb 10, 2024
8adeb2f
clean threads
supertick Feb 10, 2024
d6c0831
cleaned up InMoov2 parts
supertick Feb 11, 2024
cc02708
clean random shutdown
supertick Feb 11, 2024
ab0141b
drupp neck config
supertick Feb 11, 2024
0bd316b
fixed so Runtime.release(name) and Service.releaseService(name) behav…
supertick Feb 11, 2024
cf9405c
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Feb 11, 2024
3fb04c8
drupp merge
supertick Feb 11, 2024
b70114e
intermediate
supertick Feb 12, 2024
728c890
Merge branch 'heart-intermediate' of github.com-myrobotlab:MyRobotLab…
supertick Feb 12, 2024
9b4439a
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Feb 12, 2024
abd63e2
javadoc and other small changes
supertick Feb 12, 2024
69013e5
framework updates
supertick Feb 12, 2024
46af60c
framework
supertick Feb 12, 2024
e895567
let framework process inmoov2 releaseService
supertick Feb 12, 2024
237a515
unit test updates
supertick Feb 13, 2024
95b3ddb
stop cli when runtime is released
supertick Feb 13, 2024
43fff16
corrected synchronization
supertick Feb 13, 2024
65542d0
corrected instance lock
supertick Feb 13, 2024
5182af0
adjusted location of sleep wait
supertick Feb 13, 2024
54f874b
shifted sleep position in randomtest
supertick Feb 13, 2024
8065ad4
config utils fix
supertick Feb 13, 2024
9428157
clean default config
supertick Feb 14, 2024
63c00ec
removed registering for new services from servo
supertick Feb 14, 2024
aa65ad3
webgui
supertick Feb 14, 2024
33a1be5
adding log service to scripts
supertick Feb 14, 2024
9a44b4f
Merge branch 'adding-log-service' of github.com-myrobotlab:MyRobotLab…
supertick Feb 14, 2024
77eac6e
simplifying randomtest
supertick Feb 14, 2024
1d9cb90
fixes and updates
supertick Feb 15, 2024
d17b530
Merge branch 'reduce-servo-complexity' of github.com-myrobotlab:MyRob…
supertick Feb 15, 2024
fae6053
nothing
supertick Feb 16, 2024
8673dda
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Feb 16, 2024
402a527
servo.setMaxSpeed
supertick Feb 16, 2024
8601157
ignoring servo.setSpeed(speed <0)
supertick Feb 16, 2024
23988f8
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Feb 16, 2024
11fefca
synching cpython javacpp and javacv versions to 15.8
supertick Feb 16, 2024
db9ccdd
removal of programab botdir
supertick Feb 17, 2024
b7c7a16
more non inmoov2 updates
supertick Feb 17, 2024
c6c2f14
re-adding deprecated ProgramAB.botDir
supertick Feb 17, 2024
4a69574
npe fix for runtime.apply(c)
supertick Feb 17, 2024
6e02e9f
npe fix for runtime.apply(c)
supertick Feb 17, 2024
76c8b00
updated javacpp to 1.5.8 and updated template
supertick Feb 17, 2024
5caf15d
synching javacpp 1.5.8 updating template
supertick Feb 17, 2024
46f2f27
syching javacpp 1.5.8 tesseract and deeplearning4j
supertick Feb 17, 2024
1851976
synching javacpp 1.5.8 with deeplearning4j and tesseract
supertick Feb 17, 2024
d7fad5a
changed imports on tesseract
supertick Feb 17, 2024
2e6c89c
changed imports on tesseract
supertick Feb 17, 2024
7290314
fixed test - was counting threads after new runtime started
supertick Feb 17, 2024
9e1710a
more unit test cleanup
supertick Feb 17, 2024
1fa4e62
requested fixes
supertick Feb 17, 2024
2dbde91
requested fixes
supertick Feb 17, 2024
a032e8e
channels for discordbot and programab
supertick Feb 18, 2024
cbd84fa
onerror added and log.publishErrors
supertick Feb 18, 2024
ac9884c
updates
supertick Feb 19, 2024
a63e083
removed adding system tray icon
supertick Feb 19, 2024
98a2428
removed onPeak info
supertick Feb 19, 2024
220a002
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Feb 19, 2024
2b5823d
audiofile config playlist init
supertick Feb 20, 2024
72da4c5
updates
supertick Feb 20, 2024
7b0bfd0
updates
supertick Feb 22, 2024
814de15
fixed type
supertick Feb 22, 2024
db1f7d1
webgui
supertick Feb 22, 2024
7470e03
getWebImage
supertick Feb 22, 2024
f155d0a
small config update
supertick Feb 22, 2024
1cdc493
remotespeech
supertick Feb 24, 2024
8924641
updates
supertick Feb 24, 2024
87aa762
Merge branch 'remotespeech' of github.com-myrobotlab:MyRobotLab/myrob…
supertick Feb 24, 2024
c65f68b
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Feb 24, 2024
2a3584a
randomtest update
supertick Feb 24, 2024
72add7b
missing service images
supertick Feb 24, 2024
2f7a4c9
Merge branch 'channel-only-responses' of github.com-myrobotlab:MyRobo…
supertick Feb 24, 2024
365f9d3
runtime update
supertick Feb 24, 2024
9f6e7ce
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Feb 24, 2024
1298dbd
Merge branch 'jmonkey-updates' of github.com-myrobotlab:MyRobotLab/my…
supertick Feb 24, 2024
000ed4d
reverting bad git merge
supertick Feb 24, 2024
81c13b0
sliding window logs for py4j and python
supertick Feb 24, 2024
75d3da5
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Feb 24, 2024
12375b0
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Feb 24, 2024
e50e7ab
Merge branch 'inmoov2-intermediate-3' of github.com-myrobotlab:MyRobo…
supertick Feb 24, 2024
f963e3f
test last workflow
supertick Feb 28, 2024
53591c0
pull_request to push
supertick Feb 28, 2024
8376de1
excluding OpenCV tests from github build
supertick Feb 29, 2024
7f5e173
trying to filter out tests on the command line again
supertick Feb 29, 2024
a80364c
try filtering at command line again
supertick Feb 29, 2024
3ebe9b1
libgtk2.0-0 added to build
supertick Feb 29, 2024
df72ce3
java 18
supertick Feb 29, 2024
1e1143d
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Feb 29, 2024
772ed38
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Feb 29, 2024
3b63f25
worky terminal manager
supertick Mar 2, 2024
ea1a1d4
added 2 more
supertick Mar 2, 2024
11457e6
updated openblas 1.5.8
supertick Mar 2, 2024
a36eba5
forgot img
supertick Mar 2, 2024
80f1034
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Mar 5, 2024
45d7f8b
workyish tm
supertick Mar 6, 2024
419b6f7
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Mar 7, 2024
107c742
bottom scroll
supertick Mar 9, 2024
075f5dd
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Mar 9, 2024
0e5a9c3
locked in InMoov2.speakBlocking
supertick Mar 9, 2024
92d98a9
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Mar 13, 2024
d391758
javadoc fixed
supertick Mar 13, 2024
9e3e6d2
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Mar 20, 2024
a94466b
publish on change current session and synchronized
supertick Mar 21, 2024
e48cee1
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Mar 21, 2024
ac4edd4
java 11
supertick Mar 22, 2024
11e9cfc
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Apr 1, 2024
bedaad1
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab in…
supertick Apr 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions .github/build.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
name: Java CI

on:
# push:
pull_request:
push:
# pull_request:

jobs:
build:
Expand All @@ -13,22 +13,22 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set up JDK 11
- name: Set up java
uses: actions/setup-java@v3

with:
java-version: "11"
java-version: "18"
supertick marked this conversation as resolved.
Show resolved Hide resolved
distribution: "adopt"
# NEATO ! CACHE !!!!
cache: "maven"

- name: Install Missing Dependencies
run: sudo apt-get install -y libv4l-0 libopencv-dev python3-opencv
run: sudo apt-get install -y libv4l-0 libopencv-dev python3-opencv libgtk2.0-0

- name: Dependency Test # installs all dependencies
run: mvn test -Dtest=org.myrobotlab.framework.DependencyTest -q
- name: Build with Maven # currently cannot test opencv
run: mvn clean verify -q
run: mvn clean verify -q -Dtest=!org.myrobotlab.opencv.*

- name: Get next version
uses: reecetech/[email protected]
Expand Down Expand Up @@ -84,4 +84,3 @@ jobs:
tag_name: ${{ steps.version.outputs.version }}
generate_release_notes: true
body_path: ./release-template.md

2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"jest.coverageFormatter": "GutterFormatter",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
"source.organizeImports": "explicit"
},
"typescript.tsdk": "./app/node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
Expand Down
13 changes: 13 additions & 0 deletions src/main/java/org/myrobotlab/process/NodeTerminal.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package org.myrobotlab.process;

import java.io.IOException;

import org.myrobotlab.service.TerminalManager;

public class NodeTerminal extends Terminal {

public NodeTerminal(TerminalManager service, String name) throws IOException {
super(service, name);
}

}
106 changes: 106 additions & 0 deletions src/main/java/org/myrobotlab/process/PythonTerminal.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
package org.myrobotlab.process;

import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;

import org.myrobotlab.framework.Service;
import org.myrobotlab.logging.LoggerFactory;
import org.myrobotlab.service.TerminalManager;
import org.myrobotlab.service.Runtime;
import org.slf4j.Logger;

public class PythonTerminal extends Terminal {

/**
* name of the venv
*/
protected String venvName = "venv";

public final static Logger log = LoggerFactory.getLogger(PythonTerminal.class);

public PythonTerminal(TerminalManager service, String name) throws IOException {
super(service, name);
}

@Override
public String getVersion() {
try {
return processBlockingCommand(getScriptCmd("python --version"));
} catch (Exception e) {
service.error(e);
}
return null;
}

public void installPipPackages(List<String> packages) {
String packagesString = String.join(" ", packages);
String command = "pip install " + packagesString;
processCommand(command + "\n");
}

public void installPipPackage(String string) {
// TODO Auto-generated method stub

}

public void activateVirtualEnv() {
if (isWindows()) {
processCommand(venvName + "\\Scripts\\activate");
} else {
// source is "bash"
// processCommand("source " + venvName + "/bin/activate");
// the posix way
processCommand(". " + venvName + "/bin/activate");
}
Service.sleep(300);
supertick marked this conversation as resolved.
Show resolved Hide resolved
}

public void installVirtualEnv() {
installVirtualEnv(venvName);
}

public void installVirtualEnv(String venvName) {
this.venvName = venvName;
// processCommand(getScriptCmd("python -m venv " + venvName));
processCommand("python -m venv " + venvName);
Service.sleep(300);
supertick marked this conversation as resolved.
Show resolved Hide resolved
}

public static void main(String[] args) {
try {
TerminalManager processor = (TerminalManager) Runtime.start("processor", "ManagedProcess");
PythonTerminal shell = new PythonTerminal(processor, "python");
// shell.setWorkspace(".." + File.separator + "webcam");
shell.start(".." + File.separator + "webcam");
shell.installVirtualEnv();
shell.activateVirtualEnv();
// shell.installPipPackage("");
shell.installPipPackages(Arrays.asList("aiortc aiohttp"));

shell.processCommand("python webcam.py");
System.out.println(shell.getPids().toString());

shell.terminate();

// Example usage
String directory = "../webcam";
String venvName = "venv";
String packageName = "package_name";
String pythonScript = "your_script.py";

// shell.setupAndRunPythonEnvironment(directory, venvName, packageName,
// pythonScript);

// Wait for the completion or handle accordingly
// shell.waitForCompletion();

// Terminate the shell if necessary
// shell.terminate();

} catch (IOException e) {
e.printStackTrace();
}
}
}
13 changes: 13 additions & 0 deletions src/main/java/org/myrobotlab/process/Ros2Terminal.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package org.myrobotlab.process;

import java.io.IOException;

import org.myrobotlab.service.TerminalManager;

public class Ros2Terminal extends Terminal {

public Ros2Terminal(TerminalManager service, String name) throws IOException {
super(service, name);
}

}
13 changes: 13 additions & 0 deletions src/main/java/org/myrobotlab/process/RosTerminal.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package org.myrobotlab.process;

import java.io.IOException;

import org.myrobotlab.service.TerminalManager;

public class RosTerminal extends Terminal {

public RosTerminal(TerminalManager service, String name) throws IOException {
super(service, name);
}

}
Loading
Loading