protected virtual void Awake() { this.header = new Header(0, new SIGVerse.RosBridge.msg_helpers.Time(0, 0), this.sensorLink.name); this.InitializeVariables(); this.synchronizer = this.GetComponent <RobotPubSynchronizer>(); this.publishSequenceNumber = this.synchronizer.GetAssignedSequenceNumber(); this.isUsingThread = this.synchronizer.useThread; }
protected List <UnityEngine.Transform> linkList; // link list of the robot protected virtual void Awake() { this.InitializeVariables(); foreach (UnityEngine.Transform link in this.linkList) { if (link.name == this.baseFootprintName) { TransformStamped localTransformStamped = new TransformStamped(); localTransformStamped.header.frame_id = this.odomName; localTransformStamped.child_frame_id = link.name; UnityEngine.Transform baseFootprintRigidbody = SIGVerseUtils.FindTransformFromChild(this.transform.root, this.baseFootprintRigidbodyName); TfInfo localTfInfo = new TfInfo(baseFootprintRigidbody, localTransformStamped); this.localTfInfoList.Add(localTfInfo); } else { TransformStamped localTransformStamped = new TransformStamped(); localTransformStamped.header.frame_id = link.parent.name; localTransformStamped.child_frame_id = link.name; TfInfo localTfInfo = new TfInfo(link, localTransformStamped); this.localTfInfoList.Add(localTfInfo); } } this.synchronizer = this.GetComponent <RobotPubSynchronizer>(); this.publishSequenceNumber = this.synchronizer.GetAssignedSequenceNumber(); this.isUsingThread = this.synchronizer.useThread; }
protected virtual void Awake() { this.synchronizer = this.GetComponent <RobotPubSynchronizer>(); this.publishSequenceNumber = this.synchronizer.GetAssignedSequenceNumber(); }