Ejemplo n.º 1
0
    public virtual PolyDriver owner()
    {
        global::System.IntPtr cPtr = yarpPINVOKE.DriverCreator_owner(swigCPtr);
        PolyDriver            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new PolyDriver(cPtr, false);

        return(ret);
    }
Ejemplo n.º 2
0
    public bool link(PolyDriver alt)
    {
        bool ret = yarpPINVOKE.PolyDriver_link(swigCPtr, PolyDriver.getCPtr(alt));

        if (yarpPINVOKE.SWIGPendingException.Pending)
        {
            throw yarpPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Ejemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        //options.put ("device", deviceType);
        //options.put ("local", localPort);
        //options.put ("remote", remotePort);
        options = new Property ();
        options.put ("device", "controlboardwrapper2");
        options.put ("subdevice", "simulationcontrol");
        options.put ("name", "/icubZobbi/head");

        robotDevice = new PolyDriver(options);
        if (!robotDevice.isValid ()) {
            Debug.Log ("Device not available");
            Debug.Log (Drivers.factory().toString());
        }
    }
Ejemplo n.º 4
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PolyDriver obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Ejemplo n.º 5
0
 public void testMotor(PolyDriver driver)
 {
     IPositionControl pos = driver.viewIPositionControl ();
     if (pos != null)
     {
         int ct = pos.getAxes();
         Debug.Log("Number of axes is " + ct);
     }
     else
     {
         Debug.Log("Could not find IPositionControl interface");
     }
 }
Ejemplo n.º 6
0
 internal static HandleRef getCPtr(PolyDriver obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Ejemplo n.º 7
0
 public bool link(PolyDriver alt)
 {
     bool ret = yarpPINVOKE.PolyDriver_link(swigCPtr, PolyDriver.getCPtr(alt));
     if (yarpPINVOKE.SWIGPendingException.Pending) throw yarpPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
 public DriverLinkCreator(string name, PolyDriver source)
 {
     this.name = name;
     this.holding = source;
 }