Skip to content
This repository has been archived by the owner on Sep 17, 2019. It is now read-only.

Missxa bot merge #86

Open
wants to merge 164 commits into
base: devel
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 152 commits
Commits
Show all changes
164 commits
Select commit Hold shift + click to select a range
ef458ce
new states
ninalovegood Jul 18, 2018
2cc3d4e
saving changes
ninalovegood Jul 22, 2018
bc88fe9
intermediate push to merge
ninalovegood Aug 6, 2018
f5845e2
updated with current devel
ninalovegood Aug 6, 2018
9a02650
skip user input in all MonologStates
ninalovegood Aug 6, 2018
73ef7db
ros subscribers, timer implemented
ninalovegood Aug 7, 2018
2d4e3a6
Joseph's Highly Pedantic Changes
Aevyz Aug 13, 2018
5aeff8a
[Docs] TBL: - to —
Aevyz Aug 13, 2018
58f9e2d
Merge branch 'joseph-corenlp-upgrade' into hack-jason
Aevyz Aug 14, 2018
56dad13
[Logging Policy] Conforming more Stuff to Standards
Aevyz Aug 14, 2018
88d5420
[Sentence Type] DictionaryBasedSentenceTypeDetector Preparation
Aevyz Aug 14, 2018
b7ccac2
Fixed main() in FullNLPAnalyzer
josephbirkner Aug 14, 2018
0ee56c6
Merge remote-tracking branch 'origin/de-nlu-upgrades' into hack-jason
Aevyz Aug 14, 2018
6b0b25b
autonomous personality
ninalovegood Aug 14, 2018
e2c351b
Added comments to telegram io
Jul 13, 2018
21b78c7
Fixed a minor markup error
Mireu Jul 18, 2018
052146d
Fixed a bug where the system would crash when no INPUT was selected.
Mireu Jul 21, 2018
8e65231
Fixed minor spelling error
Mireu Jul 31, 2018
78d5edc
Emotion support added to CommandLineOutput.
SezerCan Aug 2, 2018
bf3f004
Flag added to manage emotion output for CommandLineOutput.
SezerCan Aug 9, 2018
1d84751
Parallelized SparqlExecutor
Mireu Aug 13, 2018
b387796
Parallelized DbEntitySearcher
Mireu Aug 13, 2018
94e77ea
Parallelized FbEntitySearcher
Mireu Aug 13, 2018
d83995a
Merge branch 'devel' into autonomous-interaction
ninalovegood Aug 14, 2018
28c897f
timer in idle state adjusted
ninalovegood Aug 14, 2018
61fd568
merged botboy-dev -> autonomous-interaction
ninalovegood Aug 14, 2018
cb079b6
awesome vector things are happening
ninalovegood Aug 14, 2018
1059d6a
merged fixes from botboy
ninalovegood Aug 14, 2018
a5117ed
Merge branch 'hack-jason-demo' into origin/de-nlu-upgrades
Aevyz Aug 14, 2018
9feff58
Ignore YML
Aevyz Aug 14, 2018
daca670
Merge branch 'hack-jason-demo' into de-nlu-upgrades
Aevyz Aug 14, 2018
c648527
Updated API Stuff
Aevyz Aug 14, 2018
ba49099
Moving
Aevyz Aug 14, 2018
9c68354
gitignore
Aevyz Aug 14, 2018
5c91636
Like, hypersexy space alien shit, or something
Waguramu Aug 15, 2018
8435bde
Redesigned TelegramBot.json and BotBoyState.
SezerCan Aug 15, 2018
061dd86
Added usage of new NEO4J labels
Mireu Aug 15, 2018
82a2cb8
Merge branch 'DEMOLUTION' of github.com:Roboy/roboy_dialog into DEMOL…
Waguramu Aug 15, 2018
114d179
API shizzle
Aevyz Aug 15, 2018
9d50c7b
for alona :)
ninalovegood Aug 15, 2018
000d95c
Fixed API invocations in new QA state.
josephbirkner Aug 15, 2018
0d1671e
autonomous interaction ready for testing
ninalovegood Aug 15, 2018
7720bf8
Enabled support for special persons from memory in dialog_system
Mireu Aug 15, 2018
37a2132
Enabled special persons from memory in dialog_system
Mireu Aug 15, 2018
a44b6ea
Merge remote-tracking branch 'remotes/origin/botboy-dev' into mireu-p…
Mireu Aug 15, 2018
7239c83
changed min number to 1
ninalovegood Aug 15, 2018
d86dd75
fixed state transition (Idle) ROS inactive
ninalovegood Aug 15, 2018
8b23be2
Fixed handling unknown individuals where the name could be inferred; …
Mireu Aug 15, 2018
8532d6b
Fixed labels according to specification
Mireu Aug 15, 2018
545ecbc
Improved parser synchronization to better style
Mireu Aug 15, 2018
a305015
Fixed some codestyle
Mireu Aug 15, 2018
4fb7304
Updated memory submodule to 9f17e06
Mireu Aug 15, 2018
e5bbe1d
removed vision info from idle
ninalovegood Aug 15, 2018
ca2baf9
botboy steate updated
Aug 15, 2018
ca940c4
Fixed additional label issue
Mireu Aug 16, 2018
0ba3928
added overall timer and disabled infinite conversation
ninalovegood Aug 16, 2018
8d909c5
deleted unrelated logs
Aug 16, 2018
067d705
new personality fixes
Aug 16, 2018
85c2a93
pic command fixes
Aug 16, 2018
96d7c9d
DEvo states
Waguramu Aug 16, 2018
89e896e
Merge branch 'DEMOLUTION' of github.com:Roboy/roboy_dialog into DEMOL…
Waguramu Aug 16, 2018
2bf497a
emotion analyzer bug fixes
Aug 16, 2018
06fe732
Fixes
Waguramu Aug 16, 2018
3bdbf01
Fixes again
Waguramu Aug 16, 2018
927dfd9
Demo Personality for Finals
ninalovegood Aug 17, 2018
eef2166
disabled objects from demo
ninalovegood Aug 17, 2018
b25e383
Hotfix for multi-dbpedia situations producing empty answers
Mireu Aug 17, 2018
9e7f8e1
new grammar in config properties
ninalovegood Aug 17, 2018
2c126c5
wildtalk using proc-bridge
missxa Aug 19, 2018
964b4af
Joseph's Highly Pedantic Changes
Aevyz Aug 13, 2018
d360651
[Docs] TBL: - to —
Aevyz Aug 13, 2018
b382606
[Logging Policy] Conforming more Stuff to Standards
Aevyz Aug 14, 2018
fcacebe
[Sentence Type] DictionaryBasedSentenceTypeDetector Preparation
Aevyz Aug 14, 2018
b34afb3
Fixed main() in FullNLPAnalyzer
josephbirkner Aug 14, 2018
ce306d9
Merge branch 'hack-jason-demo' into origin/de-nlu-upgrades
Aevyz Aug 14, 2018
42a4583
Ignore YML
Aevyz Aug 14, 2018
a90fc5b
Updated API Stuff
Aevyz Aug 14, 2018
25aba2f
Moving
Aevyz Aug 14, 2018
99ca23f
gitignore
Aevyz Aug 14, 2018
acde63f
Like, hypersexy space alien shit, or something
Waguramu Aug 15, 2018
a9e172f
API shizzle
Aevyz Aug 15, 2018
63160af
Fixed API invocations in new QA state.
josephbirkner Aug 15, 2018
a91eb78
DEvo states
Waguramu Aug 16, 2018
414d9c5
Fixes
Waguramu Aug 16, 2018
1d77c04
Fixes again
Waguramu Aug 16, 2018
8c729ca
wildtalk using proc-bridge
missxa Aug 19, 2018
fb6d892
rebase botboy-dev
missxa Aug 19, 2018
74d04cf
merge
missxa Aug 19, 2018
888c441
Joseph's Highly Pedantic Changes
Aevyz Aug 13, 2018
af97972
[Docs] TBL: - to —
Aevyz Aug 13, 2018
eb387ee
[Logging Policy] Conforming more Stuff to Standards
Aevyz Aug 14, 2018
f9cb406
[Sentence Type] DictionaryBasedSentenceTypeDetector Preparation
Aevyz Aug 14, 2018
9fba873
Fixed main() in FullNLPAnalyzer
josephbirkner Aug 14, 2018
a1edd28
Fixed a bug where the system would crash when no INPUT was selected.
Mireu Jul 21, 2018
3cc4765
Emotion support added to CommandLineOutput.
SezerCan Aug 2, 2018
1a771e4
Flag added to manage emotion output for CommandLineOutput.
SezerCan Aug 9, 2018
172f83b
Parallelized SparqlExecutor
Mireu Aug 13, 2018
b6307fc
Parallelized DbEntitySearcher
Mireu Aug 13, 2018
c5640f8
Parallelized FbEntitySearcher
Mireu Aug 13, 2018
ffbe102
Merge branch 'hack-jason-demo' into origin/de-nlu-upgrades
Aevyz Aug 14, 2018
ae71bc7
Ignore YML
Aevyz Aug 14, 2018
abc74cc
Updated API Stuff
Aevyz Aug 14, 2018
84f81ae
Moving
Aevyz Aug 14, 2018
51f5895
gitignore
Aevyz Aug 14, 2018
24993cd
Like, hypersexy space alien shit, or something
Waguramu Aug 15, 2018
426fb86
Redesigned TelegramBot.json and BotBoyState.
SezerCan Aug 15, 2018
886d834
Added usage of new NEO4J labels
Mireu Aug 15, 2018
34db828
Fixed API invocations in new QA state.
josephbirkner Aug 15, 2018
1f659bd
Enabled support for special persons from memory in dialog_system
Mireu Aug 15, 2018
20cb4a9
Fixed handling unknown individuals where the name could be inferred; …
Mireu Aug 15, 2018
7a9a9ab
Fixed labels according to specification
Mireu Aug 15, 2018
3b6ac1a
Improved parser synchronization to better style
Mireu Aug 15, 2018
7bd64cf
Fixed some codestyle
Mireu Aug 15, 2018
b6c0597
Updated memory submodule to 9f17e06
Mireu Aug 15, 2018
a813ca7
botboy steate updated
Aug 15, 2018
6c0ad13
Fixed additional label issue
Mireu Aug 16, 2018
2f3fc6d
deleted unrelated logs
Aug 16, 2018
325aaf8
new personality fixes
Aug 16, 2018
f8e1cac
pic command fixes
Aug 16, 2018
4a5b3c4
DEvo states
Waguramu Aug 16, 2018
13ebc90
emotion analyzer bug fixes
Aug 16, 2018
d73d5ba
Fixes
Waguramu Aug 16, 2018
865491a
Fixes again
Waguramu Aug 16, 2018
1a71140
Hotfix for multi-dbpedia situations producing empty answers
Mireu Aug 17, 2018
6a0ef65
wildtalk using proc-bridge
missxa Aug 19, 2018
60cb23c
Merge branch 'hack-jason-demo' into origin/de-nlu-upgrades
Aevyz Aug 14, 2018
87cba65
Ignore YML
Aevyz Aug 14, 2018
872ec2c
Updated API Stuff
Aevyz Aug 14, 2018
0ef66b4
Moving
Aevyz Aug 14, 2018
8fc7ade
gitignore
Aevyz Aug 14, 2018
0bed7cd
Like, hypersexy space alien shit, or something
Waguramu Aug 15, 2018
526b8b1
Fixed API invocations in new QA state.
josephbirkner Aug 15, 2018
dd7fa92
wildtalk using proc-bridge
missxa Aug 19, 2018
9272b69
merge
missxa Aug 19, 2018
957a61b
fixing roboyQA
missxa Aug 19, 2018
d6393a8
improbed infer name
missxa Aug 19, 2018
c7cf519
fixing states for the bot
missxa Aug 19, 2018
480b64b
Removed double entries from config.properties
Mireu Sep 7, 2018
dd62487
Improved documentation
Mireu Sep 8, 2018
f0a6921
fixed emotions, minor states bugfixes
missxa Sep 9, 2018
ecb459f
game offer bugfix
missxa Sep 9, 2018
3908be3
:fire:
missxa Sep 9, 2018
a46f520
not constantly offering a game anymore
missxa Sep 10, 2018
51d3efb
Fixed wrong formatting
Mireu Sep 10, 2018
2675c68
Fixed faulty fix
Mireu Sep 10, 2018
792b60c
* Added conversation timeout
Mireu Sep 14, 2018
22e0650
pulled mireu-wrapup changes
Mireu Sep 14, 2018
a9e4669
pulled missxa-bot-merge changes
Mireu Sep 15, 2018
c55313f
Fixed config.properties missmerge
Mireu Sep 15, 2018
fd05cb4
jokes, media, created by, new roboy node
missxa Sep 16, 2018
e402694
use fallback in follow up, revive LIVE_IN
missxa Sep 16, 2018
9e2e29c
more sticker emotions, reduced + moved to configs telegram IO delay, …
missxa Sep 16, 2018
ee1d092
Update apiKeys.yml
Aevyz Sep 17, 2018
52c3293
story telling state
missxa Sep 20, 2018
93a326e
in story tellling
missxa Sep 21, 2018
872c119
bugfix
missxa Sep 22, 2018
b6d71af
working wacker
missxa Sep 22, 2018
317e2a6
with infineon game state
missxa Oct 6, 2018
71b181f
tracking control SMACH
missxa Oct 6, 2018
3fa1699
Merge branch 'wacker-open-day' of https://github.com/Roboy/roboy_dial…
missxa Oct 6, 2018
c9e2961
Ordinary personality bugfixes.
josephbirkner Oct 6, 2018
3d916e5
with json phrases for cupgame
missxa Oct 8, 2018
465b308
Merge branch 'wacker-open-day' of https://github.com/Roboy/roboy_dial…
missxa Oct 8, 2018
ab43963
not waiting on enter in CM
missxa Oct 8, 2018
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
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,9 @@ community-server/data-backup

