public class NodeConfiguration
extends java.lang.Object
Nodes.| Modifier and Type | Field and Description |
|---|---|
static java.net.URI |
DEFAULT_MASTER_URI
The default master
URI. |
| Modifier and Type | Method and Description |
|---|---|
static NodeConfiguration |
copyOf(NodeConfiguration nodeConfiguration) |
java.net.URI |
getMasterUri() |
org.ros.message.MessageSerializationFactory |
getMessageSerializationFactory() |
GraphName |
getNodeName() |
NameResolver |
getParentResolver() |
java.util.List<java.io.File> |
getRosPackagePath()
These ordered paths tell the ROS system where to search for more ROS
packages.
|
java.io.File |
getRosRoot() |
org.ros.internal.message.service.ServiceDescriptionFactory |
getServiceDescriptionFactory() |
org.ros.message.MessageFactory |
getServiceRequestMessageFactory() |
org.ros.message.MessageFactory |
getServiceResponseMessageFactory() |
AdvertiseAddress |
getTcpRosAdvertiseAddress() |
AdvertiseAddressFactory |
getTcpRosAdvertiseAddressFactory() |
BindAddress |
getTcpRosBindAddress() |
TimeProvider |
getTimeProvider() |
org.ros.internal.message.topic.TopicDescriptionFactory |
getTopicDescriptionFactory() |
org.ros.message.MessageFactory |
getTopicMessageFactory() |
AdvertiseAddress |
getXmlRpcAdvertiseAddress() |
AdvertiseAddressFactory |
getXmlRpcAdvertiseAddressFactory() |
BindAddress |
getXmlRpcBindAddress() |
static NodeConfiguration |
newPrivate()
Creates a new
NodeConfiguration for a Node that is only
accessible on the local host. |
static NodeConfiguration |
newPrivate(java.net.URI masterUri)
Creates a new
NodeConfiguration for a Node that is only
accessible on the local host. |
static NodeConfiguration |
newPublic(java.lang.String host)
Creates a new
NodeConfiguration for a publicly accessible
Node. |
static NodeConfiguration |
newPublic(java.lang.String host,
java.net.URI masterUri)
Creates a new
NodeConfiguration for a publicly accessible
Node. |
NodeConfiguration |
setDefaultNodeName(GraphName nodeName)
Sets the name of the
Node if the name has not already been set. |
NodeConfiguration |
setDefaultNodeName(java.lang.String nodeName)
Sets the name of the
Node if the name has not already been set. |
NodeConfiguration |
setMasterUri(java.net.URI masterUri) |
NodeConfiguration |
setMessageSerializationFactory(org.ros.message.MessageSerializationFactory messageSerializationFactory) |
NodeConfiguration |
setNodeName(GraphName nodeName) |
NodeConfiguration |
setNodeName(java.lang.String nodeName) |
NodeConfiguration |
setParentResolver(NameResolver resolver) |
NodeConfiguration |
setRosPackagePath(java.util.List<java.io.File> rosPackagePath)
These ordered paths tell the ROS system where to search for more ROS
packages.
|
NodeConfiguration |
setRosRoot(java.io.File rosRoot) |
NodeConfiguration |
setServiceDescriptionFactory(org.ros.internal.message.service.ServiceDescriptionFactory serviceDescriptionFactory) |
NodeConfiguration |
setServiceRequestMessageFactory(org.ros.internal.message.service.ServiceRequestMessageFactory serviceRequestMessageFactory) |
NodeConfiguration |
setServiceResponseMessageFactory(org.ros.internal.message.service.ServiceResponseMessageFactory serviceResponseMessageFactory) |
NodeConfiguration |
setTcpRosAdvertiseAddressFactory(AdvertiseAddressFactory tcpRosAdvertiseAddressFactory) |
NodeConfiguration |
setTcpRosBindAddress(BindAddress tcpRosBindAddress) |
NodeConfiguration |
setTimeProvider(TimeProvider timeProvider)
Sets the
TimeProvider that Nodes will use. |
NodeConfiguration |
setTopicDescriptionFactory(org.ros.internal.message.topic.TopicDescriptionFactory topicDescriptionFactory) |
NodeConfiguration |
setTopicMessageFactory(org.ros.message.MessageFactory topicMessageFactory) |
NodeConfiguration |
setXmlRpcAdvertiseAddressFactory(AdvertiseAddressFactory xmlRpcAdvertiseAddressFactory) |
NodeConfiguration |
setXmlRpcBindAddress(BindAddress xmlRpcBindAddress) |
public static final java.net.URI DEFAULT_MASTER_URI
URI.public static NodeConfiguration copyOf(NodeConfiguration nodeConfiguration)
nodeConfiguration - the NodeConfiguration to copyNodeConfigurationpublic static NodeConfiguration newPublic(java.lang.String host, java.net.URI masterUri)
NodeConfiguration for a publicly accessible
Node.host - the host that the Node will run onmasterUri - the URI for the master that the Node will register
withNodeConfiguration for a publicly accessible
Nodepublic static NodeConfiguration newPublic(java.lang.String host)
NodeConfiguration for a publicly accessible
Node.host - the host that the Node will run onNodeConfiguration for a publicly accessible
Nodepublic static NodeConfiguration newPrivate(java.net.URI masterUri)
NodeConfiguration for a Node that is only
accessible on the local host.masterUri - the URI for the master that the Node will register
withNodeConfiguration for a private Nodepublic static NodeConfiguration newPrivate()
NodeConfiguration for a Node that is only
accessible on the local host.NodeConfiguration for a private Nodepublic NameResolver getParentResolver()
NameResolver for the Node's parent namespacepublic NodeConfiguration setParentResolver(NameResolver resolver)
resolver - the NameResolver for the Node's parent namespaceNodeConfigurationpublic java.net.URI getMasterUri()
URI of the master that the Node will register
withpublic NodeConfiguration setMasterUri(java.net.URI masterUri)
masterUri - the URI of the master that the Node will register
withNodeConfigurationpublic java.io.File getRosRoot()
public NodeConfiguration setRosRoot(java.io.File rosRoot)
rosRoot - the location where the ROS core packages are installedNodeConfigurationpublic java.util.List<java.io.File> getRosPackagePath()
List first.List of paths where the system will look for ROS
packagespublic NodeConfiguration setRosPackagePath(java.util.List<java.io.File> rosPackagePath)
List first.rosPackagePath - the List of paths where the system will look for ROS
packagesNodeConfigurationpublic NodeConfiguration setNodeName(GraphName nodeName)
nodeName - the name of the NodeNodeConfigurationpublic NodeConfiguration setNodeName(java.lang.String nodeName)
nodeName - the name of the NodeNodeConfigurationpublic NodeConfiguration setDefaultNodeName(GraphName nodeName)
Node if the name has not already been set.nodeName - the name of the NodeNodeConfigurationpublic NodeConfiguration setDefaultNodeName(java.lang.String nodeName)
Node if the name has not already been set.nodeName - the name of the NodeNodeConfigurationpublic org.ros.message.MessageSerializationFactory getMessageSerializationFactory()
MessageSerializationFactory for the Nodepublic NodeConfiguration setMessageSerializationFactory(org.ros.message.MessageSerializationFactory messageSerializationFactory)
messageSerializationFactory - the MessageSerializationFactory for the NodeNodeConfigurationpublic NodeConfiguration setTopicMessageFactory(org.ros.message.MessageFactory topicMessageFactory)
topicMessageFactory - the MessageFactory for the NodeNodeConfigurationpublic org.ros.message.MessageFactory getTopicMessageFactory()
public NodeConfiguration setServiceRequestMessageFactory(org.ros.internal.message.service.ServiceRequestMessageFactory serviceRequestMessageFactory)
serviceRequestMessageFactory - the ServiceRequestMessageFactory for the NodeNodeConfigurationpublic org.ros.message.MessageFactory getServiceRequestMessageFactory()
public NodeConfiguration setServiceResponseMessageFactory(org.ros.internal.message.service.ServiceResponseMessageFactory serviceResponseMessageFactory)
serviceResponseMessageFactory - the ServiceResponseMessageFactory for the NodeNodeConfigurationpublic org.ros.message.MessageFactory getServiceResponseMessageFactory()
public NodeConfiguration setTopicDescriptionFactory(org.ros.internal.message.topic.TopicDescriptionFactory topicDescriptionFactory)
topicDescriptionFactory - the TopicDescriptionFactory for the NodeNodeConfigurationpublic org.ros.internal.message.topic.TopicDescriptionFactory getTopicDescriptionFactory()
public NodeConfiguration setServiceDescriptionFactory(org.ros.internal.message.service.ServiceDescriptionFactory serviceDescriptionFactory)
serviceDescriptionFactory - the ServiceDescriptionFactory for the NodeNodeConfigurationpublic org.ros.internal.message.service.ServiceDescriptionFactory getServiceDescriptionFactory()
public BindAddress getTcpRosBindAddress()
BindAddress for the Node's TCPROS serverpublic NodeConfiguration setTcpRosBindAddress(BindAddress tcpRosBindAddress)
tcpRosBindAddress - the BindAddress for the Node's TCPROS serverpublic AdvertiseAddressFactory getTcpRosAdvertiseAddressFactory()
AdvertiseAddressFactory for the Node's TCPROS
serverpublic NodeConfiguration setTcpRosAdvertiseAddressFactory(AdvertiseAddressFactory tcpRosAdvertiseAddressFactory)
tcpRosAdvertiseAddressFactory - the AdvertiseAddressFactory for the Node's TCPROS
serverNodeConfigurationpublic AdvertiseAddress getTcpRosAdvertiseAddress()
AdvertiseAddress for the Node's TCPROS serverpublic BindAddress getXmlRpcBindAddress()
BindAddress for the Node's XML-RPC serverpublic NodeConfiguration setXmlRpcBindAddress(BindAddress xmlRpcBindAddress)
xmlRpcBindAddress - the BindAddress for the Node's XML-RPC serverpublic AdvertiseAddress getXmlRpcAdvertiseAddress()
AdvertiseAddress for the Node's XML-RPC serverpublic AdvertiseAddressFactory getXmlRpcAdvertiseAddressFactory()
AdvertiseAddressFactory for the Node's XML-RPC
serverpublic NodeConfiguration setXmlRpcAdvertiseAddressFactory(AdvertiseAddressFactory xmlRpcAdvertiseAddressFactory)
xmlRpcAdvertiseAddressFactory - the AdvertiseAddressFactory for the Node's XML-RPC
serverpublic TimeProvider getTimeProvider()
TimeProviderpublic NodeConfiguration setTimeProvider(TimeProvider timeProvider)
timeProvider - the TimeProvider that Nodes will use