40823146 cd2021

  • Home
    • Site Map
    • reveal
    • blog
  • About
  • W2~W4
  • W5~W9
  • w11~w18
    • stage3-ag4
    • w11
    • w12
    • w13~w14
      • 小組會議
      • task1
      • task2
      • robodk
    • w15
    • w16
task1 << Previous Next >> robodk

task2

這邊用stage1的題目

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)

task1 << Previous Next >> robodk

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