void Awake() { this.joint1Link = TurtleBot3Common.FindGameObjectFromChild(this.transform.root, JointType.Joint1); this.joint2Link = TurtleBot3Common.FindGameObjectFromChild(this.transform.root, JointType.Joint2); this.joint3Link = TurtleBot3Common.FindGameObjectFromChild(this.transform.root, JointType.Joint3); this.joint4Link = TurtleBot3Common.FindGameObjectFromChild(this.transform.root, JointType.Joint4); this.gripJointLink = TurtleBot3Common.FindGameObjectFromChild(this.transform.root, JointType.GripJoint); this.gripJointSubLink = TurtleBot3Common.FindGameObjectFromChild(this.transform.root, JointType.GripJointSub); }
void Awake() { this.joint1Link = TurtleBot3Common.FindGameObjectFromChild(this.transform.root, JointType.Joint1); this.joint2Link = TurtleBot3Common.FindGameObjectFromChild(this.transform.root, JointType.Joint2); this.joint3Link = TurtleBot3Common.FindGameObjectFromChild(this.transform.root, JointType.Joint3); this.joint4Link = TurtleBot3Common.FindGameObjectFromChild(this.transform.root, JointType.Joint4); this.gripJointLink = TurtleBot3Common.FindGameObjectFromChild(this.transform.root, JointType.GripJoint); this.gripJointSubLink = TurtleBot3Common.FindGameObjectFromChild(this.transform.root, JointType.GripJointSub); this.trajectoryInfoMap = new Dictionary <string, TrajectoryInfo>(); this.trajectoryInfoMap.Add(TurtleBot3Common.jointNameMap[JointType.Joint1], null); this.trajectoryInfoMap.Add(TurtleBot3Common.jointNameMap[JointType.Joint2], null); this.trajectoryInfoMap.Add(TurtleBot3Common.jointNameMap[JointType.Joint3], null); this.trajectoryInfoMap.Add(TurtleBot3Common.jointNameMap[JointType.Joint4], null); this.trajectoryInfoMap.Add(TurtleBot3Common.jointNameMap[JointType.GripJoint], null); this.trajectoryInfoMap.Add(TurtleBot3Common.jointNameMap[JointType.GripJointSub], null); this.trajectoryKeyList = new List <string>(trajectoryInfoMap.Keys); }
void Awake() { this.baseFootprint = TurtleBot3Common.FindGameObjectFromChild(this.transform.root, TurtleBot3LinkInfo.LinkType.BaseFootprint); this.baseRigidbody = this.baseFootprint.GetComponent <Rigidbody>(); }