Skip to content

Charamel ws plugin #191

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

Open
wants to merge 288 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
288 commits
Select commit Hold shift + click to select a range
e55649e
new wave command
patrickgebhard Aug 13, 2020
43cab7f
fixed date information
patrickgebhard Aug 13, 2020
ae05af0
added failsafe for blocking commands, if no client is connected (need…
patrickgebhard Aug 13, 2020
1deaaef
Downgrade gradle because intellij is not yet compatible with 6.6
algor1th Aug 14, 2020
b447db2
Replacing static strings
algor1th Aug 15, 2020
455ecc2
Allow "hot" start and stop of external VM. Activity Worker get cleare…
patrickgebhard Aug 17, 2020
173e3d3
Deleted used and "wrong" code. More distinct logging texts.
patrickgebhard Aug 17, 2020
3f2a5b1
Remove unused code
algor1th Aug 17, 2020
cf50f7a
Changed command message handling in order to produce a DEADLOCK situa…
patrickgebhard Aug 27, 2020
7fe0018
Merge branch 'master' into charamel-ws
algor1th Sep 15, 2020
1497af9
Introduced a scenflowVar for controlling a sceneflow
patrickgebhard Sep 30, 2020
cbd4fc6
Merge branch 'master' into charamel-ws
algor1th Sep 30, 2020
48f5a06
Add ssl support with self signed cert
algor1th Oct 1, 2020
fb86ef3
Added ws(s) port key, value specification to wss server implementation
patrickgebhard Oct 1, 2020
1e5b9b1
Added certificate key in plugin configuration
patrickgebhard Oct 1, 2020
3f8a2ec
First version of the HTML GUI Websocket plugin
patrickgebhard Oct 5, 2020
5356552
First version of the HTML GUI Websocket plugin
patrickgebhard Oct 5, 2020
3dd3d83
Code refactoring and new features, such as transportation of send gui…
patrickgebhard Oct 5, 2020
28fb80f
moved Emma User Model to the new plugin format - initial version
patrickgebhard Oct 6, 2020
3cc0dd8
moved Emma User Model to the new plugin format - initial version
patrickgebhard Oct 6, 2020
a0028a1
Parameter addon - html_port and handling for web page requests
patrickgebhard Oct 6, 2020
bb77699
code clean up
patrickgebhard Oct 6, 2020
5119d77
Added first version of SSJ plugin
michaeldietz Oct 6, 2020
e76cb20
Added source/target compatibility to ssj build.gradle
michaeldietz Oct 6, 2020
dce0f10
Android fixes for ssj plugin
michaeldietz Oct 6, 2020
2b4cf07
Merge remote-tracking branch 'origin/charamel-ws' into charamel-ws
patrickgebhard Oct 7, 2020
f7fb586
extended functionality.
patrickgebhard Oct 7, 2020
d1b17b2
extended functionality.
patrickgebhard Oct 7, 2020
628709c
Fixed concurrency deadlock situation. Very very bad.
patrickgebhard Oct 7, 2020
2cd2236
added postprocessing flag for odp cmd message send, key=ppro, value=t…
patrickgebhard Oct 28, 2020
90a8519
Added handling nof new odpstate message
patrickgebhard Oct 28, 2020
2130938
Added new functions for diary and general usage.
patrickgebhard Oct 29, 2020
605edac
Add new commands from the spreadsheet
algor1th Oct 30, 2020
9c80ef4
Added workaround for Android where certificate can not be used
michaeldietz Nov 3, 2020
7169d1b
Add new commands from the spreadsheet
algor1th Nov 3, 2020
809a5b2
Refactor: broadcast now only allows interface to prevent incomplete c…
algor1th Nov 3, 2020
c2f23d9
Added 'lookat' to activity parser
algor1th Nov 6, 2020
9abb25f
Remove Strings class (no longer used)
algor1th Nov 6, 2020
9261c84
Added Arbeitszeit GUI call for Stopwatch button
MatthiasHock Nov 6, 2020
b89d17a
Merge branch 'charamel-ws' of https://github.com/SceneMaker/VisualSce…
MatthiasHock Nov 6, 2020
c709630
Add parsing for action classes
algor1th Nov 6, 2020
d00f7ee
Merge remote-tracking branch 'origin/charamel-ws' into charamel-ws
algor1th Nov 6, 2020
3cc0876
Bump version number
algor1th Nov 9, 2020
32dac2c
Added home button for graph GUI and stimmungsbarometer graph
chiragbhuvaneshwara Nov 9, 2020
baeb9b8
Merge remote-tracking branch 'origin/charamel-ws' into charamel-ws
chiragbhuvaneshwara Nov 9, 2020
700914d
Ignoring all build directories in core and plugins directories
chiragbhuvaneshwara Nov 9, 2020
2675883
Merge branch 'master' into charamel-ws
algor1th Nov 9, 2020
1b4cbab
Deactivate ssl use if no certificate in config file
patrickgebhard Nov 10, 2020
b8db42e
Moved odp to new plugin format for easier building of plugin jar file
michaeldietz Nov 11, 2020
05c9a11
Added code for handling value changes for the graphs in the UI
chiragbhuvaneshwara Nov 13, 2020
5efb6b5
Merge remote-tracking branch 'origin/charamel-ws' into charamel-ws
chiragbhuvaneshwara Nov 13, 2020
344c04f
BUgFix background command. Changed simple quotes to double quotes in …
patrickgebhard Nov 18, 2020
17de708
Added code that informs a running sceneflow about the perfomed uttera…
patrickgebhard Nov 18, 2020
a9d15a0
Added basic commands to display new ui pages
chiragbhuvaneshwara Nov 18, 2020
fcfdb8b
Merge remote-tracking branch 'origin/charamel-ws' into charamel-ws
chiragbhuvaneshwara Nov 18, 2020
0dd9c40
Uncommented debug code for gui testing
patrickgebhard Nov 19, 2020
1104421
Changed plugin compatibility to java 1.8
michaeldietz Nov 20, 2020
74c99b7
Added getter methods vor storing values in sceneflow vars
patrickgebhard Nov 23, 2020
ca376e9
some code beautification
patrickgebhard Nov 24, 2020
54bf2e3
addon deleted code that should not have been deleted
patrickgebhard Nov 24, 2020
d92bbe0
Changed so look command will use 0 if invalid value is provided (look…
michaeldietz Nov 24, 2020
668bc4c
Added code for setting graph entries and setting chat bubble content
chiragbhuvaneshwara Nov 25, 2020
121985e
Fixed json formatting issue of lookat command
michaeldietz Nov 30, 2020
5c239f9
Merge branch 'master' into charamel-ws
algor1th Nov 30, 2020
f4f5369
added knowledge representation for more info in sceneplayer
patrickgebhard Dec 2, 2020
2eab396
added knowledge representation for more info in sceneplayer
patrickgebhard Dec 2, 2020
b6d0fc4
used added scene and utteracne knowledge representation for a more fi…
patrickgebhard Dec 2, 2020
4916d0a
added Emotion as facial expression
patrickgebhard Dec 4, 2020
e3b59cf
added Emotion as facial expression
patrickgebhard Dec 4, 2020
13453e2
Changed bracket style in charamel commands
patrickgebhard Dec 7, 2020
dba83e5
added security check if value for specific commands is null
patrickgebhard Dec 7, 2020
1184a91
added some more parameters for happy and smile commands
patrickgebhard Dec 7, 2020
e0a23fc
added some more parameters for happy and smile commands
patrickgebhard Dec 7, 2020
c0bea0d
extended the regular expression pattern to match strings with a minus…
patrickgebhard Dec 7, 2020
745ed5d
removed debug messages
patrickgebhard Dec 9, 2020
e830187
first version of diary content retrievel: days with diary activity an…
patrickgebhard Dec 9, 2020
fd2efa1
Improvements to diary content retrievel
patrickgebhard Dec 9, 2020
dfd221d
bug fix for not recognizing procuder in diary entry
patrickgebhard Dec 9, 2020
ae0ccac
added setMenuItem cmd
chiragbhuvaneshwara Dec 9, 2020
cfe30a2
Merge remote-tracking branch 'origin/charamel-ws' into charamel-ws
chiragbhuvaneshwara Dec 9, 2020
35ff80e
moved TimerExecutor to new plugin concept. addons in settings and bui…
patrickgebhard Dec 11, 2020
6e7fc35
added two move aminations
patrickgebhard Dec 11, 2020
ab135ea
changes setting of user_speaking flag creation - using now startSpeec…
patrickgebhard Dec 11, 2020
7fb82f5
addons - reading more liwc information
patrickgebhard Dec 12, 2020
f341383
addons - part of day added
patrickgebhard Dec 12, 2020
8aa931e
addons - changed animations
patrickgebhard Dec 12, 2020
78ddd66
code cleanup
patrickgebhard Dec 12, 2020
12688e7
[FEATURE] Better sync with ODP using self generated tts ids
Dec 12, 2020
87c67b4
bug fixes - changed animation path
patrickgebhard Dec 13, 2020
b5efdc0
changed ws js command interface
patrickgebhard Dec 13, 2020
bfae5f5
introduced message debug output
patrickgebhard Dec 13, 2020
6689e4c
bug fix: correct odp feature postprocessing
patrickgebhard Dec 14, 2020
9365bd0
addons
patrickgebhard Dec 14, 2020
bd5f3d2
addons
patrickgebhard Dec 15, 2020
4fad469
addons
patrickgebhard Dec 15, 2020
9dbb24f
Merge branch 'charamel-ws' into charamel-ws-better-sync-with-odp
Dec 17, 2020
7f708ef
Fuck. I forgot to commit this file. This was important for the Timer …
patrickgebhard Jan 19, 2021
da514e6
Fuck. I forgot to commit this file. This was important for the Timer …
patrickgebhard Jan 19, 2021
47191dd
addons
patrickgebhard Jan 19, 2021
ba2f196
Merge branch 'charamel-ws' into charamel-ws-better-sync-with-odp
Jan 20, 2021
03b1207
Merge branch 'master' into charamel-ws
algor1th Jan 25, 2021
557c4bf
Merge remote-tracking branch 'origin/charamel-ws' into charamel-ws
algor1th Jan 25, 2021
f8d9d3f
added missing attributes to changed SpeechActivity constructor tests
patrickgebhard Jan 25, 2021
1affaf5
Merge remote-tracking branch 'origin/charamel-ws' into charamel-ws
patrickgebhard Jan 25, 2021
9ee6fe9
Removed unused code
algor1th Feb 2, 2021
8a4c5df
Merge branch 'master' into charamel-ws
algor1th Feb 2, 2021
62781aa
Simplify default value constructor
algor1th Feb 23, 2021
a29242a
Refactor: split up large methods
algor1th Feb 23, 2021
d9b8886
replaced getFloat to getDouble since getFloat is not available on JSO…
patrickgebhard Mar 9, 2021
12e1abc
replaced getFloat to getDouble since getFloat is not available on JSO…
patrickgebhard Mar 9, 2021
669e4f0
fix: tried to write an int value into a float slot. It made the app c…
acepero13 Apr 13, 2021
2923d8a
Added static audio dir and cmds for setting audio items
chiragbhuvaneshwara May 11, 2021
31bfdc9
Changed date format for logging. Added funcionality.
patrickgebhard May 12, 2021
0beeba6
Merge remote-tracking branch 'origin/charamel-ws' into charamel-ws
patrickgebhard May 12, 2021
a00f031
added processing of transcription source and transcription id
patrickgebhard May 18, 2021
d474d29
Added simple animation loggin in vsm model
patrickgebhard May 27, 2021
b93f586
Added extended LIWC, emotion, animation, speaking time and other valu…
patrickgebhard May 27, 2021
064648d
Changed gui (emotion) functionality to suit requirements for emma study
patrickgebhard May 27, 2021
aaea692
added functionality of day, day verbose queries for vsm models
patrickgebhard May 27, 2021
a6778ea
added LIWC knowledge propagation to VSM model
patrickgebhard May 27, 2021
92a1ba2
corrections for part of day computation
patrickgebhard May 28, 2021
89fe1cb
increased buffer size and sentence message processing.
patrickgebhard May 28, 2021
ca9ab82
fixed sentence iteration feature
patrickgebhard May 28, 2021
6fb9875
fixed sentence iteration feature
patrickgebhard May 28, 2021
2b9912c
fixed other iteration feature
patrickgebhard May 28, 2021
9454576
code clean up
patrickgebhard May 28, 2021
a44e501
Merge branch 'master' into charamel-ws
algor1th Jun 1, 2021
cff470e
code clean up and addons
patrickgebhard Jun 8, 2021
e2db710
added feedback behavior
patrickgebhard Jun 8, 2021
059fd2c
bug fix
Jun 25, 2021
6558fff
extensions - counting emotion entries in diary
Jun 25, 2021
90d0980
Fixing null pointer exception when executed sceneflow was paused and …
Jul 13, 2021
38c0a61
Merge branch 'master' into charamel-ws
Jul 13, 2021
95fca36
master merge changes/modifications.
Jul 13, 2021
1b08ef4
Remove ssl redirect, because it interferes with our reverse proxy
algor1th Jul 14, 2021
25da847
Update webstudymaster to use wss when connected via ssl
algor1th Jul 14, 2021
ba8cd6a
Update README.md
Jul 26, 2021
203734f
new functionality: reorder gui or vc iframe on z-layer.
Jul 26, 2021
097617e
Merge branch 'master' into charamel-ws
Jul 26, 2021
373094c
Merge branch 'master' into charamel-ws
algor1th Jul 26, 2021
4f80368
Merge remote-tracking branch 'origin/charamel-ws' into charamel-ws
Jul 26, 2021
119d235
react gui files
Jul 26, 2021
6e62a48
react gui files
Jul 30, 2021
9fc385d
Merge branch 'master' into charamel-ws
Aug 4, 2021
7f5dca9
Implementation of a client side ws connection management with the hel…
Aug 5, 2021
38091a9
Merge branch 'master' into charamel-ws
Oct 12, 2021
e26e593
adapt new gradle format
Oct 12, 2021
979045b
adapt new gradle version
Oct 12, 2021
4408780
adapt new gradle version
Oct 12, 2021
de5cc84
new features: shoe/hode html element by id, added null check for load…
Oct 21, 2021
ef0a87f
Merge branch 'master' into charamel-ws
algor1th Oct 26, 2021
3be7b2e
added menu parameters for highlighting a menu item
Nov 5, 2021
9b3c64b
added stop interface to ODP
Nov 5, 2021
c0d773c
BUGFIX, odp stop message was not sended.
Nov 11, 2021
5331939
Code cleanup and attempt for an autopmatic reconnection if ws connect…
Nov 19, 2021
92622e2
added synchronized to methods to avoid concurrent modifications
Nov 19, 2021
9600362
programmatically tilt a characters head during runtime.
Nov 29, 2021
dbf8eec
programmatically tilt a characters head during runtime.
Nov 29, 2021
1e6cd15
programmatically tilt a characters head during runtime.
Nov 29, 2021
845928a
Merge remote-tracking branch 'origin/charamel-ws' into charamel-ws
Nov 29, 2021
1b0fb47
bug fix - missing , in heda tilt command included
Dec 5, 2021
8fffe87
extend possible allowed characters in values for activity key value p…
Dec 5, 2021
af8f3c0
code cleanup wrt "setcss" command
Dec 5, 2021
91e6959
Merge branch 'master' into charamel-ws
Jan 18, 2022
9dd22c2
typo corrections
Jan 22, 2022
c5994a5
added context information
Mar 14, 2022
674edd7
added context information
Mar 14, 2022
6929136
chnaged regex for key value pairs. It seems that the old version did …
Mar 14, 2022
29e2d0c
added sequenccommand
stomack May 18, 2022
60c2a9e
new currentDiaryDay cmd
May 25, 2022
631fc1b
Merge remote-tracking branch 'origin/charamel-ws' into charamel-ws
May 25, 2022
436c9a2
minor conventionel adjustment
stomack Jun 7, 2022
35c9b24
Merge remote-tracking branch 'origin/charamel-ws' into charamel-ws
stomack Jun 8, 2022
62b83d6
removed all capital chars in animation paths
stomack Jun 12, 2022
6a57440
updated charamel-ws with studymaster-wed
chiragbhuvaneshwara Jun 23, 2022
836ddcd
updating websocket code
chiragbhuvaneshwara Jun 27, 2022
46b5b1e
Merge branch 'studymaster-web' into charamel-ws
chiragbhuvaneshwara Jun 27, 2022
e95920e
minor changes
Jun 29, 2022
d4e9a1c
Merge remote-tracking branch 'origin/charamel-ws' into charamel-ws
Jun 29, 2022
003560b
updated to wss and new studymaster build
chiragbhuvaneshwara Jun 30, 2022
21c917b
Merge branch 'studymaster-web' into charamel-ws
chiragbhuvaneshwara Jun 30, 2022
88001dc
Merge branch 'studymaster-web'
chiragbhuvaneshwara Jun 30, 2022
7bcd669
update studymaster web build
chiragbhuvaneshwara Jun 30, 2022
eb437ba
protocol selection automated
chiragbhuvaneshwara Jun 30, 2022
0320c3d
Merge branch 'studymaster-web' into charamel-ws
chiragbhuvaneshwara Jun 30, 2022
a85bec7
Merge remote-tracking branch 'origin/charamel-ws' into charamel-ws
chiragbhuvaneshwara Jul 1, 2022
b5f6fb7
Setup Module
stomack Jul 15, 2022
1f10b5e
first barebone
stomack Jul 19, 2022
200256e
second barebone
stomack Jul 19, 2022
779b7f5
second barebone+
stomack Jul 19, 2022
6f24ccd
triing to reformat speech actions
stomack Jul 20, 2022
b97c672
Merge branch 'master' into studymaster-web
chiragbhuvaneshwara Jul 25, 2022
1dda8c4
added exaample project charamel-ws
stomack Jul 26, 2022
7870a15
now sending JSON objects
stomack Aug 2, 2022
a973a77
tried genercis handler
chiragbhuvaneshwara Aug 9, 2022
be6992c
added basic handling functionality
stomack Aug 10, 2022
a1dfdc4
setting up handling loop
chiragbhuvaneshwara Aug 19, 2022
52022f4
Merge remote-tracking branch 'origin/MithosVR' into MithosVR
chiragbhuvaneshwara Aug 19, 2022
2c568ff
setting up handling loop
chiragbhuvaneshwara Aug 19, 2022
885505c
now processing intAct and ssf
chiragbhuvaneshwara Aug 26, 2022
f0b75a9
kind_ia -> kind_da
stomack Sep 7, 2022
4dee3cd
kind_ia->kind_da
chiragbhuvaneshwara Sep 8, 2022
731f3c2
Merge remote-tracking branch 'origin/MithosVR' into MithosVR
chiragbhuvaneshwara Sep 8, 2022
f76fabb
removed some printouts
stomack Oct 20, 2022
ebd2f5c
fixed consumer and made activity context not final
chiragbhuvaneshwara Oct 24, 2022
c44d77e
Merge remote-tracking branch 'origin/MithosVR' into MithosVR
stomack Oct 31, 2022
fc1f9f9
updated to new tricat interface
chiragbhuvaneshwara Nov 16, 2022
79d98a6
updated example-project
chiragbhuvaneshwara Nov 16, 2022
916e90d
reintroduced feedback handling, issues persist
chiragbhuvaneshwara Nov 18, 2022
765b1b2
Merge remote-tracking branch 'origin/MithosVR' into MithosVR
stomack Nov 21, 2022
87a8536
added default values in ssi constructor and fixed a typo in SSIProjec…
stomack Nov 21, 2022
83de7c7
fixed feedback handling
chiragbhuvaneshwara Nov 21, 2022
735ab86
added pilot project
stomack Nov 24, 2022
9173535
added vsm logging
stomack Nov 28, 2022
4aa8ca2
added PilotProject(also thanks to Nils :D)
stomack Nov 28, 2022
dc8b716
mithos logging is no longer blocking
stomack Nov 28, 2022
9ff8c1c
added else case for animations and other
stomack Nov 29, 2022
18a3ca8
mithos pilot study intermediate fixes (WIP)
chiragbhuvaneshwara Nov 30, 2022
c0ac695
fixed concurrency issue,
chiragbhuvaneshwara Nov 30, 2022
cab2e2c
Latest Pilot Study Project files
chiragbhuvaneshwara Dec 8, 2022
526185d
new studymaster logic and logging
stomack Dec 8, 2022
4c1e635
bugfix: fixed radio button selection to highlight teh right selected …
chiragbhuvaneshwara Feb 8, 2023
d2147e7
React updated build for bugfix: fixed radio button selection to highl…
chiragbhuvaneshwara Feb 8, 2023
197f0d1
bugfix: made sure that the last message variables of studymaster are …
chiragbhuvaneshwara Feb 8, 2023
a5be454
Updated the studymaser-web documentation to reflect the revamped Reac…
chiragbhuvaneshwara Feb 8, 2023
2ec2c86
Merge branch 'studymaster-web' into MithosVR
chiragbhuvaneshwara Feb 8, 2023
27bf21f
some surely important changes
chiragbhuvaneshwara Feb 23, 2023
0e24868
added logmsg function
chiragbhuvaneshwara Feb 23, 2023
69151c4
integrated new intearaction act with appraisal tag
stomack Oct 10, 2023
355cb05
added logmsg function
chiragbhuvaneshwara Oct 20, 2023
27aef98
start dev of socket plugin
stomack Dec 13, 2023
a5f209c
first iteration socket plugin including client and server variant
Dec 14, 2023
3f9a23e
small rename
Dec 14, 2023
30a32fa
refactored
Dec 14, 2023
41de797
added build file
stomack Jan 9, 2024
8628dce
Merge remote-tracking branch 'origin/SocketTemplate' into SocketTemplate
stomack Jan 9, 2024
6904d52
renamed package and interface
stomack Jan 9, 2024
e15527d
gson objects for emmi final
Feb 1, 2024
4d39733
added build.gradle
Feb 1, 2024
3d4a703
Merge remote-tracking branch 'origin/SocketTemplate' into SocketTemplate
Feb 1, 2024
918d583
started drive sim implementation
Feb 4, 2024
e1576f5
some module settings
Feb 4, 2024
404671b
fninished EMMI Demo
Feb 5, 2024
f17f0e6
added buuild gradle
Feb 5, 2024
fffa204
intermediate socketio
Feb 6, 2024
3ea027c
added socketio to driveSim
stomack Feb 6, 2024
64422d2
socketio
Feb 7, 2024
b6e4884
adjusting to ego
Feb 7, 2024
2d73b5b
new raw-data socket for drive seim, might need refactroing
Feb 13, 2024
216420f
fix issue with gradle
pujak17 Jan 5, 2025
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@ tmp/
/log/stickman.log
.idea/*
.gradle
# Ignoring all build directories
build/
!plugins/studymaster-web/src/main/resources/react-studymaster/build

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Visual Scene Maker Master Version

(c) 2003-18. All rights reserved
(c) 2003-21. All rights reserved

### Download the current version at: https://github.com/SceneMaker/VisualSceneMaker/releases

12 changes: 9 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'java'
id 'org.openjfx.javafxplugin' version '0.0.10'
id 'net.nemerosa.versioning' version '2.8.2'
id 'net.nemerosa.versioning' version '3.0.0'
id 'com.github.johnrengelman.shadow' version '5.0.0'
}
javadoc { options.encoding = 'UTF-8' }
@@ -30,15 +30,21 @@ dependencies {
implementation fileTree(dir: 'lib', include: "*.jar")
implementation project(":plugins:AndroidGui")
implementation project(":plugins:studymaster-web")
implementation project(":plugins:emma-user-model")
implementation project(":plugins:decad")
implementation project(":plugins:htmlgui-ws")
implementation project(":plugins:odp")
implementation project(":plugins:yallah")
implementation project(":plugins:ssi")
implementation project(":plugins:ssj")
implementation project(":plugins:reeti")
implementation project(":plugins:timer")
implementation project(":plugins:tricatworld")
implementation project(":plugins:charamel")
implementation project(":plugins:VLCRemoteController")
implementation project(":plugins:charamel-ws")
implementation project(":plugins:extensionAPI")

implementation project(":plugins:sockets")
implementation project(":plugins:DriveSimulator")
implementation 'org.jetbrains:annotations:16.0.2'
// https://mvnrepository.com/artifact/org.slick2d/slick2d-core
implementation group: 'org.slick2d', name: 'slick2d-core', version: '1.0.2' // needed for documentation
4 changes: 3 additions & 1 deletion core/build.gradle
Original file line number Diff line number Diff line change
@@ -13,7 +13,9 @@ if(!project.hasProperty('flavor')){

println("Building jar for ANDROID")
}

compileJava{
//options.release = 8
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented out code

}
repositories {
mavenCentral()
maven { url "https://repo.spring.io/libs-release" }
2 changes: 1 addition & 1 deletion core/src/main/java/de/dfki/vsm/event/EventDispatcher.java
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ private EventDispatcher() {
mTimer = new Timer("EventCasterTimer");
//
mListenerList
= new CopyOnWriteArrayList();
= new CopyOnWriteArrayList<>();
}

// Get The Singelton Instance
106 changes: 95 additions & 11 deletions core/src/main/java/de/dfki/vsm/runtime/activity/SpeechActivity.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package de.dfki.vsm.runtime.activity;

import de.dfki.vsm.model.scenescript.SceneTurn;
import de.dfki.vsm.util.log.LOGConsoleLogger;

import java.util.LinkedList;
import java.util.Map;
import java.util.Properties;
@@ -15,23 +17,40 @@ public final class SpeechActivity extends AbstractActivity {
= LOGConsoleLogger.getInstance();

// The list of blocks
private LinkedList mBlocks;
private LinkedList<String> mBlocks;
// The punctuation mark
private final String mPunct;
// Turn information
private final SceneTurn mTurn;
private final int mTurnNum;
private final int mTotalTurns;
// Utterance information
private final int mUtteranceNum;
private final int mTotalUtterances;

// Construct the activity
public SpeechActivity(
final String actor,
final LinkedList list,
final String punct) {
final LinkedList<String> list,
final String punct,
final SceneTurn turn,
final int turn_num,
final int total_turns,
final int utterance_num,
final int total_utterances) {
super(Type.blocking, actor, /*"speech",*/ "speak");
// Initialize the content
mBlocks = list;
mPunct = punct;
mTurn = turn;
mTurnNum = turn_num;
mTotalTurns = total_turns;
mUtteranceNum = utterance_num;
mTotalUtterances = total_utterances;
}

