public Subscriber <T> subscribe <T>(string topic, uint queue_size, Action <T> callback) { var cb1 = new subscriber_callback1 <T>(callback); var ros_sub = subscribe(topic, queue_size, cb1); return(new Subscriber <T>(ros_sub, cb1)); }
internal Subscriber(subscriber ros_subscriber, subscriber_callback1 <T> callback) { this.callback = callback; this.ros_subscriber = ros_subscriber; }