Package coppelia

Examples of coppelia.IntW


   * is returned using the getObjectHandle function.
   */
 
  public IntW getObjectHandle(String ObjectName){
    int status;
    IntW objectHandle = new IntW(1);
    status = dynamotionServer.simxGetObjectHandle(clientID,ObjectName,objectHandle,dynamotionServer.simx_opmode_oneshot_wait);
    if(status == 0){
      return objectHandle;
    }
    else
View Full Code Here


   * Hardware access is enabled using this function.
   */
  public void enableHardwareMode(){
   
    int status;
    IntW hardwareStatus = new IntW(1);
    IntW enableHardwareObjectHandle = new IntW(1);
   
    status = dynamotionServer.simxGetUIHandle(clientID, "UI", enableHardwareObjectHandle, dynamotionServer.simx_opmode_oneshot_wait);
    //System.out.format("enableHardwareMode() function status %d\n",status);
   
    //int S = dynamotionServer.simxGetUIButtonProperty(clientID, enableHardwareObjectHandle.getValue(), 508,sim_buttonproperty_staydown , dynamotionServer.simx_opmode_streaming);
    //System.out.format("Enable Hardware Button on(8536) status %d\n",hardwareStatus.getValue());
    //System.out.format("Enable Hardware Button %d\n",S);
    int J  = dynamotionServer.simxSetUIButtonProperty(clientID, enableHardwareObjectHandle.getValue(), 508, 8536 , dynamotionServer.simx_opmode_oneshot_wait);
    //System.out.format("Enable Hardware Button on status %d\n",hardwareStatus.getValue());
    ///System.out.format("Enable Hardware Button working if 0 not working if 1: %d\n",J);
   
    dynamotionServer.simxSetIntegerSignal(clientID,"RemoteAPI_button",508,dynamotionServer.simx_opmode_oneshot_wait);
  }
View Full Code Here

   * Hardware access is disabled using this function.
   */
  public void disableHardwareMode(){
    
    int status;
    IntW hardwareStatus = new IntW(1);
    IntW enableHardwareObjectHandle = new IntW(1);
    status = dynamotionServer.simxGetUIHandle(clientID, "UI", enableHardwareObjectHandle, dynamotionServer.simx_opmode_oneshot_wait);
    //System.out.format("disableHardwareMode() function status %d\n",status);
   
    //int S = dynamotionServer.simxGetUIButtonProperty(clientID, enableHardwareObjectHandle.getValue(), 508, hardwareStatus, dynamotionServer.simx_opmode_streaming);
    //System.out.format("Enable Hardware Button off(8280) status %d\n",hardwareStatus.getValue());
    //System.out.format("Enable Hardware Button %d\n",S);
       
    
    int J  = dynamotionServer.simxSetUIButtonProperty(clientID, enableHardwareObjectHandle.getValue(), 508, 8280 , dynamotionServer.simx_opmode_oneshot_wait);
    //System.out.format("Enable Hardware Button off status %d\n",hardwareStatus.getValue());
    //System.out.format("Enable Hardware Button working if 0 not working if 1: %d\n",J);
    dynamotionServer.simxSetIntegerSignal(clientID,"RemoteAPI_button",508,dynamotionServer.simx_opmode_oneshot_wait);
  }
View Full Code Here

   * Assistive mode is enabled using this function
   */
  public void enableAssistiveMode(){
    
    int status;
    IntW assistiveModeStatus = new IntW(1);
    IntW assistiveModeObjectHandle = new IntW(1);
   
    status = dynamotionServer.simxGetUIHandle(clientID, "UI", assistiveModeObjectHandle, dynamotionServer.simx_opmode_oneshot_wait);
    //System.out.format("enableAssistiveMode() function status %d\n",status);
   
    //int S = dynamotionServer.simxGetUIButtonProperty(clientID, assistiveModeObjectHandle.getValue(), 502, assistiveModeStatus, dynamotionServer.simx_opmode_streaming);
    //System.out.format("Assistive Button off(8536) status %d\n",assistiveModeStatus.getValue());
    //System.out.format("Assistive Button %d\n",S);
       
    
    int J  = dynamotionServer.simxSetUIButtonProperty(clientID, assistiveModeObjectHandle.getValue(), 502, 8536 , dynamotionServer.simx_opmode_oneshot_wait);
    //System.out.format("Assistive Button on status %d\n",assistiveModeStatus.getValue());
    //System.out.format("Assistive Button working if 0 not working if 1: %d\n",J);
    dynamotionServer.simxSetIntegerSignal(clientID,"RemoteAPI_button",502,dynamotionServer.simx_opmode_oneshot_wait);
  }
View Full Code Here

   * Assistive mode is disabled using this function
   */
  public void disableAssistiveMode(){
    
    int status;
    IntW assistiveModeStatus = new IntW(1);
    IntW assistiveModeObjectHandle = new IntW(1);
    status = dynamotionServer.simxGetUIHandle(clientID, "UI", assistiveModeObjectHandle, dynamotionServer.simx_opmode_oneshot_wait);
    //System.out.format("disableAssistiveMode() function status %d\n",status);
   
   
    //int S = dynamotionServer.simxGetUIButtonProperty(clientID, assistiveModeObjectHandle.getValue(), 502, assistiveModeStatus, dynamotionServer.simx_opmode_streaming);
    //System.out.format("Disable Assistive Button off(8280) status %d\n",assistiveModeStatus.getValue());
    //System.out.format("Assistive Button %d\n",S);
       
    
    int J  = dynamotionServer.simxSetUIButtonProperty(clientID, assistiveModeObjectHandle.getValue(), 502, 8280 , dynamotionServer.simx_opmode_oneshot_wait);
    //System.out.format("Assistive Button off status %d\n",assistiveModeStatus.getValue());
    //System.out.format("Assistive Button working if 0 not working if 1: %d\n",J);
    dynamotionServer.simxSetIntegerSignal(clientID,"RemoteAPI_button",502,dynamotionServer.simx_opmode_oneshot_wait);
  }
View Full Code Here

   * Record mode is enabled using this function.
   */
  public void enableRecordMode(){
    
    int status;
    IntW recordStatus = new IntW(1);
    IntW recordObjectHandle = new IntW(1);
   
    status = dynamotionServer.simxGetUIHandle(clientID, "UI", recordObjectHandle, dynamotionServer.simx_opmode_oneshot_wait);
    //System.out.format("enableRecordMode() function status %d\n",status);
   
   
    //int S = dynamotionServer.simxGetUIButtonProperty(clientID, recordObjectHandle.getValue(), 504, recordStatus, dynamotionServer.simx_opmode_streaming);
    //System.out.format("Record Button on(8536) status %d\n",recordStatus.getValue());
    //System.out.format("Record Button %d\n",S);
   
    
    int J  = dynamotionServer.simxSetUIButtonProperty(clientID, recordObjectHandle.getValue(), 504, 8536 , dynamotionServer.simx_opmode_oneshot_wait);
    //System.out.format("Record Button on status %d\n",recordStatus.getValue());
    //System.out.format("Record Button working if 0 not working if 1: %d\n",J);
   
    dynamotionServer.simxSetIntegerSignal(clientID,"RemoteAPI_button",504,dynamotionServer.simx_opmode_oneshot_wait);
    //dynamotionServer.simxSetStringSignal(clientID,"filepathrecord",filePathRecordWithName,dynamotionServer.simx_opmode_oneshot);
View Full Code Here

   * Record mode is disabled using this function.
   */
  public void disableRecordMode(){
    
    int status;
    IntW recordStatus = new IntW(1);
    IntW recordObjectHandle = new IntW(1);
   
    status = dynamotionServer.simxGetUIHandle(clientID, "UI", recordObjectHandle, dynamotionServer.simx_opmode_oneshot_wait);
    //System.out.format("disableRecordMode() function status %d\n",status);
   
    //int S = dynamotionServer.simxGetUIButtonProperty(clientID, recordObjectHandle.getValue(), 504, recordStatus, dynamotionServer.simx_opmode_streaming);
    //System.out.format("Record Button off(8280) status %d\n",recordStatus.getValue());
    //System.out.format("Record Button %d\n",S);
       
    
    int J  = dynamotionServer.simxSetUIButtonProperty(clientID, recordObjectHandle.getValue(), 504, 8280 , dynamotionServer.simx_opmode_oneshot_wait);
    //System.out.format("Record Button off status %d\n",recordStatus.getValue());
    //System.out.format("Record Button working if 0 not working if 1: %d\n",J);
   
    dynamotionServer.simxSetIntegerSignal(clientID,"RemoteAPI_button",504,dynamotionServer.simx_opmode_oneshot_wait);
  }
View Full Code Here

   * Playback mode is enabled using this function.
   */
  public void enablePlaybackMode(String filePathPlaybackWithName){
    
    int status;
    IntW playBackStatus = new IntW(1);
    IntW playBackObjectHandle = new IntW(1);
   
    status = dynamotionServer.simxGetUIHandle(clientID, "UI", playBackObjectHandle, dynamotionServer.simx_opmode_oneshot_wait);
    //System.out.format("enablePlaybackMode() function status %d\n",status);
   
   
    //int S = dynamotionServer.simxGetUIButtonProperty(clientID, playBackObjectHandle.getValue(), 506, playBackStatus, dynamotionServer.simx_opmode_streaming);
    //System.out.format("Playback Button on(8536) status %d\n",playBackStatus.getValue());
    //System.out.format("Playback Button %d\n",S);
       
    
    int J  = dynamotionServer.simxSetUIButtonProperty(clientID, playBackObjectHandle.getValue(), 506, 8536 , dynamotionServer.simx_opmode_oneshot_wait);
    //System.out.format("Playback Button on status %d\n",playBackStatus.getValue());
    //System.out.format("Playback Button working if 0 not working if 1: %d\n",J);
   
    dynamotionServer.simxSetIntegerSignal(clientID,"RemoteAPI_button",506,dynamotionServer.simx_opmode_oneshot_wait);
    dynamotionServer.simxSetStringSignal(clientID,"filepath",filePathPlaybackWithName,dynamotionServer.simx_opmode_oneshot_wait);
View Full Code Here

   * Playback mode is disabled using this function.
   */
  public void disablePlaybackMode(){
    
    int status;
    IntW playBackStatus = new IntW(1);
    IntW playBackObjectHandle = new IntW(1);
    status = dynamotionServer.simxGetUIHandle(clientID, "UI", playBackObjectHandle, dynamotionServer.simx_opmode_oneshot_wait);
    //System.out.format("disablePlaybackMode() function status %d\n",status);
   
    //int S = dynamotionServer.simxGetUIButtonProperty(clientID, playBackObjectHandle.getValue(), 506, playBackStatus, dynamotionServer.simx_opmode_streaming);
    //System.out.format("Playback Button off(8280) status %d\n",playBackStatus.getValue());
    //System.out.format("Playback Button %d\n",S);
       
    
    int J  = dynamotionServer.simxSetUIButtonProperty(clientID, playBackObjectHandle.getValue(), 506, 8280 , dynamotionServer.simx_opmode_oneshot_wait);
    //System.out.format("Playback Button off status %d\n",playBackStatus.getValue());
    //System.out.format("Playback Button working if 0 not working if 1: %d\n",J);
    dynamotionServer.simxSetIntegerSignal(clientID,"RemoteAPI_button",506,dynamotionServer.simx_opmode_oneshot_wait);
  }
View Full Code Here

   * Remote API Button mode is enabled using this function.
   */
  public void enableRemoteJavaApiMode(){
    
    int status;
    IntW remoteJavaApiStatus = new IntW(1);
    IntW remoteJavaApiObjectHandle = new IntW(1);
   
    status = dynamotionServer.simxGetUIHandle(clientID, "UI", remoteJavaApiObjectHandle, dynamotionServer.simx_opmode_oneshot_wait);
    //System.out.format("enableRemoteJavaApiMode() function status %d\n",status);
   
   
    //int S = dynamotionServer.simxGetUIButtonProperty(clientID, remoteJavaApiObjectHandle.getValue(), 506, playBackStatus, dynamotionServer.simx_opmode_streaming);
    //System.out.format("enableRemoteJavaApiMode Button on(8536) status %d\n",remoteJavaApiStatus.getValue());
    //System.out.format("enableRemoteJavaApiMode Button %d\n",S);
       
    
    int J  = dynamotionServer.simxSetUIButtonProperty(clientID, remoteJavaApiObjectHandle.getValue(), 600, 8536 , dynamotionServer.simx_opmode_oneshot_wait);
    //System.out.format("enableRemoteJavaApiMode Button on status %d\n",remoteJavaApiStatus.getValue());
    //System.out.format("enableRemoteJavaApiMode Button working if 0 not working if 1: %d\n",J);
   
    dynamotionServer.simxSetIntegerSignal(clientID,"RemoteAPI_button",600,dynamotionServer.simx_opmode_oneshot_wait);
  }
View Full Code Here

TOP

Related Classes of coppelia.IntW

Copyright © 2018 www.massapicom. 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.