Package org.ros.internal.node.server
Class SlaveServer
java.lang.Object
org.ros.internal.node.server.XmlRpcServer
org.ros.internal.node.server.SlaveServer
- Author:
- damonkohler@google.com (Damon Kohler)
-
Constructor Summary
ConstructorsConstructorDescriptionSlaveServer(GraphName nodeName, BindAddress tcpRosBindAddress, AdvertiseAddress tcpRosAdvertiseAddress, BindAddress xmlRpcBindAddress, AdvertiseAddress xmlRpcAdvertiseAddress, MasterClient master, TopicParticipantManager topicParticipantManager, ServiceManager serviceManager, ParameterManager parameterManager, ScheduledExecutorService executorService) -
Method Summary
Modifier and TypeMethodDescriptiongetBusInfo(String callerId) getBusStats(String callerId) intgetPid()intparamUpdate(GraphName parameterName, Object parameterValue) voidpublisherUpdate(String callerId, String topicName, Collection<URI> publisherUris) requestTopic(String topicName, Collection<String> protocols) voidshutdown()Shut the remote call server down.voidstart()Start the XML-RPC server.Methods inherited from class org.ros.internal.node.server.XmlRpcServer
awaitStart, awaitStart, getAddress, getAdvertiseAddress, getUri, start
-
Constructor Details
-
SlaveServer
public SlaveServer(GraphName nodeName, BindAddress tcpRosBindAddress, AdvertiseAddress tcpRosAdvertiseAddress, BindAddress xmlRpcBindAddress, AdvertiseAddress xmlRpcAdvertiseAddress, MasterClient master, TopicParticipantManager topicParticipantManager, ServiceManager serviceManager, ParameterManager parameterManager, ScheduledExecutorService executorService)
-
-
Method Details
-
getTcpRosAdvertiseAddress
-
start
public void start()Start the XML-RPC server. This start() routine requires that theTcpRosServeris initialized first so that the slave server returns correct information when topics are requested. -
shutdown
public void shutdown()Description copied from class:XmlRpcServerShut the remote call server down.- Overrides:
shutdownin classXmlRpcServer
-
getBusStats
-
getBusInfo
-
getMasterUri
-
getPid
public int getPid()- Overrides:
getPidin classXmlRpcServer- Returns:
- PID of this process if available, throws
UnsupportedOperationExceptionotherwise.
-
getSubscriptions
-
getPublications
-
paramUpdate
- Parameters:
parameterName-parameterValue-- Returns:
- the number of parameter subscribers that received the update
-
publisherUpdate
-
requestTopic
public ProtocolDescription requestTopic(String topicName, Collection<String> protocols) throws ServerException - Throws:
ServerException
-
toNodeIdentifier
- Returns:
- a
NodeIdentifierfor thisSlaveServer
-