Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VAServerLauncher
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LuFG VR VIS
VR-Group
VAServerLauncher
Commits
1b96d401
Commit
1b96d401
authored
2 years ago
by
Philipp Schäfer
Browse files
Options
Downloads
Patches
Plain Diff
Launcher: now uses VAComposedIniParser to setup config for VAServer
parent
b04fd224
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
LaunchScript/VirtualAcousticsStarterServer.py
+6
-2
6 additions, 2 deletions
LaunchScript/VirtualAcousticsStarterServer.py
with
6 additions
and
2 deletions
LaunchScript/VirtualAcousticsStarterServer.py
+
6
−
2
View file @
1b96d401
...
...
@@ -98,6 +98,7 @@ class VirtualAcousticsLauncher:
def
__init__
(
self
):
print
(
"
init
"
)
self
.
oConfig
=
None
self
.
vaIniParser
=
None
self
.
oVAProcess
=
None
self
.
oLauncherServerSocket
=
None
self
.
oLauncherConnection
=
None
...
...
@@ -135,6 +136,7 @@ class VirtualAcousticsLauncher:
print
(
"
Using config:
"
+
sUsedConfigFile
)
self
.
oConfig
=
LauncherConfig
(
sUsedConfigFile
)
self
.
vaIniParser
=
VAComposedIniParser
(
self
.
oConfig
.
lsReproductionModules
)
#Open network socket used for the communication
def
open_server_socket
(
self
):
...
...
@@ -154,6 +156,9 @@ class VirtualAcousticsLauncher:
#Actually starts the launcher listening for VAServer start requests
def
run
(
self
):
try
:
#TODO-PSC: Receive file and name from client
self
.
vaIniParser
.
sRendererIniPath
=
None
self
.
vaIniParser
.
prepare_inis
()
while
True
:
print
(
"
Waiting for launcher connection...
"
)
...
...
@@ -188,7 +193,6 @@ class VirtualAcousticsLauncher:
self
.
oLauncherServerSocket
.
close
()
#Checks for a message containing the ID of the VAServer instance to be started and returns the respective VAServer directory
def
receive_va_server_id
(
self
):
try
:
...
...
@@ -241,7 +245,7 @@ class VirtualAcousticsLauncher:
# Create start command
sConnectionParam
=
self
.
oConfig
.
sLocalIP
+
"
:
"
+
str
(
self
.
oConfig
.
nVAServerPort
)
sVACoreIniParam
=
"
conf/VACore.ini
"
sVACoreIniParam
=
self
.
vaIniParser
.
get_main_inifile
()
sParams
=
sConnectionParam
+
"
"
+
sVACoreIniParam
sCommand
=
sVAExecutableFile
+
"
"
+
sParams
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment