launchtree_context.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 from roslaunch.loader import LoaderContext
3 
4 class LaunchtreeContext(LoaderContext):
5 
6  def __init__(self, ns, filename, config=None, parent=None, params=None, env_args=None, resolve_dict=False, include_resolve_dict=None, arg_names=None):
7  super(LaunchtreeContext, self).__init__(ns, filename, parent, params, env_args, resolve_dict, include_resolve_dict, arg_names)
8  self._config = config
9 
10  def add_arg(self, name, default=None, value=None, doc=None):
11  result = super(LaunchtreeContext, self).add_arg(name, default, value, doc)
12  if self._config is not None:
13  self._config.add_arg(name, default, value, doc)
14  return result
15 
16  def add_remap(self, remap):
17  result = super(LaunchtreeContext, self).add_remap(remap)
18  if self._config is not None:
19  self._config.add_remap(remap[0], remap[1])
20  return result
21 
22  def add_rosparam(self, command, filename, unique_name):
23  if self._config is not None:
24  self._config.add_rosparam(command, filename, unique_name)
25 
26  def child(self, ns):
27  result = super(LaunchtreeContext, self).child(ns)
28  return LaunchtreeContext(result.ns, result.filename, self._config, result.parent, result.params, result.env_args, result.resolve_dict, result.include_resolve_dict, result.arg_names)
def add_arg(self, name, default=None, value=None, doc=None)
def __init__(self, ns, filename, config=None, parent=None, params=None, env_args=None, resolve_dict=False, include_resolve_dict=None, arg_names=None)
def add_rosparam(self, command, filename, unique_name)


rqt_launchtree
Author(s): Philipp Schillinger
autogenerated on Mon Jun 10 2019 14:55:27