Package node_manager_fkie :: Module settings' :: Class Settings
[frames] | no frames]

Class Settings

source code

object --+
         |
        Settings

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
reload(self)
Loads the settings from file or sets default values if no one exists.
source code
 
masteruri(self) source code
 
robot_image_file(self, robot_name) source code
 
str2bool(self, v) source code
 
str2list(self, l) source code
str
terminal_cmd(self, cmd, title)
Creates a command string to run with a terminal prefix
source code
 
qsettings(self, file) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  USER_DEFAULT = 'robot'
  PKG_NAME = 'node_manager_fkie'
  PACKAGE_DIR = u'/home/rosbuild/hudson/workspace/doc-groovy-mul...
  ROBOTS_DIR = u'/home/rosbuild/hudson/workspace/doc-groovy-mult...
  HELP_FILE = u'/home/rosbuild/hudson/workspace/doc-groovy-multi...
  CURRENT_DIALOG_PATH = '/home/rosbuild'
  LOG_PATH = '/home/rosbuild/.ros/log/'
  LOG_VIEWER = '/usr/bin/less -fKLnQrSU'
  STARTER_SCRIPT = 'rosrun node_manager_fkie remote_nm.py'
  RESPAWN_SCRIPT = 'rosrun node_manager_fkie respawn'
the script used on remote hosts to start new ROS nodes
  LAUNCH_HISTORY_FILE = 'launch.history'
  LAUNCH_HISTORY_LENGTH = 5
  PARAM_HISTORY_FILE = 'param.history'
  PARAM_HISTORY_LENGTH = 12
  CFG_REDIRECT_FILE = 'redirect'
  CFG_FILE = 'settings.ini'
  CFG_GUI_FILE = 'settings.ini'
  TIMEOUT_CONTROL = 5
  TIMEOUT_UPDATES = 20
  SEARCH_IN_EXT = ['.launch', '.yaml', '.conf', '.cfg', '.iface'...
  LAUNCH_VIEW_EXT = ['.yaml', '.conf', '.cfg', '.iface', '.sync'...
  STORE_GEOMETRY = True
Instance Variables
  CFG_PATH = '/'
configuration path to store the history.
Properties
  cfg_path
  robots_path
  default_user
  launch_history_length
  param_history_length
  current_dialog_path
  log_viewer
  start_remote_script
  respawn_script
  launch_view_file_ext
  store_geometry

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

terminal_cmd(self, cmd, title)

source code 

Creates a command string to run with a terminal prefix

Parameters:
  • cmd ([str,..]) - the list with a command and args
  • title (str) - the title of the terminal
Returns: str
command with a terminal prefix

Class Variable Details

PACKAGE_DIR

Value:
u'/home/rosbuild/hudson/workspace/doc-groovy-multimaster_fkie/doc_stac\
ks/2014-10-06_11-12-31.008890/local_installs/share/node_manager_fkie'

ROBOTS_DIR

Value:
u'/home/rosbuild/hudson/workspace/doc-groovy-multimaster_fkie/doc_stac\
ks/2014-10-06_11-12-31.008890/local_installs/share/node_manager_fkie/i\
mages'

HELP_FILE

Value:
u'/home/rosbuild/hudson/workspace/doc-groovy-multimaster_fkie/doc_stac\
ks/2014-10-06_11-12-31.008890/local_installs/share/node_manager_fkie/R\
EADME.rst'

SEARCH_IN_EXT

Value:
['.launch',
 '.yaml',
 '.conf',
 '.cfg',
 '.iface',
 '.sync',
 '.test',
 '.xml']

LAUNCH_VIEW_EXT

Value:
['.yaml', '.conf', '.cfg', '.iface', '.sync', '.test']

Property Details

cfg_path

Get Method:
unreachable.cfg_path(self)
Set Method:
unreachable.cfg_path(self, path)

robots_path

Get Method:
unreachable.robots_path(self)
Set Method:
unreachable.robots_path(self, path)

default_user

Get Method:
unreachable.default_user(self)
Set Method:
unreachable.default_user(self, user)

launch_history_length

Get Method:
unreachable.launch_history_length(self)
Set Method:
unreachable.launch_history_length(self, len)

param_history_length

Get Method:
unreachable.param_history_length(self)
Set Method:
unreachable.param_history_length(self, len)

current_dialog_path

Get Method:
unreachable.current_dialog_path(self)
Set Method:
unreachable.current_dialog_path(self, path)

log_viewer

Get Method:
unreachable.log_viewer(self)
Set Method:
unreachable.log_viewer(self, viewer)

start_remote_script

Get Method:
unreachable.start_remote_script(self)
Set Method:
unreachable.start_remote_script(self, script)

respawn_script

Get Method:
unreachable.respawn_script(self)
Set Method:
unreachable.respawn_script(self, script)

launch_view_file_ext

Get Method:
unreachable.launch_view_file_ext(self)
Set Method:
unreachable.launch_view_file_ext(self, exts)

store_geometry

Get Method:
unreachable.store_geometry(self)
Set Method:
unreachable.store_geometry(self, value)