I am Using Matlan as API for Coppeliasn(Vrep) - Libpointer 'setdatatype' Error

function Front_Portion()
sim=remApi('remoteApi');
sim.simxFinish(-1);
clientID=sim.simxStart('127.0.0.1',19999,true,true,5000,5);
[returnCode,F_Ind]=sim.simxGetObjectHandle(clientID,'Front_Indi',sim.simx_opmode_blocking);
[returnCode,F_One]=sim.simxGetObjectHandle(clientID,'Front_O1',sim.simx_opmode_blocking);
[returnCode,F_Two]=sim.simxGetObjectHandle(clientID,'Front_O2',sim.simx_opmode_blocking);
[returnCode,resolution,image]=sim.simxGetVisionSensorImage(clientID,F_Ind,0,sim.simx_opmode_streaming);
for i=1:50
[returnCode,resolution,image]=sim.simxGetVisionSensorImage(clientID,F_Ind,0,sim.simx_opmode_buffer);
setdatatype(image,'uint8Ptr',1,3);
get(image.value(1);
pause(0.1);
end
end
It is Showing Error like this. I have referred all the supporting documents from the website. But i couldn't solve the error. Kindly help me.

2 个评论

Hi Vishal! Have you managed to resolve this problem ?
Have you managed to solve this problem? I am stuck in ZeroMQ library

请先登录,再进行评论。

回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 ROS Log Files and Transformations 的更多信息

产品

版本

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by