This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AWR2944: The increased number of the tracker in the function gtrack_moduleAllocate

Part Number: AWR2944

Hi,

  In the function gtrack_moduleAllocate,the increased number of tracker  is less than or equal to 1,is that right? That is to say, each time that the function is excuted,the max number of the increased tracker is 1.

Thanks,

BR

Rata

  • Hi Rata,

    I don't think so, gtrack_moduleAllocate is called once in the gtrack_step call, and so it is responsible for allocating tracks for all unallocated points.

    Regards,

    Aayush

  • Hi Aayush,

       In the function gtrack_moduleAllocate,the latter part of the code is as belows:

    void gtrack_moduleAllocate(GtrackModuleInstance *inst, GTRACK_measurementPoint *point, uint16_t num)
    {
        ...

        /* Allocation */
        if(set.isValid)
        {
          ...
                if(set.totalSNR > snrThreshold)//
                {
                    /* Associate points with new uid  */
                    for(k=0; k < set.numAllocatedPoints; k++)
                        inst->bestIndex[inst->allocIndexStored[k]] = (uint8_t)tElemFree->data;
                    /* Allocate new tracker */
                    inst->targetNumTotal ++;
                    inst->targetNumCurrent ++;
                    tElemFree = gtrack_listDequeue(&inst->freeList);
                    gtrack_unitStart(inst->hTrack[tElemFree->data], inst->heartBeat, inst->targetNumTotal, &set.mCenter.vector, set.numAllocatedPoints, isBehind);
                    gtrack_listEnqueue(&inst->activeList, tElemFree);
                }
            }
        }
    }

    In this function, gtrack_unitStart is called at most once.Then the max number of the increased tracker is 1, is there anything wrong with my understanding?

    BR

    Rata

  • Hi Rata,

    Let me discuss this with the team and get back to you late next week.

    Regards,

    Aayush

  • Hi Rata,

    I confirmed this with the team. Your understanding is correct, the number of allocated track is incremented by 1 at each time instance. For instance, if there are 30 objects that are trackable, it will take 30 frames for the algorithm to allocate a track for all 30 objects.

    Regards,

    Aayush