40823232 cd2021

  • Home
    • Site Map
    • reveal
    • blog
  • About
  • stage1各週進度
    • w1
    • w2討論主題
    • w3模擬
    • w4報告
  • stage2各週進度
    • w6
    • w7
    • w8
    • w9報告
  • stage3各週進度
    • w10
      • ipv4連線
    • w11
      • task1
    • w12
    • w13建立gitlab
      • 小組直播影片
    • W14
    • W15
    • W16 exam
    • W17
    • W18
  • note
    • zoomit
    • pelican.leo
    • coppeliasim
    • heroku
    • ssh
    • github been flagged
  • W5
task1 << Previous Next >> w13建立gitlab

w12

task2  測試日期:2021/5/14

import sim as vrep
import math
import random
import time
 
print ('Start')
 
# Close eventual old connections
vrep.simxFinish(-1)
# Connect to V-REP remote server
clientID = vrep.simxStart('192.168.192.115', 19997, True, True, 5000, 5)
 
if clientID != -1:
    print ('Connected to remote API server')
 
    res = vrep.simxAddStatusbarMessage(
        clientID, "40823232",
        vrep.simx_opmode_oneshot)
    if res not in (vrep.simx_return_ok, vrep.simx_return_novalue_flag):
        print("Could not add a message to the status bar.")
    # Communication operating mode with the remote API : wait for its answer before continuing (blocking mode)
    # http://www.coppeliarobotics.com/helpFiles/en/remoteApiConstants.htm
    opmode = vrep.simx_opmode_oneshot_wait
 
    # Try to retrieve motors and robot handlers
    # http://www.coppeliarobotics.com/helpFiles/en/remoteApiFunctionsPython.htm#simxGetObjectHandle
    vrep.simxStartSimulation(clientID,opmode)
    ret1,front_handle = vrep.simxGetObjectHandle(clientID, "Revolute_joint", opmode)
    

else:
    print ('Failed connecting to remote API server')

task1 << Previous Next >> w13建立gitlab

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