public void InitializeLimits(Urdf.Joint.Limit limit, HingeJoint joint)
        {
            LargeAngleLimitMin = (float)limit.lower * Mathf.Rad2Deg;
            LargeAngleLimitMax = (float)limit.upper * Mathf.Rad2Deg;

            _hingeJoint = joint;

            RecalculateJointLimits();
        }
 public void InitializeLimits(Urdf.Joint.Limit limit)
 {
     PositionLimitMax = (float)limit.upper;
     PositionLimitMin = (float)limit.lower;
 }
Example #3
0
 protected static SoftJointLimit GetLinearLimit(Joint.Limit limit)
 {
     return new SoftJointLimit { limit = (float)limit.upper };
 }