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
  • show_summary - (optional) whether to show a summary or not
  • force_screen - (optional) force output of all nodes to screen
  • force_log - (optional) force output of all nodes to log
  • 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.
  • master_logger_level - Specify roscore's rosmaster.master logger level, use default if it is False.
  • force_required - (optional) whether to make all nodes required
  • sigint_timeout - The SIGINT timeout used when killing nodes (in seconds).
  • sigterm_timeout - The SIGTERM timeout used when killing nodes if SIGINT does not stop the node (in seconds).
Raises:
  • RLException - If sigint_timeout or sigterm_timeout are nonpositive.
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()