Ejemplo n.º 1
0
    private void SendInterfaceStateChangeToROS(ProgramItemMsg programItemMsg, UInt16 blockID)
    {
        InterfaceStateMsg msg = new InterfaceStateMsg("PROJECTED UI", interfaceStateMsg.GetSystemState(), interfaceStateMsg.GetTimestamp(),
                                                      interfaceStateMsg.GetProgramID(), blockID, programItemMsg, interfaceStateMsg.GetFlags(), interfaceStateMsg.GetEditEnabled(),
                                                      interfaceStateMsg.GetErrorSeverity(), interfaceStateMsg.GetErrorCode());

        ROSCommunicationManager.Instance.ros.Publish(InterfaceStatePublisher.GetMessageTopic(), msg);
    }