Joakim Kilby
a89bce72cc
Merge branch 'feature/remote' of openspace.itn.liu.se:/openspace into feature/remote
...
fixed decoding of init messages to include data size
2015-07-01 14:17:23 +02:00
Joakim Kilby
762e70f14b
fixes to init message construction
2015-07-01 13:33:33 +02:00
Joakim Kilby
aea4a1ac0c
added a receive thread. fixed a bug where threads tried to join/delete themselves
2015-07-01 12:17:20 +02:00
Joakim Kilby
6697eeb7b7
changes to how messages are sent
2015-07-01 10:18:45 +02:00
Joakim Kilby
656eb7a464
Merge branch 'feature/remote' of openspace.itn.liu.se:/openspace into feature/remote
...
* 'feature/remote' of openspace.itn.liu.se:/openspace:
Clearing function bindings to avoid messages being logged from SGCT after OpenSpace engine has been destroyed.
Conflicts:
src/network/parallelconnection.cpp
2015-07-01 09:57:44 +02:00
Joakim Kilby
d6cb939474
created a send que for messages and a thread to handle sending
2015-07-01 09:55:13 +02:00
Joakim Kilby
a4155dea2f
Merge branch 'feature/remote' of openspace.itn.liu.se:/openspace into feature/remote
2015-06-30 18:32:52 +02:00
Joakim Kilby
d834603c66
Clearing function bindings to avoid messages being logged from SGCT after OpenSpace engine has been destroyed.
2015-06-30 18:30:29 +02:00
Joakim Kilby
0b3552ea09
added initialization message encoding + sending and receiving + decoding
2015-06-30 09:23:25 +02:00
Joakim Kilby
6057019d20
added proper return value to cachedScripts function
2015-06-26 14:06:20 +02:00
Joakim Kilby
c1cf5f4581
added temporary functionality to be able to ensure that startup scripts are also synchronised over parallel connection if they should be.
2015-06-26 13:55:02 +02:00
Joakim Kilby
8cc1498b57
made functions for script sharing public for now, temporary fix
2015-06-26 13:54:00 +02:00
Joakim Kilby
06ca17326e
fixed a bug where received sscripts sometimes got an extra character when converted from vector<char> to string
2015-06-26 11:15:14 +02:00
Joakim Kilby
42dbf6a6a1
moved script parsing for library/function names into a separate function
2015-06-26 10:42:35 +02:00
Joakim Kilby
2529d4c4d6
added definitions of which scripts should be shared over parallel connection
2015-06-26 09:37:51 +02:00
Joakim Kilby
4fb40ceeb9
also changed name of scripts variable in header file....
2015-06-26 09:23:30 +02:00
Joakim Kilby
22af992078
removed a comment, changed name of script storing variable to something that makes more sense
2015-06-25 12:31:11 +02:00
Joakim Kilby
46757113fd
removed debug printf
2015-06-25 12:28:17 +02:00
Joakim Kilby
2cd827a4fd
added method to clear keyframes and call to that method when hostship is switched
2015-06-25 11:28:18 +02:00
Joakim Kilby
80df2a0abd
added decoding of requester ID in init request message
2015-06-25 11:19:48 +02:00
Joakim Kilby
c32841e0ac
added a vector of executed scripts to parallel connection.
...
vector is filled every time a script is sent or received
2015-06-24 19:44:17 +02:00
Joakim Kilby
7fa460e9dc
changed definition of Lua function slightly to incorporate a boolean defining if the script should be shared or not.
...
added a constructor with the sharing variable as default to zero so every script doesn't have to be changed.
added functionality in runScript function to check if a script should be shared and if so send it.
2015-06-24 19:41:59 +02:00
Joakim Kilby
77ecdcec74
removed call to sendScript from script engine.
...
Not all scripts should be synchronised
2015-06-24 18:00:55 +02:00
Joakim Kilby
ff49a7cdd2
code cleanup, commenting, refactoring, and renaming.
...
fixed a bug where threads would not close down correctly on Unix systems
2015-06-24 17:52:21 +02:00
Joakim Kilby
13eb012a04
added a current run time variable for the openspace engine + get/set method.
...
run time is set in preSync from SGCT runtime at the moment
2015-06-24 17:51:32 +02:00
Joakim Kilby
9a74bd60b7
renamed osparallelconnection to parallel connection. Updated all files and CMakeLists to use new name.
...
started rebase work on parallel connection
2015-06-24 11:23:36 +02:00
Joakim Kilby
466d9028f9
changed ghoul version
2015-06-23 11:34:43 +02:00
Joakim Kilby
b6bd205304
Added init request handling for non-hosts
...
osparallelconnection is no longer a property owner
2015-06-23 11:33:20 +02:00
Joakim Kilby
77720b6985
Merge branch 'feature/remote' of openspace.itn.liu.se:/openspace into feature/remote
2015-06-23 10:21:21 +02:00
Joakim Kilby
fabbd3c1e8
added a vector containing all executed scripts for this session and method to get it.
...
added a call to sending of scripts via parallel connection as soon as they are executed.
2015-06-23 09:34:34 +02:00
Joakim Kilby
b2b7563018
added functionality to send and decode scripts
2015-06-23 09:33:09 +02:00
Joakim Kilby
ba49755d83
removed dummy frames
2015-06-18 11:36:38 +02:00
Joakim Kilby
4c06a76eae
removed dummy frames
2015-06-18 11:04:34 +02:00
Joakim Kilby
45c7053729
Merge branch 'feature/remote' of openspace.itn.liu.se:/openspace into feature/remote
...
* 'feature/remote' of openspace.itn.liu.se:/openspace:
added buffering of samples and changed how samples are handled when received. fixed a bug where client did not regain control after host disconnected
2015-06-18 10:45:41 +02:00
Joakim Kilby
8f1f2dafa9
changed so that 10 samples per second are sent
2015-06-18 10:45:36 +02:00
Joakim Kilby
ca3628e505
added buffering of samples and changed how samples are handled when received.
...
fixed a bug where client did not regain control after host disconnected
2015-06-18 10:44:38 +02:00
Joakim Kilby
b723751c1b
added functionality to disconnect and request hostship via LUA.
...
fixed bug in threading
2015-06-18 09:10:15 +02:00
Joakim Kilby
be21b8e43d
added quaternion interpolation
2015-06-17 16:03:42 +02:00
Joakim Kilby
e42d160773
added interpolation and mutex protection
...
changed TCP protocol to no delay
2015-06-17 15:11:34 +02:00
Joakim Kilby
78f170048e
moved deleteion of osparallelconnection
2015-06-17 15:04:55 +02:00
Joakim Kilby
206b47d675
quick fix for testing
2015-06-17 13:21:29 +02:00
Joakim Kilby
8297f2e683
First test of actual remote controlling
2015-06-17 13:10:19 +02:00
Joakim Kilby
4e4cf4cd6a
temporarily removed references to keyframes in interactionhandler.
...
changed how keyframes are encoded/decoded and sent in osparallelconnection
2015-06-17 11:18:50 +02:00
Joakim Kilby
9d6b9a3ad1
adding first version of keyframe functionality for interactionhandler
2015-06-17 09:52:12 +02:00
Joakim Kilby
74ab05ec37
rename of mutex
2015-06-17 08:39:49 +02:00
Joakim Kilby
91247d4ac9
added keyframe struct and functionality to broadcast keyframes
2015-06-17 08:39:34 +02:00
Joakim Kilby
cce351af69
removed all references to remotecontroller
2015-06-17 08:39:02 +02:00
Joakim Kilby
f35ec6f8d4
Removed remotecontroller class
2015-06-17 08:38:25 +02:00
Joakim Kilby
8da76f6d1e
added message specific decoding functions
2015-06-16 16:37:07 +02:00
Joakim Kilby
8f05d64316
added lua scripting functionality and fixed authentication to server
2015-06-16 15:45:00 +02:00