Package org.ros.internal.loader
Class CommandLineLoader
java.lang.Object
org.ros.internal.loader.CommandLineLoader
Create
NodeConfiguration instances using a ROS command-line and
environment specification.- Author:
- kwc@willowgarage.com (Ken Conley), damonkohler@google.com (Damon Kohler)
-
Constructor Summary
ConstructorsConstructorDescriptionCommandLineLoader(List<String> argv) Create newCommandLineLoaderwith specified command-line arguments.Create newCommandLineLoaderwith specified command-line arguments and environment variables. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create NodeConfiguration according to ROS command-line and environment specification.
-
Constructor Details
-
CommandLineLoader
Create newCommandLineLoaderwith specified command-line arguments. Environment variables will be pulled from defaultSystemenvironment variables.- Parameters:
argv- command-line arguments
-
CommandLineLoader
Create newCommandLineLoaderwith specified command-line arguments and environment variables.- Parameters:
argv- command-line argumentsenvironment- environment variables
-
-
Method Details
-
getNodeClassName
-
getNodeArguments
-
build
Create NodeConfiguration according to ROS command-line and environment specification. -
loadClass
public NodeMain loadClass(String name) throws ClassNotFoundException, InstantiationException, IllegalAccessException - Parameters:
name- the name of the class- Returns:
- an instance of
NodeMain - Throws:
ClassNotFoundExceptionInstantiationExceptionIllegalAccessException
-