Пример #1
0
        static void Main(string[] args)
        {
            Ros.HostName = "localhost";
            Ros.MasterUri = new Uri("http://localhost:11311/");
            Ros.TopicTimeout = 10000;
            Ros.XmlRpcTimeout = 10000;

            var masterServer = new MasterServer(11311);

            var runner = new TestRunner() {TestCount = 500, PrintCount = 10};

            //            runner.Run(new NodeTest());
            //runner.Run(new PublisherTest());
            //runner.Run(new SubscriberTest());
            //runner.Run(new ServiceServerTest());
            //runner.Run(new ServiceProxyTest());
            runner.Run(new ParameterTest());

            masterServer.Dispose();
            Ros.Dispose();

            GC.Collect();
            Console.WriteLine("Memory={0}, Message=final", GC.GetTotalMemory(false));

            Console.WriteLine("Finished All Memory Leak Test.");
            Console.WriteLine("Press Any Key.");
            Console.ReadKey();
        }
Пример #2
0
        public void Initialize()
        {
            Ros.MasterUri = new Uri("http://localhost:11311/");
            Ros.HostName = "localhost";
            Ros.TopicTimeout = 3000;
            Ros.XmlRpcTimeout = 3000;

            _masterServer = new MasterServer(11311);
        }
Пример #3
0
        public void Initialize()
        {
            Ros.MasterUri = new Uri("http://localhost:11311/");
            Ros.HostName = "localhost";
            Ros.TopicTimeout = 1000;
            Ros.XmlRpcTimeout = 1000;

            _masterServer = new MasterServer(11311);

            _masterClient = new MasterClient(_masterServer.MasterUri);
            _parameterServerClient = new ParameterServerClient(_masterServer.MasterUri);
        }
Пример #4
0
        static void Main(string[] args)
        {
            int portNumber = 11311;

            var optionSet = new OptionSet()
            {
                {"p|port=", v => portNumber = int.Parse(v)}
            };

            optionSet.Parse(args);

            var masterServer = new MasterServer(portNumber);

            var rosout = new RosOut();
            rosout.Start();

            Console.WriteLine("ROS_MASTER_URI={0}", masterServer.MasterUri);
            Console.ReadKey();
        }