資源簡介
循跡小車的V-REP與Matlab聯(lián)合仿真,完整介紹與效果演示可參閱我的博客https://blog.csdn.net/qq_33243369/article/details/91381549,如果資源有問題,請在博客評論區(qū)給我反饋.
代碼片段和文件信息
clear
disp(‘Program?started‘);
vrep=remApi(‘remoteApi‘);?%?using?the?prototype?file?(remoteApiProto.m)
vrep.simxFinish(-1);?%?just?in?case?close?all?opened?connections
clientID=vrep.simxStart(‘127.0.0.1‘19999truetrue50005);
if?(clientID>-1)
????????disp(‘Connected?to?remote?API?server‘);
???vrep.?simxSynchronous(clientIDtrue);
???vrep.?simxStartSimulation(clientIDvrep.simx_opmode_oneshot);
?[rec?handle]=vrep.simxGetobjectHandle?(clientID‘Visio_lll‘vrep.simx_opmode_blocking);
?[rec?left_handle]=vrep.simxGetobjectHandle?(clientID‘Leftmotor‘vrep.simx_opmode_blocking);
?[rec?right_handle]=vrep.simxGetobjectHandle?(clientID‘Rightmotor‘vrep.simx_opmode_blocking);
?%[rec?left_b_handle]=vrep.simxGetobjectHandle?(clientID‘l_b_j‘vrep.simx_opmode_blocking);
?%[rec?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????2764??2019-06-10?16:32??car_test.m
?????文件????????3541??2019-06-10?16:32??complexCommandTest.m
?????文件?????????213??2019-06-10?16:32??dir_cmd.m
?????文件????????3212??2019-06-10?16:32??first_test.m
?????文件?????????310??2019-06-10?16:32??ident_ima.m
?????文件???????63719??2019-06-10?16:32??Part1.SLDPRT
?????文件???????18484??2019-06-10?16:32??Part1.STL
?????文件???????63773??2019-06-10?16:32??Part2.SLDPRT
?????文件????????8884??2019-06-10?16:32??Part2.STL
?????文件?????????861??2019-06-10?16:32??readMe.txt
?????文件??????102588??2019-06-10?16:32??remApi.m
?????文件??????139776??2019-06-10?16:32??remoteApi.dll
?????文件???????34755??2019-06-10?16:32??remoteApiProto.m
?????文件??????377221??2019-06-10?16:32??remote_test.ttt
?????文件????????2514??2019-06-10?16:32??simpleSynchronousTest.m
?????文件????????3477??2019-06-10?16:32??simpleTest.m
- 上一篇:matlab球體重力異常正演
- 下一篇:matlab實現(xiàn)分水嶺算法代碼
評論
共有 條評論