コード例 #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="swData">Storage model</param>
 /// <param name="path">Path in the storage model</param>
 /// <param name="ChildLink">Link that contains this attachment</param>
 public JointedAttachment(StorageModel swData, string path, Link ChildLink)
     : base(swData, path, ChildLink)
 {
     if (ParentLinkID != -1)
         Joint = ChildLink.GetJointFromLink(ChildLink.robot.GetLink(ParentLinkID));
     else if (ChildLink.UpperJoints.Length == 1)
         SetJoint(ChildLink.GetJointFromLink(ChildLink.UpperJoints[0].Parent));
 }