92 config_file_path = [
"./rtc.conf",
95 "/usr/local/etc/rtc.conf",
96 "/usr/local/etc/rtc/rtc.conf",
108 config_file_env =
"RTC_MANAGER_CONFIG" 189 prop.setDefaults(OpenRTM_aist.default_config)
196 print OpenRTM_aist.Logger.print_exception()
200 prop.setProperty(
"manager.is_master",
"YES")
256 opts, args = getopt.getopt(argv[1:],
"adlf:o:p:")
257 except getopt.GetoptError:
258 print OpenRTM_aist.Logger.print_exception()
261 for opt, arg
in opts:
263 self._argprop.setProperty(
"manager.corba_servant",
"NO")
274 self._argprop.setProperty(arg[:pos],arg[pos+1:])
278 ret = OpenRTM_aist.stringTo(num, arg)
281 self._argprop.setProperty(
"corba.endpoints",arg_)
329 print OpenRTM_aist.Logger.print_exception()
379 if sys.platform ==
'win32':
380 sysinfo = platform.uname()
384 prop.setProperty(
"manager.os.name", sysinfo[0])
385 prop.setProperty(
"manager.os.hostname", sysinfo[1])
386 prop.setProperty(
"manager.os.release", sysinfo[2])
387 prop.setProperty(
"manager.os.version", sysinfo[3])
388 prop.setProperty(
"manager.os.arch", sysinfo[4])
389 prop.setProperty(
"manager.pid", os.getpid())
def findConfigFile(self)
Find the configuration file.
def __init__(self, argv=None)
ManagerConfig constructor.
Manager configuration class.
The Properties class represents a persistent set of properties.
list config_file_path
The default configuration file path for manager.
string config_file_env
The environment variable to distinguish the default configuration file path.
def setSystemInformation(self, prop)
Set system information.
def configure(self, prop)
Specify the configuration information to the Property.
def parseArgs(self, argv)
Get configuration value.
def init(self, argv)
Initialization.
def fileExist(self, filename)
Check the file existence.