// Get the text and time mark blocks (added by PG)
public final LinkedList getBlocks() {
public final LinkedList<String> getBlocks() {
return mBlocks;
}

@@ -40,7 +59,12 @@ public final String getPunct() {
return mPunct;
}

// Get the text only - without time mark blocks (added by PG)
/**
* Get the text only - without time mark blocks (added by PG)
*
* @param markerSign The beginning of the marker
* @return The text without speech markers
*/
public final String getTextOnly(final String markerSign) {
final StringBuilder builder = new StringBuilder();
for (final Object item : mBlocks) {
@@ -56,17 +80,21 @@ public final String getTextOnly(final String markerSign) {
return builder.toString();
}

// Do pronounciation mapping for a better text to speech output. (added by PG - 2.5.2016)
public final void doPronounciationMapping(Properties pronounciationMap) {
if (pronounciationMap == null) {
/**
* Do pronounciation mapping for a better text to speech output.
*
* @author PG - 2.5.2016
*/
public final void doPronounciationMapping(Properties pronunciationMap) {
if (pronunciationMap == null) {
return;
}

LinkedList replaced = new LinkedList();
for (final Object item : mBlocks) {
String text = item.toString();
//mLogger.success("text to be checked and maybe replaced " + text);
for (Map.Entry<Object, Object> entry : pronounciationMap.entrySet()) {
for (Map.Entry<Object, Object> entry : pronunciationMap.entrySet()) {
if (text != null && entry.getKey() != null && entry.getValue() != null) {
text = text.replaceAll("\\b" + entry.getKey() + "\\b", (String) entry.getValue());
}
@@ -77,7 +105,13 @@ public final void doPronounciationMapping(Properties pronounciationMap) {
mBlocks = replaced;
}

// Get the punctuation information (added by PG 20.4.2016)
/**
* Get the punctuation information
*
* @param markerSign The beginning of the marker
* @return
* @author PG 20.4.2016
*/
public final LinkedList<String> getTimeMarks(final String markerSign) {
final LinkedList<String> tms = new LinkedList<>();
for (final Object item : mBlocks) {
@@ -89,7 +123,57 @@ public final LinkedList<String> getTimeMarks(final String markerSign) {
return tms;
}

// Get textual representation
/**
* Get the actual turn number (as index)
*
* @return
*/
public final int getTurnNumber() {
return mTurnNum;
}

/**
* Get the total turn numbers
*
* @return
*/
public final int getTotalTurns() {
return mTotalTurns;
}

/**
* Get the actual utterance number (as index)
*
* @return
*/
public final int getUtteranceNumber() {
return mUtteranceNum;
}

/**
* Get the total utterances number
*
* @return
*/
public final int getTotalUtterances() {
return mTotalUtterances;
}

/**
* Get the whole SceneTurn object
*
* @return
*/
public final SceneTurn getSceneTurn() {
return mTurn;
}


/**
* Get textual representation
*
* @return
*/
@Override
public final String getText() {
final StringBuilder builder = new StringBuilder();
Original file line number Diff line number Diff line change
@@ -42,8 +42,12 @@ public final void handle(final String marker) {
//}
}

public final boolean hasMarker(final String marker) {
return mWorkerMap.containsKey(marker) ;

//Check if there is an marker / activity.
public boolean hasMarker(String marker) {
synchronized (mWorkerMap) {
return mWorkerMap.containsKey(marker);
}
}

// Schedule an activity on an executor with a timeout
42 changes: 31 additions & 11 deletions core/src/main/java/de/dfki/vsm/runtime/player/ReactivePlayer.java
Original file line number Diff line number Diff line change
@@ -77,7 +77,7 @@ public final void playAction(final String text, final List<AbstractValue> args)
// Make unique worker name
final String task = process.getName() + ":" + text + "@";
// Translate the arguments
final HashMap substitutions = getSubstitutions(args);
final HashMap<String, String> substitutions = getSubstitutions(args);
// Print some information
//mLogger.message("Playing Action '" + text + "' in process '" + process + "' on reactive player '" + this + "' with substitutions '" + substitutions.toString() + "'");
// Create playback task
@@ -96,8 +96,8 @@ public void run() {

if (syntax.startsWith("[") && syntax.endsWith("]")) {
// PG: changed action and action feature parser to be more powerful
// matching something like: agent Action x=2.5 y=0.0 z=-13.0 w=3.4254345E-5 text='Someone wants a beer!' other=bad some='things' state='Da=fuck.continued and others']
final Pattern pattern = Pattern.compile("^\\w+|\\w+\\s|\\w+]|[a-zA-Z-_]+=[a-zA-Z][a-zA-Z-_]+|\\w+=-?[0-9.]+E-?[0-9]+|\\w+=-?[0-9.]+|\\w+='[\\wäöüßÄÖÜ\\s:.,!?=@/]+'");
// matching something like: agent Action x=2.5 y=0.0 z=-13.0 w=3.4254345E-5 text='Someone wants a beer!' other=bad some='things' state='Da=fuck.continued and -others']
final Pattern pattern = Pattern.compile("^\\w+|\\w+\\s|\\w+]|[a-zA-Z-_]+=[a-zA-Z-_]+|\\w+=-?[0-9.]+E-?[0-9]+|\\w+=-?[0-9.]+|\\w+='[\\wäöüßÄÖÜ\\-\\s:.,!?=@/]+'");
final Matcher matcher = pattern.matcher(syntax);
while (matcher.find()) {
final String token = matcher.group().trim();
@@ -151,7 +151,7 @@ public final void playScene(final String name, final List<AbstractValue> args) t
// Make unique worker name
final String task = process.getName() + ":" + name + "@";
// Translate the arguments
final HashMap substitutions = getSubstitutions(args);
final HashMap<String, String> substitutions = getSubstitutions(args);
// Print some information
mLogger.message("Playing Scene '" + name + "' in process '" + process + "' on reactive player '" + this + "' with substitutions '" + substitutions.toString() + "'");

@@ -176,15 +176,30 @@ public final void playScene(final String name, final List<AbstractValue> args) t

@Override
public void run() {
// numerical turn information
int turn_cnt = 0;
int turn_number = scene.getTurnList().size();

for (SceneTurn turn : scene.getTurnList()) {
// increment turn_cnt;
turn_cnt++;

// Get executor for this turn
final ActivityExecutor turnActorExecutor = mProject.getAgentDevice(turn.getSpeaker());

// numerical utterance information
int utterance_cnt = 0;
int utterance_number = turn.getUttrList().size();

// Serially play the utterances
for (SceneUttr uttr : turn.getUttrList()) {
// increment utterance_cnt;
utterance_cnt++;

//mLogger.message("Utterance " + uttr.getText().trim());
final LinkedList<String> textBuilder = new LinkedList();
final LinkedList<ActivityWorker> observedWorkerList = new LinkedList();
final LinkedList<String> textBuilder = new LinkedList<>();
final LinkedList<ActivityWorker> observedWorkerList = new LinkedList<>();

for (final UttrElement element : uttr.getWordList()) {
//mLogger.message("element " + element);

@@ -194,9 +209,9 @@ public void run() {
final String actor = action.getActor();
// Get the executor for this action
final ActivityExecutor actionActorExecutor
= (actor != null ? mProject.getAgentDevice(actor) : turnActorExecutor);
= (actor != null && !actor.isEmpty() ? mProject.getAgentDevice(actor) : turnActorExecutor);
// Create a new marker for the action
// 19.4.2016 PG: CAREFULL! The marker has to be generated by the turn executor! not by the activity executor of the action!
// 19.4.2016 PG: CAREFULLY! The marker has to be generated by the turn executor! not by the activity executor of the action!
//Old: final String marker = actionActorExecutor.marker(newId());
final String marker = turnActorExecutor.marker(newId());
// Append the marker to the activity
@@ -237,7 +252,12 @@ public void run() {
new SpeechActivity(
turn.getSpeaker(),
textBuilder,
punctuation),
punctuation,
turn,
turn_cnt,
turn_number,
utterance_cnt,
utterance_number),
turnActorExecutor);
// Check for interruption
if (isDone()) {
@@ -275,8 +295,8 @@ public void run() {
}

// Translate the arguments
private HashMap getSubstitutions(final List<AbstractValue> args) {
final HashMap substitutions = new HashMap();
private HashMap<String, String> getSubstitutions(final List<AbstractValue> args) {
final HashMap<String, String> substitutions = new HashMap<>();
if (args != null && !args.isEmpty()) {
for (final Object object : args) {
if (object instanceof AbstractValue) {
Loading