Package org.ros.internal.node.topic
Class DefaultTopicParticipant
java.lang.Object
org.ros.internal.node.topic.DefaultTopicParticipant
- All Implemented Interfaces:
TopicParticipant
- Direct Known Subclasses:
DefaultPublisher,DefaultSubscriber
Base definition of a
TopicSystemState.- Author:
- damonkohler@google.com (Damon Kohler)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidSignal that theTopicSystemStatefailed to register with the master.abstract voidSignal that theTopicSystemStatesuccessfully registered with the master.abstract voidSignal that theTopicSystemStatefailed to unregister with the master.abstract voidSignal that theTopicSystemStatesuccessfully unregistered with the master.
-
Constructor Details
-
DefaultTopicParticipant
-
-
Method Details
-
getTopicDeclaration
- Returns:
- the
TopicDeclarationof thisTopicParticipant
-
getTopicDeclarationAsList
-
getTopicName
- Specified by:
getTopicNamein interfaceTopicParticipant- Returns:
- the name of the subscribed topic
-
getTopicMessageType
- Specified by:
getTopicMessageTypein interfaceTopicParticipant- Returns:
- the message type (e.g. "std_msgs/String")
-
getTopicDeclarationHeader
- Returns:
- the connection header for the
TopicSystemState
-
signalOnMasterRegistrationSuccess
public abstract void signalOnMasterRegistrationSuccess()Signal that theTopicSystemStatesuccessfully registered with the master. -
signalOnMasterRegistrationFailure
public abstract void signalOnMasterRegistrationFailure()Signal that theTopicSystemStatefailed to register with the master. -
signalOnMasterUnregistrationSuccess
public abstract void signalOnMasterUnregistrationSuccess()Signal that theTopicSystemStatesuccessfully unregistered with the master. -
signalOnMasterUnregistrationFailure
public abstract void signalOnMasterUnregistrationFailure()Signal that theTopicSystemStatefailed to unregister with the master.
-