资源简介
PUMA560机械臂目标物块抓取系统,vrep与matlab联合仿真,有Qt写的上位机,功能有自由调整关节角、输入目标点定点移动、目标抓取等,可以将传送带上的物块夹到桌面上,适合初学者参考
代码片段和文件信息
% This example illustrates how to execute complex commands from
% a remote API client. You can also use a similar construct for
% commands that are not directly supported by the remote API.
%
% Load the demo scene ‘remoteApiCommandServerExample.ttt‘ in V-REP then
% start the simulation and run this program.
%
% IMPORTANT: for each successful call to simxStart there
% should be a corresponding call to simxFinish at the end!
function complexCommandTest()
disp(‘Program started‘);
% vrep=remApi(‘remoteApi‘‘extApi.h‘); % using the header (requires a compiler)
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‘);
% 1. First send a command to display a specific message in a dialog box:
[res retInts retFloats retStrings retBuffer]=vrep.simxCallscriptFunction(clientID‘remoteApiCommandServer‘vrep.sim_scripttype_childscript‘displayText_function‘[][]‘Hello world!‘[]vrep.simx_opmode_blocking);
if (res==vrep.simx_return_ok)
fprintf(‘Returned message: %s\n‘retStrings);
else
fprintf(‘Remote function call failed\n‘);
end
% 2. Now create a dummy object at coordinate 0.10.20.3 with name ‘MyDummyName‘:
[res retInts retFloats retStrings retBuffer]=vrep.simxCallscriptFunction(clientID‘remoteApiCommandServer‘vrep.sim_scripttype_childscript‘createDummy_function‘[][0.1 0.2 0.3]‘MyDummyName‘[]vrep.simx_opmode_blocking);
if (res==vrep.simx_return_ok)
fprintf(‘Dummy handle: %d\n‘retInts(1));
else
fprintf(‘Remote function call failed\n‘);
end
% 3. Now send a code string to execute some random functions:
code=[‘local octreeHandle=simCreateOctree(0.501)‘ char(10) ...
‘simInsertVoxelsIntoOctree(octreeHandle0{0.10.10.1}{2550255})‘ char(10) ...
‘return ‘‘done‘‘‘];
[res retInts retFloats retStrings retBuffer]=vrep.simxCallscriptFunction(clientID‘remoteApiCommandServer‘vrep.sim_scripttype_childscript‘executeCode_function‘[][]code[]vrep.simx_opmode_blocking);
if (res==vrep.simx_return_ok)
fprintf(‘Code execution returned: %s\n‘retStrings);
else
fprintf(‘Remote function call failed\n‘);
end
% Now close the connection to V-REP:
vrep.simxFinish(clientID);
else
disp(‘Failed connecting to remote API server‘);
end
vrep.delete(); % call the destructor!
disp(‘Program ended‘);
end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 0 2020-06-07 21:37 project_puma_v6\backup\detect.m
文件 1370 2020-06-08 19:36 project_puma_v6\backup\getTarget.m
文件 1163 2020-06-07 20:43 project_puma_v6\backup\instruct.m
文件 954 2020-06-08 10:30 project_puma_v6\backup\movel.m
文件 1707 2020-06-08 15:42 project_puma_v6\backup\movelTrack.m
文件 621 2020-06-08 10:30 project_puma_v6\backup\newPlace.m
文件 2799 2018-01-25 18:03 project_puma_v6\complexCommandTest.m
文件 2118 2020-06-12 18:11 project_puma_v6\ik_solution.m
文件 7240 2020-06-14 18:05 project_puma_v6\ik_step.m
文件 2151 2020-06-14 17:24 project_puma_v6\pick_and_place.m
文件 772497 2020-06-14 19:59 project_puma_v6\puma560v2.ttt
文件 876 2018-01-25 18:03 project_puma_v6\readMe.txt
文件 100875 2018-01-25 18:03 project_puma_v6\remApi.m
文件 70656 2018-01-25 18:03 project_puma_v6\remoteApi.dll
文件 35378 2018-01-25 18:03 project_puma_v6\remoteApiProto.m
文件 0 2020-06-06 17:58 project_puma_v6\sim.simxStart
文件 1770 2018-01-25 18:03 project_puma_v6\simpleSynchronousTest.m
文件 2718 2018-01-25 18:03 project_puma_v6\simpleTest.m
文件 46 2020-06-12 12:53 project_puma_v6\Unti
文件 1161 2020-06-11 00:21 project_puma_v6\visionSensor.m
目录 0 2020-06-14 16:02 project_puma_v6\backup
目录 0 2020-06-14 16:02 project_puma_v6
----------- --------- ---------- ----- ----
1006100 22
相关资源
- SD算法和LMS算法MATLAB仿真
- 基于MATLAB GUI开发的多算发雷达恒虚警
- 数字信号处理音频FIR去噪基于MATLAB
- 改进的考虑路阻的Dijkstra算法matlab算法
- MATLAB运动目标检测代码
- MATLAB新许可文件可通用
- 含过时信息多智能体系统一致性Matl
- matlab利用PCA函数进行降维
- matlab读取hdf文件
- MATLAB-RFID-二进制树
- 基于MATLAB的车牌识别.rar
- 电网络节点电压法matlab程序
- 基于不同调制方式16QAM、64QAM、QPSKOF
- 汽车主动悬架控制器建模仿真程序代
- ADRC_TD.zip
- MIMO_DOAMIMO-雷达DOA估计中克拉美罗界
- 随机生产模拟matlab程序
- 雷达杂波瑞利分布模型MATLAB仿真
- 基于肤色的人脸检测
- 卡尔曼滤波matlab仿真程序
- 基于matlab的路面裂缝检测识别系统设
- 基于matlab的DCT变换对灰度图像进行压
- 基于MATLAB图像处理的汽车牌照识别系
- 基于matlab的神经网络dropout层
- 基于matlab的svr代码
- 使用matlab 实现DTW算法
- 基于粒子群算法的优化模型matlab程序
- 遗传算法完整MATLAB程序
- MATLAB灰色关联度代码
-
simuli
nk计数器、累加器.zip
评论
共有 条评论