Ejemplo n.º 1
0
 protected sealed override void StartAgent(ROSBridgeWebSocketConnection rosConnection, string topicName, string messageType)
 {
     TopicName     = topicName;
     MessageType   = messageType;
     ROSConnection = rosConnection;
     ROSConnection.AddSubscriber(this);
 }
Ejemplo n.º 2
0
    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();
    }