About installation of ZeroMQ remote API for Matlab

Typically: "How do I... ", "How can I... " questions
linzijie876
Posts: 8
Joined: 06 Apr 2023, 10:05

About installation of ZeroMQ remote API for Matlab

Post by linzijie876 »

In the User Manual, it says "Matlab clients require the bundled JeroMQ, which installs automatically if not yet present." The first step of using ZeroMQ in Matlab is to install JeroMQ.

However, I do not know how to complete this operation. After I download the code from Github(JeroMhttps://github.com/zeromq/jeromq), it is a file folder named "jeromq-master". Which file do i need to run to install JeroMQ automatically?
linzijie876
Posts: 8
Joined: 06 Apr 2023, 10:05

Re: About installation of ZeroMQ remote API for Matlab

Post by linzijie876 »

Are there any more detailed materials or demo about complete procedure to set ZeroMQ in Matlab? There is few related tutorial on the internet.
fferri
Posts: 1334
Joined: 09 Sep 2013, 19:28

Re: About installation of ZeroMQ remote API for Matlab

Post by fferri »

Since it will download and install automatically the first time you use the MATLAB zmqRemoteApi client, you don't need to download it or set it up.
danitoS
Posts: 14
Joined: 30 Jan 2025, 14:04

Re: About installation of ZeroMQ remote API for Matlab

Post by danitoS »

fferri wrote: 11 Apr 2023, 18:40 Since it will download and install automatically the first time you use the MATLAB zmqRemoteApi client, you don't need to download it or set it up.
Hello, I have followed your replies and I appreciate you pointing us to the right direction but would you mind providing more detailed instructions on how to use it? I tried to follow the examples you directed me to in another post but I can't understand them. I am completely new to CoppeliaSim and Matlab.

Thank you very much!
fferri
Posts: 1334
Joined: 09 Sep 2013, 19:28

Re: About installation of ZeroMQ remote API for Matlab

Post by fferri »

You should be able to run the example directly in MATLAB.

If it is not working for you, please post the error messages you get.
danitoS
Posts: 14
Joined: 30 Jan 2025, 14:04

Re: About installation of ZeroMQ remote API for Matlab

Post by danitoS »

Thank you again.
I copy the code from the example and run it and this is what I get:

Unrecognized function or variable 'RemoteAPIClient'.

Error in test (line 1)
client = RemoteAPIClient();
^^^^^^^^^^^^^^^^^

Please keep in mind I am new to this so I am not sure I am doing it correctly.

Thanks again for your help.

Dani
fferri
Posts: 1334
Joined: 09 Sep 2013, 19:28

Re: About installation of ZeroMQ remote API for Matlab

Post by fferri »

It seems you didn't add the directory containing RemoteAPIClient.m (found in programming/zmqRemoteApi/clients/matlab) to the MATLAB search path.
danitoS
Posts: 14
Joined: 30 Jan 2025, 14:04

Re: About installation of ZeroMQ remote API for Matlab

Post by danitoS »

Thank you very much,

Just to make sure...

Image
danitoS
Posts: 14
Joined: 30 Jan 2025, 14:04

Re: About installation of ZeroMQ remote API for Matlab

Post by danitoS »

I copied the files within the folder. Now I don't get an error but I am not getting anything else either:

Image

Should I be seeing something else?
Sorry for all this back and forth.
fferri
Posts: 1334
Joined: 09 Sep 2013, 19:28

Re: About installation of ZeroMQ remote API for Matlab

Post by fferri »

No you don't need to copy files to the Documents/MATLAB directory.

Just add the path (path/to/zmqRemoteApi/clients/matlab) to the MATLAB search path (via the Add Folder button), as explained in the document.

Image
Post Reply