Package rostest :: Module rostest_parent :: Class ROSTestLaunchParent

Class ROSTestLaunchParent

source code

                      object --+    
                               |    
roslaunch.parent.ROSLaunchParent --+
                                   |
                                  ROSTestLaunchParent

Instance Methods
 
__init__(self, config, roslaunch_files, port=0, reuse_master=False, clear=False)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
setUp(self)
initializes self.config and xmlrpc infrastructure
source code
 
tearDown(self) source code
 
launch(self)
perform launch of nodes, does not launch tests.
source code
 
run_test(self, test)
run the test, blocks until completion
source code

Inherited from roslaunch.parent.ROSLaunchParent: shutdown, spin, spin_once, start

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

Properties

Inherited from object: __class__

Method Details

__init__(self, config, roslaunch_files, port=0, reuse_master=False, clear=False)
(Constructor)

source code 

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

Parameters:
  • run_id - UUID of roslaunch session
  • roslaunch_files - list of launch configuration files to load
  • is_core, bool - if True, this launch is a roscore instance. This affects the error behavior if a master is already running (i.e. it fails).
  • process_listeners - (optional) list of process listeners to register with process monitor once launch is running
  • port - (optional) override master port number from what is specified in the master URI.
  • verbose - (optional) print verbose output
  • force_screen - (optional) force output of all nodes to screen
  • is_rostest, bool - if True, this launch is a rostest instance. This affects validation checks.
  • num_workers - If this is the core, the number of worker-threads to use.
  • timeout - If this is the core, the socket-timeout to use.
Overrides: object.__init__
(inherited documentation)

launch(self)

source code 

perform launch of nodes, does not launch tests. rostest_parent follows a different pattern of init/run than the normal roslaunch, which is why it does not reuse start()/spin()