Class SlaveXmlRpcEndpointImpl
- All Implemented Interfaces:
SlaveXmlRpcEndpoint,XmlRpcEndpoint
- Author:
- damonkohler@google.com (Damon Kohler)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBusInfo(String callerId) Retrieve transport/topic connection information.getBusStats(String callerId) Retrieve transport/topic statistics.getMasterUri(String callerId) getPublications(String callerId) Retrieve a list of topics that this node publishes.getSubscriptions(String callerId) paramUpdate(String callerId, String key, boolean value) Callback from master with updated value of subscribed parameter.paramUpdate(String callerId, String key, byte value) paramUpdate(String callerId, String key, char value) paramUpdate(String callerId, String key, double value) paramUpdate(String callerId, String key, int value) paramUpdate(String callerId, String key, short value) paramUpdate(String callerId, String key, String value) paramUpdate(String callerId, String key, List<?> value) paramUpdate(String callerId, String key, Map<?, ?> value) paramUpdate(String callerId, String key, Vector<?> value) publisherUpdate(String callerId, String topicName, Object[] publishers) requestTopic(String callerId, String topic, Object[] protocols) Publisher node API method called by a subscriber node.
-
Constructor Details
-
SlaveXmlRpcEndpointImpl
-
-
Method Details
-
getBusStats
Description copied from interface:SlaveXmlRpcEndpointRetrieve transport/topic statistics.- Specified by:
getBusStatsin interfaceSlaveXmlRpcEndpoint- Parameters:
callerId- ROS caller ID.- Returns:
- stats in the form of
[publishStats, subscribeStats, serviceStats]where
publishStats: [[topicName, messageDataSent, pubConnectionData]...]
subscribeStats: [[topicName, subConnectionData]...]
serviceStats: (proposed) [numRequests, bytesReceived, bytesSent]
pubConnectionData: [connectionId, bytesSent, numSent, connected]
subConnectionData: [connectionId, bytesReceived, dropEstimate, connected]
dropEstimate: -1 if no estimate.
-
getBusInfo
Description copied from interface:SlaveXmlRpcEndpointRetrieve transport/topic connection information.- Specified by:
getBusInfoin interfaceSlaveXmlRpcEndpoint- Parameters:
callerId- ROS caller ID.- Returns:
- busInfo in the form of:
[[connectionId1, destinationId1, direction1, transport1, topic1, connected1]... ]connectionId is defined by the node and is opaque. destinationId is the XMLRPC URI of the destination.
direction is one of 'i', 'o', or 'b' (in, out, both).
transport is the transport type (e.g. 'TCPROS'). topic is the topic name.
connected1 indicates connection status. Note that this field is only provided by slaves written in Python at the moment (cf. rospy/masterslave.py in _TopicImpl.get_stats_info() vs. roscpp/publication.cpp in Publication::getInfo()).
-
getMasterUri
- Specified by:
getMasterUriin interfaceSlaveXmlRpcEndpoint
-
shutdown
- Specified by:
shutdownin interfaceSlaveXmlRpcEndpoint
-
getPid
- Specified by:
getPidin interfaceSlaveXmlRpcEndpoint
-
getSubscriptions
- Specified by:
getSubscriptionsin interfaceSlaveXmlRpcEndpoint
-
getPublications
Description copied from interface:SlaveXmlRpcEndpointRetrieve a list of topics that this node publishes.- Specified by:
getPublicationsin interfaceSlaveXmlRpcEndpoint- Parameters:
callerId- ROS caller ID.- Returns:
- topicList is a list of topics published by this node and is of the form [ [topic1, topicType1]...[topicN, topicTypeN]]]
-
paramUpdate
Description copied from interface:SlaveXmlRpcEndpointCallback from master with updated value of subscribed parameter.- Specified by:
paramUpdatein interfaceSlaveXmlRpcEndpoint- Parameters:
callerId- ROS caller ID.key- parameter name, globally resolvedvalue- new parameter value- Returns:
- ignore
-
paramUpdate
- Specified by:
paramUpdatein interfaceSlaveXmlRpcEndpoint
-
paramUpdate
- Specified by:
paramUpdatein interfaceSlaveXmlRpcEndpoint
-
paramUpdate
- Specified by:
paramUpdatein interfaceSlaveXmlRpcEndpoint
-
paramUpdate
- Specified by:
paramUpdatein interfaceSlaveXmlRpcEndpoint
-
paramUpdate
- Specified by:
paramUpdatein interfaceSlaveXmlRpcEndpoint
-
paramUpdate
- Specified by:
paramUpdatein interfaceSlaveXmlRpcEndpoint
-
paramUpdate
- Specified by:
paramUpdatein interfaceSlaveXmlRpcEndpoint
-
paramUpdate
- Specified by:
paramUpdatein interfaceSlaveXmlRpcEndpoint
-
paramUpdate
- Specified by:
paramUpdatein interfaceSlaveXmlRpcEndpoint
-
publisherUpdate
- Specified by:
publisherUpdatein interfaceSlaveXmlRpcEndpoint
-
requestTopic
Description copied from interface:SlaveXmlRpcEndpointPublisher node API method called by a subscriber node. This requests that source allocate a channel for communication. Subscriber provides a list of desired protocols for communication. Publisher returns the selected protocol along with any additional params required for establishing connection. For example, for a TCP/IP-based connection, the source node may return a port number of TCP/IP server.- Specified by:
requestTopicin interfaceSlaveXmlRpcEndpoint- Parameters:
callerId- ROS caller IDtopic- topic nameprotocols- list of desired protocols for communication in order of preference- Returns:
- protocolParams or empty list if there are no compatible protocols
-