*.iml
nlu/parser/target/

nlu/parser/src/main/java/edu/stanford/nlp/sempre/roboy/api/apiKeys\.yml

dialog/src/main/java/roboy/util/api/apiKeys\.yml
dialog/src/main/java/roboy/util/api/apiKeys.yml
resources/telegram.json
42 changes: 28 additions & 14 deletions config.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ROS_MASTER_IP: 127.0.0.1
# roboy_vision
# roboy_test
# roboy_filters
# roboy_nodered

ROS_ACTIVE_PKGS:
# - roboy_gnlp
Expand All @@ -18,11 +19,15 @@ ROS_ACTIVE_PKGS:
# - roboy_speech_recognition
# - roboy_face
# - roboy_filters
- roboy_test
# - roboy_vision
# - roboy_nodered
# - roboy_test

DEBUG: true
DEMO_MODE: false
INFINITE_REPETITION: true
#timeout for threads in seconds
CONVERSATION_TIMEOUT: 10800

# only single input is allowed, defaults to cmdline
#INPUT: cmdline
Expand All @@ -34,41 +39,51 @@ INPUT: telegram
# multiple outputs are allowed, defaults to cmdline
OUTPUTS:
#- cmdline
# - ibm
# - cerevoice
# - freetts
# - ibm
# - emotions
# - udp
- telegram
#- cerevoice
#- freetts
#- ibm
#- emotions
#- udp
- telegram

