protected sealed override void StartAgent(ROSBridgeWebSocketConnection rosConnection, string topicName, string messageType) { TopicName = topicName; MessageType = messageType; ROSConnection = rosConnection; ROSConnection.AddSubscriber(this); }
void Start() { // Where the rosbridge instance is running, could be localhost, or some external IP ros = new ROSBridgeLib.ROSBridgeWebSocketConnection("ws://" + IP, 9090); ros.AddSubscriber(typeof(TestSubscriber)); ros.Connect(); }