How is the sourceID Generated in the dwHealthSignal Structure?

Please provide the following info (tick the boxes after creating this topic):
Software Version
[*] DRIVE OS 6.0.10.0
DRIVE OS 6.0.8.1
DRIVE OS 6.0.6
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other

Target Operating System
[*] Linux
QNX
other

Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-300)
DRIVE AGX Orin Developer Kit (940-63710-0010-200)
DRIVE AGX Orin Developer Kit (940-63710-0010-100)
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
[*] DRIVE AGX Orin Developer Kit (not sure its number)
other

SDK Manager Version
[*] 2.1.0
other

Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
[*] native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other

Issue Description

The updateCurrentHealthSignal method of the CGF Node class involves the dwHealthSignal data type, which is defined as follows:

/**

  • @brief Basic health signal that describes the health status of a particular software element

  • @note each health signal is defined to be 1024 bytes
    **/
    typedef struct dwHealthSignal
    {
    /// timestamp at which the health status was last updated, filled by module
    dwTime_t timestamp;
    /// module id, automatically filled
    uint16_t sourceID;
    /// the number of errors in @a errorIds
    size_t count;
    /// module defined error
    uint32_t errorIDs[DW_MAX_ERROR_SIGNAL_ERRORS_COUNT];

    /// bytes used in the optional byte array
    size_t dataSize;
    /// optional byte array for additional information
    uint8_t data[DW_MAX_HEALTH_BYTEARRAY_SIZE];
    } dwHealthSignal;

I have a question regarding the sourceID field: How is the module ID generated and by whom?

Dear @jiangxiaoke ,
Are you referring to Compute Graph Framework SDK Reference: dw::framework::Node Class Reference method?

Yes, I am referring to the Compute Graph Framework SDK Reference: dw::framework::Node Class Reference method.