UDP_IN_SOCKET: 55555
UDP_OUT_SOCKET: 55556
UDP_HOST_ADDRESS: 127.0.0.1

PARSER_PORT: 5000
# PERSONALITY_FILE: "resources/personalityFiles/ExpoPersonality.json"

PERSONALITY_FILE: "resources/personalityFiles/OrdinaryPersonality.json"
#PERSONALITY_FILE: "resources/personalityFiles/bot/TelegramBot.json"
# PERSONALITY_FILE: "resources/personalityFiles/OrdinaryPersonality.json"
PERSONALITY_FILE: "resources/personalityFiles/bot/TelegramBot.json"
# PERSONALITY_FILE: "resources/personalityFiles/tutorial/MathTest.json"
# PERSONALITY_FILE: "resources/personalityFiles/tutorial/ToyStateMachine.json"
# PERSONALITY_FILE: "resources/personalityFiles/GamePersonality.json"
# PERSONALITY_FILE: "resources/personalityFiles/FairShowPersonality.json"
# PERSONALITY_FILE: "resources/personalityFiles/uzupis.json"
# PERSONALITY_FILE: "resources/personalityFiles/DevoPersonality.json"
# PERSONALITY_FILE: "resources/personalityFiles/test/WildPersonality.json"

IBM_TTS_USER: ""
IBM_TTS_PASS: ""

