__init__(self,
package,
node_type,
name=None,
namespace=' / ' ,
machine_name=None,
args='
' ,
respawn=False,
remap_args=None,
env_args=None,
output=None,
cwd=None,
launch_prefix=None,
required=False,
filename=' <unknown> ' )
(Constructor)
| source code
|
x.__init__(...) initializes x; see x.__class__.__doc__ for
signature
- Parameters:
package (str) - node package name
node_type (str) - node type
name (str) - node name
namespace (str) - namespace for node
machine_name (str) - name of machine to run node on
args (str) - argument string to pass to node executable
respawn (bool) - if True, respawn node if it dies
remap_args ([(str, str)]:) - list of [(from, to)] remapping arguments
env_args ([(str, str)]) - list of [(key, value)] of additional environment vars to set for
node
output (str) - where to log output to, either Node, 'screen' or 'log'
cwd (str) - current working directory of node, either 'node', 'ROS_HOME' or
'ros-root'. Default: ROS_HOME
launch_prefix (str) - launch command/arguments to prepend to node executable arguments
required (bool) - node is required to stay running (launch fails if node dies)
filename (str) - name of file Node was parsed from
- Raises:
ValueError - if parameters do not validate
- Overrides:
object.__init__
|