Skip to content

Commit 1888ed1

Browse files
Merge branch 'master' of github.com:uic-evl/omicron
2 parents aa4bb3f + b44a0b7 commit 1888ed1

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

data/oinputserver.cfg

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ config:
44

55
showEventStream = false; // Show outgoing UDP events
66
showEventMessages = false; // Show outgoing TCP events
7-
showIncomingStream = false;
7+
showIncomingStream = false; // Show incoming streaming events
8+
showIncomingMessages = true; // Show incoming single events
89

910
services:
1011
{
@@ -42,7 +43,7 @@ config:
4243
debug = false;
4344

4445
// Stream data to serverIP on dataPort instead of receiving (Default: false)
45-
// Best is serverIP is IP number rather than DNS name
46+
// Best if serverIP is numerical IP address rather than DNS name
4647
dataStreamOut = false;
4748

4849
// Delay in ms between connection attempts to serverIP (Default: 5000)
@@ -56,20 +57,23 @@ config:
5657
MSKinectService:
5758
{
5859
checkInterval = 2.0;
59-
seatedMode = false;
6060
debug = false;
6161

62+
// Body Tracking
6263
enableKinectBody = true;
64+
seatedMode = false;
65+
kinectOriginOffset = [0, 0, 0];
6366

6467
// Generates a head and wand mocap event similar to the CAVE2 tracker
6568
// Will not accurately track orientation or Z movement
66-
caveSimulator = false;
69+
caveSimulator = true;
6770

6871
// Speech recognition
6972
enableKinectSpeech = false;
7073
useGrammar = true;
7174
useDictation = false;
72-
speechGrammerFilePath = "C:/Workspace/Kinect/Samples v2.0/SpeechBasics-D2D/SpeechBasics-D2D.grxml";
75+
speechGrammerFilePath = "C:/Workspace/EVL/Kinect/Samples v2.0/SpeechBasics-D2D/SpeechBasics-D2D.grxml";
76+
confidenceThreshold = 0.3;
7377
};
7478

7579
// Combine game controller with motion capture object

include/omicron/InputServer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ class OMICRON_API InputServer
366366
bool showStreamSpeed;
367367
bool showEventMessages;
368368
bool showIncomingStream;
369+
bool showIncomingMessages;
369370
int lastOutgoingEventTime;
370371
int eventCount;
371372

src/omicron/omicron/InputServer.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,7 @@ void InputServer::startConnection(Config* cfg)
551551
showStreamSpeed = Config::getBoolValue("showStreamSpeed", sCfg, false );
552552
showEventMessages = Config::getBoolValue("showEventMessages", sCfg, false);
553553
showIncomingStream = Config::getBoolValue("showIncomingStream", sCfg, false);
554+
showIncomingMessages = Config::getBoolValue("showIncomingMessages", sCfg, false);
554555

555556
if( checkForDisconnectedClients )
556557
omsg("Check for disconnected clients enabled.");
@@ -826,6 +827,12 @@ void InputServer::loop()
826827
{
827828
printf("InputServer: Data in id: %d pos: %f %f %f\n", ed.sourceId, ed.posx, ed.posy, ed.posz);
828829
}
830+
if (showIncomingMessages && ed.serviceType == EventBase::ServiceTypeSpeech)
831+
{
832+
Event e;
833+
e.deserialize(&ed);
834+
printf("NetService: Speech in: (speech text, condidence) '%s' %f\n", e.getExtraDataString(), ed.posx);
835+
}
829836

830837
// Add to local service manager's event list
831838
if (serviceManager)

0 commit comments

Comments
 (0)