Exemple #1
0
 void OnEnable()
 {
     if (_instance == null)
     {
         _instance = this;
     }
 }
 internal RosTopicState(string topic, string rosMessageName, ROSConnection connection, ROSConnection.InternalAPI connectionInternal, MessageSubtopic subtopic = MessageSubtopic.Default)
 {
     m_Topic              = topic;
     m_Subtopic           = subtopic;
     m_RosMessageName     = rosMessageName;
     m_Connection         = connection;
     m_ConnectionInternal = connectionInternal;
 }
Exemple #3
0
 internal RosTopicState(string topic, string rosMessageName, ROSConnection connection, ROSConnection.InternalAPI connectionInternal, bool isService, MessageSubtopic subtopic = MessageSubtopic.Default)
 {
     m_Topic              = topic;
     m_Subtopic           = subtopic;
     m_RosMessageName     = rosMessageName;
     m_Connection         = connection;
     m_ConnectionInternal = connectionInternal;
     if (isService && subtopic == MessageSubtopic.Default)
     {
         m_ServiceResponseTopic = new RosTopicState(topic, rosMessageName, m_Connection, m_ConnectionInternal, isService, MessageSubtopic.Response);
     }
 }