コード例 #1
0
        void Awake()
        {
            this.armLiftLink       = HSRCommon.FindGameObjectFromChild(this.transform.root, HSRCommon.ArmLiftLinkName);
            this.armFlexLink       = HSRCommon.FindGameObjectFromChild(this.transform.root, HSRCommon.ArmFlexLinkName);
            this.armRollLink       = HSRCommon.FindGameObjectFromChild(this.transform.root, HSRCommon.ArmRollLinkName);
            this.wristFlexLink     = HSRCommon.FindGameObjectFromChild(this.transform.root, HSRCommon.WristFlexLinkName);
            this.wristRollLink     = HSRCommon.FindGameObjectFromChild(this.transform.root, HSRCommon.WristRollLinkName);
            this.headPanLink       = HSRCommon.FindGameObjectFromChild(this.transform.root, HSRCommon.HeadPanLinkName);
            this.headTiltLink      = HSRCommon.FindGameObjectFromChild(this.transform.root, HSRCommon.HeadTiltLinkName);
            this.torsoLiftLink     = HSRCommon.FindGameObjectFromChild(this.transform.root, HSRCommon.TorsoLiftLinkName);
            this.handLProximalLink = HSRCommon.FindGameObjectFromChild(this.transform.root, HSRCommon.HandLProximalLinkName);
            this.handRProximalLink = HSRCommon.FindGameObjectFromChild(this.transform.root, HSRCommon.HandRProximalLinkName);

            this.armLiftLinkIniPosZ   = this.armLiftLink.localPosition.z;
            this.torsoLiftLinkIniPosZ = this.torsoLiftLink.localPosition.z;

            this.trajectoryInfoMap = new Dictionary <string, TrajectoryInfo>();
            this.trajectoryInfoMap.Add(HSRCommon.ArmLiftJointName, null);
            this.trajectoryInfoMap.Add(HSRCommon.ArmFlexJointName, null);
            this.trajectoryInfoMap.Add(HSRCommon.ArmRollJointName, null);
            this.trajectoryInfoMap.Add(HSRCommon.WristFlexJointName, null);
            this.trajectoryInfoMap.Add(HSRCommon.WristRollJointName, null);
            this.trajectoryInfoMap.Add(HSRCommon.HeadPanJointName, null);
            this.trajectoryInfoMap.Add(HSRCommon.HeadTiltJointName, null);
            this.trajectoryInfoMap.Add(HSRCommon.HandLProximalJointName, null);
            this.trajectoryInfoMap.Add(HSRCommon.HandRProximalJointName, null);
        }
コード例 #2
0
        void Awake()
        {
            this.armLiftLink   = HSRCommon.FindGameObjectFromChild(this.transform.root, HSRCommon.ArmLiftLinkName);
            this.armFlexLink   = HSRCommon.FindGameObjectFromChild(this.transform.root, HSRCommon.ArmFlexLinkName);
            this.armRollLink   = HSRCommon.FindGameObjectFromChild(this.transform.root, HSRCommon.ArmRollLinkName);
            this.wristFlexLink = HSRCommon.FindGameObjectFromChild(this.transform.root, HSRCommon.WristFlexLinkName);
            this.wristRollLink = HSRCommon.FindGameObjectFromChild(this.transform.root, HSRCommon.WristRollLinkName);
            this.headPanLink   = HSRCommon.FindGameObjectFromChild(this.transform.root, HSRCommon.HeadPanLinkName);
            this.headTiltLink  = HSRCommon.FindGameObjectFromChild(this.transform.root, HSRCommon.HeadTiltLinkName);

            this.armLiftLinkIniPosZ = this.armLiftLink.localPosition.z;
        }
コード例 #3
0
 void Awake()
 {
     this.baseFootPrint = HSRCommon.FindGameObjectFromChild(this.transform.root, HSRCommon.BaseFootPrintName);
 }