simxCreateDummy (matlab API)

Report crashes, strange behaviour, or apparent bugs
Post Reply
Tr87
Posts: 5
Joined: 24 Apr 2014, 14:31

simxCreateDummy (matlab API)

Post by Tr87 »

Something is wrong with the simxCreateDummy (as far as i can tell) in the matlab API.

It claims i'm not giving it enough input parameters, but if i add anything at all, suddenly i have to many.

Calling it with
[Err,H] = vrep.simxCreateDummy(robot.clientID,1,[],vrep.simx_opmode_oneshot_wait);

Tried to replace API files with the 3.1.2 beta, did not solve the issue.

coppelia
Site Admin
Posts: 10375
Joined: 14 Dec 2012, 00:25

Re: simxCreateDummy (matlab API)

Post by coppelia »

Hello,

thanks for mentionning this. There is indeed a bug there. Simply remove the line
  • mode_ = int32(mode);
and modify the last line to:
  • [rtn s c handle] = calllib(obj.libName,'mtlb_simxCreateDummy',clientID,size_,color_,handle_,operationmode);
in the function simxCreateDummy, in file remApi.m

Cheers

Tr87
Posts: 5
Joined: 24 Apr 2014, 14:31

Re: simxCreateDummy (matlab API)

Post by Tr87 »

That seems to have solved it, thanks!

Post Reply