vrep中remoteAPI 编程中遇到的没有预留命令执行时间遇到的问题

在vrep中使用matlab编程过程中发现如果不使用以下两个函数其中之一则matlab中设置小车的命令无法向vrep发送成功。

  具体例子在文件夹位置:C:\Users\12194\Desktop\remote API homework\matlab  remote API

     % Before closing the connection to V-REP, make sure that the last command sent out had time to arrive. You can guarantee this with (for example):
      vrep.simxGetPingTime(clientID) 
     或者
      pause(0.1)
总而言之,这两个方法都是为了能有时间把命令执行完。

你可能感兴趣的:(机器人仿真软件verp)