在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)
总而言之,这两个方法都是为了能有时间把命令执行完。