CONTEXT_GUI_ENABLED: false
ACTION_CLIENT_SCRIPT: "/home/roboy/workspace/Roboy/src/roboy_dialog/resources/scripts/action_client.py"

TELEGRAM_API_TOKENS_FILE: "resources/telegram.json"
# delay in seconds to send the asnwer
TELEGRAM_TYPING_DELAY: 0
# delay in seconds to start processing telegram input
TELEGRAM_PROCESSING_DELAY: 2

PARLAI_PORT: 8877
PARLAI_HOST: "127.0.0.1"


# Logging Levels
# Each Logging Module has different levels. End users should use warn. Developers should use either info or debug/fine.

# Memory: java.util.logging
# Memory: java.util.logging NO DEBUG, see readthedocs->logging policy
# https://docs.oracle.com/javase/7/docs/api/java/util/logging/Level.html
MEMORY_LOG_MODE: "DEBUG"
MEMORY_LOG_MODE: "FINE"

# Dialog: LOG4J 2
# https://logging.apache.org/log4j/2.x/log4j-api/apidocs/org/apache/logging/log4j/Level.html
Expand All @@ -78,4 +93,3 @@ DIALOG_LOG_MODE: "DEBUG"
# Parser/NLU: LogInfo
# Supports all Log4J levels. See Documentation for more details
PARSER_LOG_MODE: "DEBUG"
TELEGRAM_API_TOKENS_FILE: "/Users/Apple/botboy/tokens.json"
85 changes: 0 additions & 85 deletions config.properties.orig

