private void ClusteringParamsGetHandler(rosapi.GetParamResponse res)
 {
     Debug.Log("clustering");
     Debug.Log(res.value);
     parameters       = JsonSerializer.Deserialize <ClusteringParameters>(res.value);
     ClusterTolerance = parameters.cluster_tolerance;
     MinClusterSize   = parameters.min_cluster_size;
 }
 private static void ServiceCallHandler(rosapi.GetParamResponse message)
 {
     Console.WriteLine("ROS distro: " + message.value);
 }
        private void ReceiveRobotDescription(ServiceReceiver <rosapi.GetParamRequest, rosapi.GetParamResponse> serviceReceiver, rosapi.GetParamResponse serviceResponse)
        {
            string robotDescription = FormatTextFileContents(serviceResponse.value);

            Thread importResourceFilesThread = new Thread(() => ImportResourceFiles(robotDescription));

            importResourceFilesThread.Start();

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

            writeTextFileThread.Start();

            Status["robotDescriptionReceived"].Set();
        }
 private void ServiceCallHandler(rosapi.GetParamResponse message)
 {
     OnServiceReceived.Set();
 }
Beispiel #5
0
 private void RosAllParamHandler(rosapi.GetParamResponse rosparamResponse)
 {
     Debug.Log(rosparamResponse.value);
 }