Skip to content

Commit

Permalink
[compat] fixed bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nobu19800 committed Aug 8, 2024
1 parent d4d02f4 commit 0231073
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions OpenRTM_aist/ManagerServant.py
Original file line number Diff line number Diff line change
Expand Up @@ -1368,6 +1368,7 @@ def createComponentByManagerName(self, module_name):
arg = module_name

mgrstr, arg = self.getParameterByModulename("manager_name", arg)
param = OpenRTM_aist.urlparam2map(arg)

if not mgrstr:
return RTC.RTObject._nil, arg, mgrstr
Expand Down Expand Up @@ -1404,6 +1405,11 @@ def createComponentByManagerName(self, module_name):
load_path = load_path.replace("\\", "\\\\")
else:
cmd = rtcd_cmd
if "config_file" in param.keys():
cmd += " -f \"" + param["config_file"] + "\""
elif config.findNode("config_file"):
cmd += " -f \"" + config.getProperty("config_file") + "\""

cmd += " -o " + "manager.is_master:NO"
cmd += " -o " + "manager.corba_servant:YES"
cmd += " -o " + "corba.master_manager:" + \
Expand Down Expand Up @@ -1521,6 +1527,7 @@ def createComponentByAddress(self, module_name):

arg = module_name
mgrstr, arg = self.getParameterByModulename("manager_address", arg)
param = OpenRTM_aist.urlparam2map(arg)

if not mgrstr:
return RTC.RTObject._nil, arg, mgrstr
Expand Down Expand Up @@ -1558,6 +1565,10 @@ def createComponentByAddress(self, module_name):
load_path = load_path.replace("\\", "\\\\")
else:
cmd = rtcd_cmd
if "config_file" in param.keys():
cmd += " -f \"" + param["config_file"] + "\""
elif config.findNode("config_file"):
cmd += " -f \"" + config.getProperty("config_file") + "\""
cmd += " -o corba.master_manager:"
cmd += mgrstr # port number
cmd += " -o \"manager.modules.load_path:"
Expand Down

0 comments on commit 0231073

Please sign in to comment.