Example #1
0
        void Awake()
        {
            List <UnityEngine.Transform> localLinkList = HSRCommon.GetLinksInChildren(this.transform.root);

            foreach (UnityEngine.Transform localLink in localLinkList)
            {
                TransformStamped localTransformStamped = new TransformStamped();

                localTransformStamped.header.frame_id = localLink.parent.name;
                localTransformStamped.child_frame_id  = localLink.name;

                TfInfo localTfInfo = new TfInfo(localLink, localTransformStamped);

                this.localTfInfoList.Add(localTfInfo);
            }

            this.publishSequenceNumber = HSRPubSynchronizer.GetAssignedSequenceNumber();
        }
 void Awake()
 {
     this.publishSequenceNumber = HSRPubSynchronizer.GetAssignedSequenceNumber();
 }