Send data from matlab to vrep

Typically: "How do I... ", "How can I... " questions
Post Reply
wpc
Posts: 7
Joined: 06 Jun 2017, 02:22

Send data from matlab to vrep

Post by wpc » 19 May 2018, 15:30

Hello,
How does a remote API like MATLAB send an array of arrays to a specific script in VREP? And Which command to read these datas in vrep? I have created connection between vrep and matlab.
Thank you


wpc
Posts: 7
Joined: 06 Jun 2017, 02:22

Re: Send data from matlab to vrep

Post by wpc » 21 May 2018, 10:00

Hi,
Thanks for your reply. I have read this page and learned to enable the remote API. But I want to konw which command can send data to vrep?

fferri
Posts: 225
Joined: 09 Sep 2013, 19:28

Re: Send data from matlab to vrep

Post by fferri » 21 May 2018, 10:07

you can use simxGetStringSignal/simxSetStringSignal/simxClearStringSignal, or simxReadStringStream /simxWriteStringStream, using simxPackFloats/simxUnpackFloats to write/read an array of floats to/from a string. Alternatively, you can use simxCallScriptFunction in a similar fashion.

http://www.coppeliarobotics.com/helpFil ... Matlab.htm

Post Reply