This file was deleted.

9 changes: 8 additions & 1 deletion dialog/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.0</version>
<configuration>
<workingDirectory>${project.parent.basedir}</workingDirectory>
<excludes>
<exclude>roboy.memory.MemoryIntegrationTest</exclude>
</excludes>
Expand Down Expand Up @@ -354,7 +355,7 @@
<dependency>
<groupId>org.ros.rosjava_messages</groupId>
<artifactId>roboy_communication_control</artifactId>
<version>0.0.1</version>
<version>0.0.3</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -429,6 +430,12 @@
<artifactId>telegrambots</artifactId>
<version>3.6.1</version>
</dependency>

<dependency>
<groupId>co.gongzh.procbridge</groupId>
<artifactId>procbridge</artifactId>
<version>1.0.2</version>
</dependency>
</dependencies>

</project>
28 changes: 28 additions & 0 deletions dialog/src/main/java/roboy/context/Context.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import roboy.ros.RosMainNode;
import roboy.util.ConfigManager;
import roboy_communication_cognition.DirectionVector;
import roboy_communication_control.Strings;
import std_msgs.Bool;

import java.util.ArrayList;

Expand Down Expand Up @@ -44,6 +46,18 @@ public class Context {
public final HistoryInterface<ValueHistory<Integer>, Integer, Integer> OTHER_Q =
new HistoryInterface<>(new ValueHistory<Integer>());

public final HistoryInterface<DetecedPerson,Integer, std_msgs.Bool> PERSON_DETECTION =
new HistoryInterface<>(new DetecedPerson());

public final HistoryInterface<PeopleAround,Integer, std_msgs.Int8> CROWD_DETECTION =
new HistoryInterface<>(new PeopleAround());

public final HistoryInterface<DetectedObjects,Integer, Strings> OBJECT_DETECTION =
new HistoryInterface<>(new DetectedObjects());

public final HistoryInterface<BoothSentence, Integer, std_msgs.String > BOOTH_SENTENCE =
new HistoryInterface<>(new BoothSentence());

/* GUI */
private final ArrayList guiValues = new ArrayList();
private final ArrayList guiHistories = new ArrayList();
Expand All @@ -58,6 +72,10 @@ public class Context {
private boolean rosInitialized = false;
private AudioDirectionUpdater AUDIO_ANGLES_UPDATER;
private ROSTestUpdater ROS_TEST_UPDATER;
private DetectedPersonUpdater DETECTED_PERSON_UPDATER;
private PeopleAroundUpdater CROWD_UPDATER;
private DetectedObjectsUpdater DETECTED_OBJ_UPDATER;
private BoothSentenceUpdater BOOTH_SENTENCE_UPDATER;

/* OBSERVERS */
private final FaceCoordinatesObserver FACE_COORDINATES_OBSERVER;
Expand Down Expand Up @@ -107,6 +125,16 @@ public void initializeROS(RosMainNode ros) {
// TODO Add a FACE_COORDINATE_UPDATER.
// Edit the data type and integration tests, once the real data type is used.

if(ConfigManager.ROS_ACTIVE_PKGS.contains("roboy_vision")) {
DETECTED_PERSON_UPDATER = new DetectedPersonUpdater(PERSON_DETECTION.valueHistory, ros);
DETECTED_OBJ_UPDATER = new DetectedObjectsUpdater(OBJECT_DETECTION.valueHistory, ros);
CROWD_UPDATER = new PeopleAroundUpdater(CROWD_DETECTION.valueHistory, ros);
}

if(ConfigManager.ROS_ACTIVE_PKGS.contains("roboy_nodered")){
BOOTH_SENTENCE_UPDATER = new BoothSentenceUpdater(BOOTH_SENTENCE.valueHistory, ros);
}

rosInitialized = true;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package roboy.context.contextObjects;

import roboy.context.ValueHistory;

/**
* Holds Strings with information about the booth at a fair, sent by the node-red GUI
* */
public class BoothSentence extends ValueHistory<std_msgs.String> {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package roboy.context.contextObjects;

import roboy.context.ROSTopicUpdater;
import roboy.ros.RosMainNode;
import roboy.ros.RosSubscribers;

/**
* Pushes new values sent by the Booth Sentence ROS topic into the Booth Sentence value history.
*/
public class BoothSentenceUpdater extends ROSTopicUpdater<std_msgs.String, BoothSentence> {

public BoothSentenceUpdater(BoothSentence target, RosMainNode node) {
super(target, node);
}

@Override
protected synchronized void update() {
target.updateValue(message);
}

@Override
protected RosSubscribers getTargetSubscriber() {
return RosSubscribers.BOOTH_SENTENCE;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package roboy.context.contextObjects;

import roboy.context.ValueHistory;

/**
* Holds booleans whether a person is longer than 10 seconds in the field of view receiving from vision
* */
public class DetecedPerson extends ValueHistory<std_msgs.Bool> {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package roboy.context.contextObjects;

import roboy.context.ValueHistory;
import roboy_communication_control.Strings;


/**
* Holds detected Objects as a String Array receiving from vision
* */
public class DetectedObjects extends ValueHistory<Strings> {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package roboy.context.contextObjects;

import roboy.context.ROSTopicUpdater;
import roboy.ros.RosMainNode;
import roboy.ros.RosSubscribers;
import roboy_communication_control.Strings;

/**
* Pushes new values sent by the Detected Objects ROS topic into the DetectedObjects value history.
*/
public class DetectedObjectsUpdater extends ROSTopicUpdater<Strings, DetectedObjects> {

public DetectedObjectsUpdater(DetectedObjects target, RosMainNode node) {
super(target, node);
}

@Override
protected synchronized void update() {
target.updateValue(message);
}

@Override
protected RosSubscribers getTargetSubscriber() {
return RosSubscribers.DETECTED_OBJECTS;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package roboy.context.contextObjects;

import roboy.context.ROSTopicUpdater;
import roboy.ros.RosMainNode;
import roboy.ros.RosSubscribers;

/**
* Pushes new values sent by the Person Listening ROS topic into the DetectedPerson value history.
*/
public class DetectedPersonUpdater extends ROSTopicUpdater<std_msgs.Bool, DetecedPerson> {

public DetectedPersonUpdater(DetecedPerson target, RosMainNode node) {
super(target, node);
}

@Override
protected synchronized void update() {
target.updateValue(message);
}

@Override
protected RosSubscribers getTargetSubscriber() {
return RosSubscribers.PERSON_LISTENING;
}

}
Loading