private static void ServiceCallHandler(rosapi.GetParamResponse message)
 {
     Console.WriteLine("ROS distro: " + message.value);
 }
        /*
         * private void ServiceCallHandler(rosapi.NodeDetailsResponse message)
         * {
         *  Debug.Log("--------------Node Details: ");
         *
         *  ROSNode n = new ROSNode(currentNode);
         *
         *  n.Subscribing = message.subscribing;
         *  n.Publishing = message.publishing;
         *  n.Service = message.services;
         *
         *
         *  n.ToString();
         *
         *  nodelist.AddLast(n);
         *
         *  Debug.Log("-------------Finished Detail: ");
         *
         *
         * }
         */

        private void ServiceCallHandler(rosapi.GetParamResponse message)
        {
            Debug.Log("Here comes the Ros Distro: ");
            Debug.Log("ROS distro: " + message.value);
        }
Exemplo n.º 3
0
        private void ReceiveRobotDescription(ServiceReceiver <rosapi.GetParamRequest, rosapi.GetParamResponse> serviceReceiver, rosapi.GetParamResponse serviceResponse)
        {
            string robotDescription = FormatTextFileContents(serviceResponse.value);

            if (robotDescription == "default")
            {
                return;
            }
            Thread importResourceFilesThread = new Thread(() => ImportResourceFiles(robotDescription));

            importResourceFilesThread.Start();

            Thread writeTextFileThread = new Thread(() => WriteTextFile((string)serviceReceiver.HandlerParameter, robotDescription));

            writeTextFileThread.Start();

            Status["robotDescriptionReceived"].Set();
        }
Exemplo n.º 4
0
 private void ServiceCallHandler(rosapi.GetParamResponse message)
 {
     OnServiceReceived.Set();
 }