Skip to content

Commit

Permalink
Merge branch 'master' of github.com:uic-evl/omicron
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurnishimoto committed May 30, 2018
2 parents aa4bb3f + b44a0b7 commit 1888ed1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
14 changes: 9 additions & 5 deletions data/oinputserver.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ config:

showEventStream = false; // Show outgoing UDP events
showEventMessages = false; // Show outgoing TCP events
showIncomingStream = false;
showIncomingStream = false; // Show incoming streaming events
showIncomingMessages = true; // Show incoming single events

services:
{
Expand Down Expand Up @@ -42,7 +43,7 @@ config:
debug = false;

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

// Delay in ms between connection attempts to serverIP (Default: 5000)
Expand All @@ -56,20 +57,23 @@ config:
MSKinectService:
{
checkInterval = 2.0;
seatedMode = false;
debug = false;

// Body Tracking
enableKinectBody = true;
seatedMode = false;
kinectOriginOffset = [0, 0, 0];

// Generates a head and wand mocap event similar to the CAVE2 tracker
// Will not accurately track orientation or Z movement
caveSimulator = false;
caveSimulator = true;

// Speech recognition
enableKinectSpeech = false;
useGrammar = true;
useDictation = false;
speechGrammerFilePath = "C:/Workspace/Kinect/Samples v2.0/SpeechBasics-D2D/SpeechBasics-D2D.grxml";
speechGrammerFilePath = "C:/Workspace/EVL/Kinect/Samples v2.0/SpeechBasics-D2D/SpeechBasics-D2D.grxml";
confidenceThreshold = 0.3;
};

// Combine game controller with motion capture object
Expand Down
1 change: 1 addition & 0 deletions include/omicron/InputServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ class OMICRON_API InputServer
bool showStreamSpeed;
bool showEventMessages;
bool showIncomingStream;
bool showIncomingMessages;
int lastOutgoingEventTime;
int eventCount;

Expand Down
7 changes: 7 additions & 0 deletions src/omicron/omicron/InputServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,7 @@ void InputServer::startConnection(Config* cfg)
showStreamSpeed = Config::getBoolValue("showStreamSpeed", sCfg, false );
showEventMessages = Config::getBoolValue("showEventMessages", sCfg, false);
showIncomingStream = Config::getBoolValue("showIncomingStream", sCfg, false);
showIncomingMessages = Config::getBoolValue("showIncomingMessages", sCfg, false);

if( checkForDisconnectedClients )
omsg("Check for disconnected clients enabled.");
Expand Down Expand Up @@ -826,6 +827,12 @@ void InputServer::loop()
{
printf("InputServer: Data in id: %d pos: %f %f %f\n", ed.sourceId, ed.posx, ed.posy, ed.posz);
}
if (showIncomingMessages && ed.serviceType == EventBase::ServiceTypeSpeech)
{
Event e;
e.deserialize(&ed);
printf("NetService: Speech in: (speech text, condidence) '%s' %f\n", e.getExtraDataString(), ed.posx);
}

// Add to local service manager's event list
if (serviceManager)
Expand Down

0 comments on commit 1888ed1

Please sign in to comment.