ZMQ Remote API connection with Raspberry

Typically: "How do I... ", "How can I... " questions
Post Reply
tseden
Posts: 3
Joined: 25 Mar 2025, 13:33

ZMQ Remote API connection with Raspberry

Post by tseden »

Hi everyone,
I had a question regarding methods to connect CoppeliaSim simulations to
other devices like RaspberryPi. I tired to connect it to CoppeliaSim with
ZMQ Remote API and ran a code on my Pi but there seems to be no output or
response on both the Pi and the laptop I am using to simulate CoppeliaSim
in. And yes, I am using the same network for both, the CoppeliSim is open
and running at time of connection and I have tried using the same port
number and correct IP address. So please tell me what I am missing here?

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

Re: ZMQ Remote API connection with Raspberry

Post by coppelia »

Hello,

not sure what you are doing wrong. Does the demo scene scenes/messaging/zeromqDemo-lua.ttt work? What about scenes/messaging/zeromqDemo-python.ttt?
Please try to first run the ZeroMQ remote API on your device and check if that works, or what error message you see there.

Cheers

tseden
Posts: 3
Joined: 25 Mar 2025, 13:33

Re: ZMQ Remote API connection with Raspberry

Post by tseden »

Hi

I have not tried those, I was creating my own new CoppeliaSim scene added a simple object and ran it to test it's commination with the Raspberry Pi. I will try this one "scenes/messaging/zeromqDemo-python.ttt", hope it works. Is there anything specific I must do, or write in my CoppeliaSim for my ZMQ connection to work?

Thank you for you time.

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

Re: ZMQ Remote API connection with Raspberry

Post by coppelia »

Please first try the examples that come with CoppeliaSim. If those do not work, then we need to explore reasons. If they work, then you can get inspiration from them, and build upon them.

Cheers

tseden
Posts: 3
Joined: 25 Mar 2025, 13:33

Re: ZMQ Remote API connection with Raspberry

Post by tseden »

Thank you for your support, I tried the examples in the scene folder. The code I ran on the Pi needed some modifications from the one provided in the file, then it worked. After that I tried the previous method I was using and turns out the connection was being blocked by my windows firewall.

Kind regards

Post Reply