Package roslaunch :: Module remoteprocess :: Class SSHChildROSLaunchProcess
[frames] | no frames]

Class SSHChildROSLaunchProcess

source code

              object --+        
                       |        
            pmon.Process --+    
                           |    
server.ChildROSLaunchProcess --+
                               |
                              SSHChildROSLaunchProcess

Process wrapper for launching and monitoring a child roslaunch process over SSH

Instance Methods
 
__init__(self, run_id, name, server_uri, env, machine)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
start(self)
Start the remote process.
source code
ServerProxy
getapi(self)
Returns: ServerProxy to remote client XMLRPC server
source code
bool
is_alive(self)
Returns: True if the process is alive.
source code
 
stop(self, errors=None)
Terminate this process, including the SSH connection.
source code
 
__str__(self)
str(x) (Inherited from roslaunch.pmon.Process)
source code
 
get_exit_description(self) (Inherited from roslaunch.pmon.Process) source code
dict { str: val }
get_info(self)
Get all data about this process in dictionary form (Inherited from roslaunch.pmon.Process)
source code
 
set_uri(self, uri) (Inherited from roslaunch.server.ChildROSLaunchProcess) source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self, run_id, name, server_uri, env, machine)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

start(self)

source code 

Start the remote process. This will create an SSH connection to the remote host.

Overrides: pmon.Process.start

getapi(self)

source code 
Returns: ServerProxy
ServerProxy to remote client XMLRPC server

is_alive(self)

source code 
Returns: bool
True if the process is alive. is_alive needs to be called periodically as it drains the SSH buffer
Overrides: pmon.Process.is_alive

stop(self, errors=None)

source code 

Terminate this process, including the SSH connection.

Parameters:
  • errors - error messages. stop() will record messages into this list.
Overrides: pmon.Process.stop