void Awake() { this.sensorPivot = this.sensorLink.Find("LDS_sensor_pivot"); this.synchronizer = this.GetComponent <TurtleBot3PubSynchronizer>(); this.publishSequenceNumber = this.synchronizer.GetAssignedSequenceNumber(); this.isUsingThread = this.synchronizer.useThread; }
void Awake() { List <UnityEngine.Transform> localLinkList = TurtleBot3Common.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.synchronizer = this.GetComponent <TurtleBot3PubSynchronizer>(); this.publishSequenceNumber = this.synchronizer.GetAssignedSequenceNumber(); this.isUsingThread = this.synchronizer.useThread; } }
void Awake() { this.synchronizer = this.GetComponent <TurtleBot3PubSynchronizer>(); this.publishSequenceNumber = this.synchronizer.GetAssignedSequenceNumber(); }