Commit 28d9da4e authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Get root context id from main HPP server

parent 970930c5
......@@ -38,7 +38,7 @@ int main (int argc, const char* argv[])
hppDout (error, "Faile to start hpp-corbaserver");
try {
wbsServer.startCorbaServer ("hpp", "corbaserver",
wbsServer.startCorbaServer (corbaServer.mainContextId(), "corbaserver",
"wholebodyStep", "problem");
hppDout (info, "Successfully started corba server for whole body planner");
......@@ -34,7 +34,7 @@ class Client:
Connect and create clients for hpp-wholebody-step-planner library.
def __init__(self, url = None):
def __init__(self, url = None, postContextId = ""):
Initialize CORBA and create default clients.
......@@ -48,7 +48,7 @@ class Client:
if self.rootContext is None:
raise CorbaError ('failed to narrow the root context')
name = [CosNaming.NameComponent ("hpp", "corbaserver"),
name = [CosNaming.NameComponent ("hpp" + postContextId, "corbaserver"),
CosNaming.NameComponent ("wholebodyStep", "problem")]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment