Examples of Actuator


Examples of ca.teamdave.caruso.actuator.Actuator

            value = sensor.getValue();
            this.sensors.put(key, value);
        }

        Actuator actuator;
        keys = actuators.keys();
        while (keys.hasMoreElements()) {
            key = (String) keys.nextElement();
            actuator = (Actuator) actuators.get(key);

            value = actuator.getValue();
            this.actuators.put(key, value);
        }
    }
View Full Code Here

Examples of ca.teamdave.caruso.actuator.Actuator

    public Hashtable createActuators() {
        final SimpleFRCBotSimulated me = this;
        Hashtable res = new Hashtable();

        res.put(SimpleFRCIO.ARM_VALVE, new Actuator(Boolean.class) {
            protected void assignValue(Object val) {
                me.valveOn = ((Boolean)val).booleanValue();
            }

            protected Object retriveValue() {
View Full Code Here

Examples of ca.teamdave.caruso.actuator.Actuator

    public Hashtable createActuators() {
        final LinearRobotSimulated me = this;
        Hashtable res = new Hashtable();

        res.put(LrNames.OUTPUT_FORCE, new Actuator(Double.class) {
            protected Object retriveValue() {
                return new Double(me.outputNormalized);
            }

            protected void assignValue(Object val) {
                me.outputNormalized = ((Double) val).doubleValue();
                if (me.outputNormalized > 1.0) {
                    me.outputNormalized = 1.0;
                } else if (me.outputNormalized < -1.0) {
                    me.outputNormalized = -1.0;
                }
            }
           
        });

        res.put(LrNames.DESIRED_POSITION, new Actuator(Double.class) {
            protected Object retriveValue() {
                return new Double(me.destPos);
            }

            protected void assignValue(Object val) {
                me.destPos = ((Double)val).doubleValue();
            }
        });
        res.put(LrNames.DESIRED_SPEED, new Actuator(Double.class) {
            protected Object retriveValue() {
                return new Double(me.destSpeed);
            }

            protected void assignValue(Object val) {
                me.destSpeed = ((Double)val).doubleValue();
            }
        });
        res.put(LrNames.DESIRED_ACCEL, new Actuator(Double.class) {
            protected Object retriveValue() {
                return new Double(me.destAccel);
            }

            protected void assignValue(Object val) {
View Full Code Here

Examples of ca.teamdave.caruso.actuator.Actuator

     */
    public Hashtable createActuators() {
        final SimpleFRCBotPhysical me = this;

        Hashtable res = new Hashtable();
        res.put(SimpleFRCIO.ARM_VALVE, new Actuator(Boolean.class){
            protected void assignValue(Object val) {
                me.armValve.set(((Boolean)val).booleanValue());
            }

            protected Object retriveValue() {
View Full Code Here

Examples of org.apache.imperius.spl.core.Actuator

    }

    public void initialize() throws SPLException {

        DataCollector dc = new JavaDataCollectorImpl();
        Actuator ac = new JavaActuatorImpl();
        _policyManager = new PolicyManagerImpl(dc, ac);

        // registering internal client
        InternalClient oInternalClientObj = new InternalClient(_policyManager);
        InternalClientFactory.registerInternalClient(oInternalClientObj);
View Full Code Here

Examples of org.apache.imperius.spl.core.Actuator

//   
//    if(auditLogger.isLoggable(Level.FINE))
//      logger.fine(Thread.currentThread().getName()+" Initializing Policy Provider" );
    DataCollector dc = new CIMDataCollectorImpl(ch);

    Actuator ac = new CIMActuatorImpl(ch);

    _policyManager= new PolicyManagerImpl(dc,ac);
   
    _internalClient=new InternalClient(_policyManager);
    InternalClientFactory.registerInternalClient(_internalClient);
View Full Code Here

Examples of org.apache.imperius.spl.core.Actuator

                      parameterObjects.add(arg);
                    }
                }
            }

            Actuator ac = ActuatorFactory.getActuator();

            Object result = ac.invokeMethod(className, qualifier, targetObject,
                    methodName, parameterObjects);

            //System.out.println("method invokation complete : "+className+" "+qualifier+" "+methodName+" "+targetObject);
            //System.out.println("method invokation result of invokation : "+result);
View Full Code Here

Examples of org.apache.imperius.spl.core.Actuator

  {
    logger.entering(sourceClass,Thread.currentThread().getName()+" "+"initialize");
   
    CIMClient a=getCIMClient(url, namespace, username, password);
    DataCollector dc = new CIMClientSideDataCollectorImpl(a);
    Actuator ac = new CIMClientSideActuatorImpl(a);
   
   
    _policyManager= new PolicyManagerImpl(dc,ac);
    _client=a;
    _internalClient=new InternalClient(_policyManager);
View Full Code Here

Examples of org.openpnp.spi.Actuator

          public void valueChanged(ListSelectionEvent e) {
            if (e.getValueIsAdjusting()) {
              return;
            }

            Actuator actuator = getSelectedActuator();

            configurationPanel.removeAll();
            if (actuator != null) {
              Wizard wizard = actuator.getConfigurationWizard();
              if (wizard != null) {
                wizard.setWizardContainer(ActuatorsPanel.this);
                JPanel panel = wizard.getWizardPanel();
                configurationPanel.add(panel);
              }
View Full Code Here

Examples of org.openpnp.spi.Actuator

     * the height of the tape, we don't need to Safe Z first.
     * There is also probably no reason to Safe Z after extracting the
     * pin since if the tool was going to hit it would have already hit.
     */

    Actuator actuator = head.getActuator(actuatorId);
   
    if (actuator == null) {
      throw new Exception(String.format("No Actuator found with ID %s on feed Head %s", actuatorId, head.getId()));
    }
   
    nozzle.moveToSafeZ(1.0);
   
    Location feedStartLocation = this.feedStartLocation;
    Location feedEndLocation = this.feedEndLocation;
    pickLocation = this.location;
   
    // Move the actuator to the feed start location at safeZ
    actuator.moveTo(feedStartLocation.derive(null, null, Double.NaN, Double.NaN), 1.0);

    // move to start of movement position
    actuator.moveTo(feedStartLocation.derive(null, null, null, Double.NaN), 1.0);

    // move to final laser activation position
    actuator.moveTo(feedEndLocation.derive(null, null, null, Double.NaN), feedSpeed);

    // flash the laser
    actuator.actuate(true);
    Thread.sleep(200);
    actuator.actuate(false);

    //move back to safeZ
    nozzle.moveToSafeZ(1.0);


View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.