示例#1
0
        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));
        }
示例#2
0
 internal Subscriber(subscriber ros_subscriber, subscriber_callback1 <T> callback)
 {
     this.callback       = callback;
     this.ros_subscriber = ros_subscriber;
 }