Skip to content

Commit a9fe836

Browse files
committed
Discard master-slave language
1 parent 8d13f45 commit a9fe836

14 files changed

Lines changed: 257 additions & 257 deletions

File tree

OpenRTM_aist/DefaultConfiguration.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"logger.date_format", "%b %d %H:%M:%S",
6060
"logger.log_level", "INFO",
6161
"logger.stream_lock", "NO",
62-
"logger.master_logger", "",
62+
"logger.main_logger", "",
6363
"module.conf_path", "",
6464
"module.load_path", "",
6565
"naming.enable", "YES",
@@ -73,17 +73,17 @@
7373
"corba.endpoints", "all",
7474
"corba.id", OpenRTM_aist.corba_name,
7575
"corba.nameservers", "localhost",
76-
"corba.master_manager", "localhost:2810",
76+
"corba.main_manager", "localhost:2810",
7777
"corba.nameservice.replace_endpoint", "NO",
78-
"corba.update_master_manager.enable", "YES",
79-
"corba.update_master_manager.interval", "10.0",
78+
"corba.update_main_manager.enable", "YES",
79+
"corba.update_main_manager.interval", "10.0",
8080
"exec_cxt.periodic.type", "PeriodicExecutionContext",
8181
"exec_cxt.periodic.rate", "1000",
8282
"exec_cxt.sync_transition", "YES",
8383
"exec_cxt.transition_timeout", "0.5",
8484
"manager.modules.load_path", "./",
8585
"manager.modules.abs_path_allowed", "YES",
86-
"manager.is_master", "NO",
86+
"manager.is_main", "NO",
8787
"manager.corba_servant", "YES",
8888
"manager.shutdown_on_nortcs", "YES",
8989
"manager.shutdown_auto", "YES",

OpenRTM_aist/Manager.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,7 @@ def deleteComponent(self, instance_name=None, comp=None):
12121212

12131213
if OpenRTM_aist.toBool(self._config.getProperty("manager.shutdown_on_nortcs"),
12141214
"YES", "NO", True) and \
1215-
not OpenRTM_aist.toBool(self._config.getProperty("manager.is_master"),
1215+
not OpenRTM_aist.toBool(self._config.getProperty("manager.is_main"),
12161216
"YES", "NO", False):
12171217
comps = self.getComponents()
12181218
if not comps:
@@ -1423,7 +1423,7 @@ def initManager(self, argv):
14231423

14241424
if OpenRTM_aist.toBool(self._config.getProperty("manager.shutdown_auto"),
14251425
"YES", "NO", True) and \
1426-
not OpenRTM_aist.toBool(self._config.getProperty("manager.is_master"),
1426+
not OpenRTM_aist.toBool(self._config.getProperty("manager.is_main"),
14271427
"YES", "NO", False) and \
14281428
self._needsTimer:
14291429
tm = OpenRTM_aist.TimeValue(10, 0)
@@ -1826,14 +1826,14 @@ def createORBEndpoints(self):
18261826
"corba.endpoint: %s",
18271827
self._config.getProperty("corba.endpoint"))
18281828

1829-
# If this process has master manager,
1830-
# master manager's endpoint inserted at the top of endpoints
1831-
self._rtcout.RTC_DEBUG("manager.is_master: %s",
1832-
self._config.getProperty("manager.is_master"))
1829+
# If this process has main manager,
1830+
# main manager's endpoint inserted at the top of endpoints
1831+
self._rtcout.RTC_DEBUG("manager.is_main: %s",
1832+
self._config.getProperty("manager.is_main"))
18331833

18341834
if OpenRTM_aist.toBool(self._config.getProperty(
1835-
"manager.is_master"), "YES", "NO", False):
1836-
mm = self._config.getProperty("corba.master_manager", ":2810")
1835+
"manager.is_main"), "YES", "NO", False):
1836+
mm = self._config.getProperty("corba.main_manager", ":2810")
18371837
mmm = [s.strip() for s in mm.split(":")]
18381838
if len(mmm) == 2:
18391839
endpoints.insert(0, ":" + mmm[1])
@@ -2329,26 +2329,26 @@ def initManagerServant(self):
23292329
prop = self._config.getNode("manager")
23302330
names = OpenRTM_aist.split(prop.getProperty("naming_formats"), ",")
23312331

2332-
if OpenRTM_aist.toBool(prop.getProperty("is_master"),
2332+
if OpenRTM_aist.toBool(prop.getProperty("is_main"),
23332333
"YES", "NO", True):
23342334
for name in names:
23352335
mgr_name = self.formatString(name, prop)
23362336
self._namingManager.bindManagerObject(
23372337
mgr_name, self._mgrservant)
23382338

2339-
if OpenRTM_aist.toBool(self._config.getProperty("corba.update_master_manager.enable"),
2339+
if OpenRTM_aist.toBool(self._config.getProperty("corba.update_main_manager.enable"),
23402340
"YES", "NO", True) and \
2341-
not OpenRTM_aist.toBool(self._config.getProperty("manager.is_master"),
2341+
not OpenRTM_aist.toBool(self._config.getProperty("manager.is_main"),
23422342
"YES", "NO", False) and \
23432343
self._needsTimer:
23442344
tm = OpenRTM_aist.TimeValue(10, 0)
2345-
if self._config.findNode("corba.update_master_manager.interval"):
2345+
if self._config.findNode("corba.update_main_manager.interval"):
23462346
duration = float(self._config.getProperty(
2347-
"corba.update_master_manager.interval"))
2347+
"corba.update_main_manager.interval"))
23482348
if duration:
23492349
tm.set_time(duration)
23502350

2351-
self.addTask(self._mgrservant.updateMasterManager, tm)
2351+
self.addTask(self._mgrservant.updateMainManager, tm)
23522352

23532353
otherref = None
23542354

OpenRTM_aist/ManagerConfig.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def __init__(self, argv=None):
132132

133133
self._configFile = ""
134134
self._argprop = OpenRTM_aist.Properties()
135-
self._isMaster = False
135+
self._isMain = False
136136
self._ignoreNoConf = False
137137
if argv:
138138
self.init(argv)
@@ -167,7 +167,7 @@ def __init__(self, argv=None):
167167
# -l module : Specify modules to be loaded at the beginning. <br>
168168
# -o options: Other options. <br>
169169
# -p : Specify a port number. <br>
170-
# -d : Run Master Manager. <br>
170+
# -d : Run Main Manager. <br>
171171
#
172172
# @endif
173173

@@ -201,8 +201,8 @@ def configure(self, prop):
201201
# print(OpenRTM_aist.Logger.print_exception())
202202

203203
self.setSystemInformation(prop)
204-
if self._isMaster:
205-
prop.setProperty("manager.is_master", "YES")
204+
if self._isMain:
205+
prop.setProperty("manager.is_main", "YES")
206206

207207
# Properties from arguments are marged finally
208208
prop.mergeProperties(self._argprop)
@@ -256,7 +256,7 @@ def configure(self, prop):
256256
# -l module : Specify modules to be loaded at the beginning. <br>
257257
# -o options: Other options. <br>
258258
# -p : Specify a port number. <br>
259-
# -d : Run Master Manager. <br>
259+
# -d : Run Main Manager. <br>
260260
#
261261
# @endif
262262

@@ -293,7 +293,7 @@ def parseArgs(self, argv):
293293
self._argprop.setProperty("corba.endpoints", arg_)
294294

295295
if opt == "-d":
296-
self._isMaster = True
296+
self._isMain = True
297297

298298
if opt == "-i":
299299
self._ignoreNoConf = True

0 commit comments

Comments
 (0)