Class DefaultTopicParticipant

java.lang.Object
org.ros.internal.node.topic.DefaultTopicParticipant
All Implemented Interfaces:
TopicParticipant
Direct Known Subclasses:
DefaultPublisher, DefaultSubscriber

public abstract class DefaultTopicParticipant extends Object implements TopicParticipant
Base definition of a TopicSystemState.
Author:
damonkohler@google.com (Damon Kohler)
  • Constructor Details

    • DefaultTopicParticipant

      public DefaultTopicParticipant(TopicDeclaration topicDeclaration)
  • Method Details

    • getTopicDeclaration

      public TopicDeclaration getTopicDeclaration()
      Returns:
      the TopicDeclaration of this TopicParticipant
    • getTopicDeclarationAsList

      public List<String> getTopicDeclarationAsList()
    • getTopicName

      public GraphName getTopicName()
      Specified by:
      getTopicName in interface TopicParticipant
      Returns:
      the name of the subscribed topic
    • getTopicMessageType

      public String getTopicMessageType()
      Specified by:
      getTopicMessageType in interface TopicParticipant
      Returns:
      the message type (e.g. "std_msgs/String")
    • getTopicDeclarationHeader

      public ConnectionHeader getTopicDeclarationHeader()
      Returns:
      the connection header for the TopicSystemState
    • signalOnMasterRegistrationSuccess

      public abstract void signalOnMasterRegistrationSuccess()
      Signal that the TopicSystemState successfully registered with the master.
    • signalOnMasterRegistrationFailure

      public abstract void signalOnMasterRegistrationFailure()
      Signal that the TopicSystemState failed to register with the master.
    • signalOnMasterUnregistrationSuccess

      public abstract void signalOnMasterUnregistrationSuccess()
      Signal that the TopicSystemState successfully unregistered with the master.
    • signalOnMasterUnregistrationFailure

      public abstract void signalOnMasterUnregistrationFailure()
      Signal that the TopicSystemState failed to unregister with the master.