Example #1
0
        private static void Main(string[] args)
        {
            Trace.Listeners.Add(new TextWriterTraceListener(Console.Out));
            ROS.Init(args, "Listener");
            var spinner = new AsyncSpinner();

            spinner.Start();
            NodeHandle node       = new NodeHandle();
            Subscriber Subscriber = node.Subscribe <std_msgs.String>("/chatter", 1, chatterCallback);

            ROS.WaitForShutdown();
        }