Esempio n. 1
0
 public Segment(Joint joint, Frame f_tip, RigidBodyInertia I) : this(kdlPINVOKE.new_Segment__SWIG_4(Joint.getCPtr(joint), Frame.getCPtr(f_tip), RigidBodyInertia.getCPtr(I)), true)
 {
     if (kdlPINVOKE.SWIGPendingException.Pending)
     {
         throw kdlPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 2
0
 public void setInertia(RigidBodyInertia Iin)
 {
     kdlPINVOKE.Segment_setInertia(swigCPtr, RigidBodyInertia.getCPtr(Iin));
     if (kdlPINVOKE.SWIGPendingException.Pending)
     {
         throw kdlPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 3
0
        public RigidBodyInertia RefPoint(Vector p)
        {
            RigidBodyInertia ret = new RigidBodyInertia(kdlPINVOKE.RigidBodyInertia_RefPoint(swigCPtr, Vector.getCPtr(p)), true);

            if (kdlPINVOKE.SWIGPendingException.Pending)
            {
                throw kdlPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 4
0
        public static RigidBodyInertia Zero()
        {
            RigidBodyInertia ret = new RigidBodyInertia(kdlPINVOKE.RigidBodyInertia_Zero(), true);

            if (kdlPINVOKE.SWIGPendingException.Pending)
            {
                throw kdlPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 5
0
        public RigidBodyInertia getInertia()
        {
            RigidBodyInertia ret = new RigidBodyInertia(kdlPINVOKE.Segment_getInertia(swigCPtr), false);

            if (kdlPINVOKE.SWIGPendingException.Pending)
            {
                throw kdlPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 6
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(RigidBodyInertia obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }