Package node_manager_fkie
[frames] | no frames]

Package node_manager_fkie

source code


Version: 0.2

Date: 2012-02-01

Author: Alexander Tiderko (Alexander.Tiderko@fkie.fraunhofer.de)

Copyright: Copyright (c) 2012 Alexander Tiderko, Fraunhofer FKIE/US

License: BSD

Submodules

Functions
str
terminal_cmd(cmd, title)
Creates a command string to run with a terminal prefix
source code
SSHhandler
ssh()
Returns: The SSH handler to handle the SSH connections
source code
ScreenHandler
screen()
Returns: The screen handler to the screens.
source code
StartHandler
starter()
Returns: The start handler to handle the start of new ROS nodes on local or remote machines.
source code
NameResolution
nameres()
Returns: The name resolution object translate the the name to the host or ROS master URI.
source code
History
history()
Returns: The history of entered parameter.
source code
bool
is_local(hostname)
Test whether the given host name is the name of the local host or not.
source code
str
get_ros_home()
Returns the ROS HOME depending on ROS distribution API.
source code
str
masteruri_from_ros()
Returns the master URI depending on ROS distribution API.
source code
 
finish(*arg)
Callback called on exit of the ros node.
source code
 
setTerminalName(name)
Change the terminal name.
source code
 
setProcessName(name)
Change the process name.
source code
 
main(name, anonymous=False) source code
Variables
  PACKAGE_DIR = ''.join([roslib.packages.get_dir_pkg(os.path.abs...
  ROBOTS_DIR = ''.join([PACKAGE_DIR, os.path.sep, 'images', os.p...
  CFG_PATH = ''.join(['.node_manager', os.sep])
  LESS = "/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
  HOSTS_CACHE = dict()
the cache directory to store the results of tests for local hosts.
  HELP_FILE = ''.join([PACKAGE_DIR, os.path.sep, 'README.rst'])
  main_form = None
  app = None
Function Details

terminal_cmd(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

ssh()

source code 
Returns: SSHhandler
The SSH handler to handle the SSH connections

screen()

source code 
Returns: ScreenHandler
The screen handler to the screens.

starter()

source code 
Returns: StartHandler
The start handler to handle the start of new ROS nodes on local or remote machines.

nameres()

source code 
Returns: NameResolution
The name resolution object translate the the name to the host or ROS master URI.

history()

source code 
Returns: History
The history of entered parameter.

is_local(hostname)

source code 

Test whether the given host name is the name of the local host or not.

Parameters:
  • hostname (str) - the name or IP of the host
Returns: bool
True if the hostname is local or None
Raises:
  • Exception - on errors while resolving host

get_ros_home()

source code 

Returns the ROS HOME depending on ROS distribution API.

Returns: str
ROS HOME path

masteruri_from_ros()

source code 

Returns the master URI depending on ROS distribution API.

Returns: str
ROS master URI

setTerminalName(name)

source code 

Change the terminal name.

Parameters:
  • name (str) - New name of the terminal

setProcessName(name)

source code 

Change the process name.

Parameters:
  • name (str) - New process name

Variables Details

PACKAGE_DIR

Value:
''.join([roslib.packages.get_dir_pkg(os.path.abspath(os.path.dirname(s\
ys.argv [0]))) [0], os.path.sep])

ROBOTS_DIR

Value:
''.join([PACKAGE_DIR, os.path.sep, 'images', os.path.sep])

HOSTS_CACHE

the cache directory to store the results of tests for local hosts.

See Also: is_local()

Value:
dict()