public class CommandLineLoader
extends java.lang.Object
NodeConfiguration
instances using a ROS command-line and
environment specification.Constructor and Description |
---|
CommandLineLoader(java.util.List<java.lang.String> argv)
Create new
CommandLineLoader with specified command-line arguments. |
CommandLineLoader(java.util.List<java.lang.String> argv,
java.util.Map<java.lang.String,java.lang.String> environment)
Create new
CommandLineLoader with specified command-line arguments
and environment variables. |
Modifier and Type | Method and Description |
---|---|
NodeConfiguration |
build()
Create NodeConfiguration according to ROS command-line and environment
specification.
|
java.util.List<java.lang.String> |
getNodeArguments() |
java.lang.String |
getNodeClassName() |
NodeMain |
loadClass(java.lang.String name) |
public CommandLineLoader(java.util.List<java.lang.String> argv)
CommandLineLoader
with specified command-line arguments.
Environment variables will be pulled from default System
environment variables.argv
- command-line argumentspublic CommandLineLoader(java.util.List<java.lang.String> argv, java.util.Map<java.lang.String,java.lang.String> environment)
CommandLineLoader
with specified command-line arguments
and environment variables.argv
- command-line argumentsenvironment
- environment variablespublic java.lang.String getNodeClassName()
public java.util.List<java.lang.String> getNodeArguments()
public NodeConfiguration build()
public NodeMain loadClass(java.lang.String name) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
name
- the name of the classNodeMain
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException