public class NodeConfiguration
extends java.lang.Object
Node
s.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 Node s 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 copyNodeConfiguration
public 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
Node
public 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
Node
public 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 Node
public static NodeConfiguration newPrivate()
NodeConfiguration
for a Node
that is only
accessible on the local host.NodeConfiguration
for a private Node
public NameResolver getParentResolver()
NameResolver
for the Node
's parent namespacepublic NodeConfiguration setParentResolver(NameResolver resolver)
resolver
- the NameResolver
for the Node
's parent namespaceNodeConfiguration
public 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
withNodeConfiguration
public java.io.File getRosRoot()
public NodeConfiguration setRosRoot(java.io.File rosRoot)
rosRoot
- the location where the ROS core packages are installedNodeConfiguration
public 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
packagesNodeConfiguration
public NodeConfiguration setNodeName(GraphName nodeName)
nodeName
- the name of the Node
NodeConfiguration
public NodeConfiguration setNodeName(java.lang.String nodeName)
nodeName
- the name of the Node
NodeConfiguration
public NodeConfiguration setDefaultNodeName(GraphName nodeName)
Node
if the name has not already been set.nodeName
- the name of the Node
NodeConfiguration
public NodeConfiguration setDefaultNodeName(java.lang.String nodeName)
Node
if the name has not already been set.nodeName
- the name of the Node
NodeConfiguration
public org.ros.message.MessageSerializationFactory getMessageSerializationFactory()
MessageSerializationFactory
for the Node
public NodeConfiguration setMessageSerializationFactory(org.ros.message.MessageSerializationFactory messageSerializationFactory)
messageSerializationFactory
- the MessageSerializationFactory
for the Node
NodeConfiguration
public NodeConfiguration setTopicMessageFactory(org.ros.message.MessageFactory topicMessageFactory)
topicMessageFactory
- the MessageFactory
for the Node
NodeConfiguration
public org.ros.message.MessageFactory getTopicMessageFactory()
public NodeConfiguration setServiceRequestMessageFactory(org.ros.internal.message.service.ServiceRequestMessageFactory serviceRequestMessageFactory)
serviceRequestMessageFactory
- the ServiceRequestMessageFactory
for the Node
NodeConfiguration
public org.ros.message.MessageFactory getServiceRequestMessageFactory()
public NodeConfiguration setServiceResponseMessageFactory(org.ros.internal.message.service.ServiceResponseMessageFactory serviceResponseMessageFactory)
serviceResponseMessageFactory
- the ServiceResponseMessageFactory
for the Node
NodeConfiguration
public org.ros.message.MessageFactory getServiceResponseMessageFactory()
public NodeConfiguration setTopicDescriptionFactory(org.ros.internal.message.topic.TopicDescriptionFactory topicDescriptionFactory)
topicDescriptionFactory
- the TopicDescriptionFactory
for the Node
NodeConfiguration
public org.ros.internal.message.topic.TopicDescriptionFactory getTopicDescriptionFactory()
public NodeConfiguration setServiceDescriptionFactory(org.ros.internal.message.service.ServiceDescriptionFactory serviceDescriptionFactory)
serviceDescriptionFactory
- the ServiceDescriptionFactory
for the Node
NodeConfiguration
public 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
serverNodeConfiguration
public 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()
TimeProvider
public NodeConfiguration setTimeProvider(TimeProvider timeProvider)
timeProvider
- the TimeProvider
that Node
s will use