40823114

  • Home
    • Site Map
    • reveal
    • blog
  • 主頁
  • stage1-ag16
    • 題目1
    • W2進度
    • W3進度
    • 製圖過程
    • 問題修正
  • stage2-ag9
    • 題目2
    • W5進度
    • W6進度
    • W7進度
    • W8進度
    • W9進度
    • 問題整理
  • stage3-ag4
    • 題目3
    • 模擬
    • 直播內容
    • RoboDK
    • W13~W14
      • 會議記錄
      • task1
      • task2
    • W15
    • W16
    • W17~W18
  • About
task1 << Previous Next >> W15

task2

import sim as vrep
import sys
# child threaded script: 
#simExtRemoteApiStart(19999)
 
vrep.simxFinish(-1)
 
clientID = vrep.simxStart('127.0.0.1', 19999, True, True, 5000, 5)
 
if clientID!= -1:
    print("Connected to remote server")
else:
    print('Connection not successful')
    sys.exit('Could not connect')
 
errorCode,main_handle=vrep.simxGetObjectHandle(clientID,'main',vrep.simx_opmode_oneshot_wait)
 

 
if errorCode == -1:
    print('Can not find main_handle')
    sys.exit()
 
errorCode=vrep.simxSetJointTargetVelocity(clientID,main_handle,20, vrep.simx_opmode_oneshot_wait)

檔案連結:https://drive.google.com/file/d/1rB2eq-nzC3aqGOcemEeVpwfdjD2cbrZf/view?usp=sharing


task1 << Previous Next >> W15

Copyright © All rights reserved | This template is made with by Colorlib