How to use the b0-based remote API on multiple PCs

Typically: "How do I... ", "How can I... " questions
Post Reply
masatomori
Posts: 4
Joined: 13 Dec 2019, 10:46

How to use the b0-based remote API on multiple PCs

Post by masatomori » 14 Jan 2020, 02:49

Dear Coppelia,

I would like to access CoppeliaSim using the b0-based remote API with two PCs as client and server respectively.
I use Matlab as my client.

However, I was not able to succeed in these communications.
Do I need to set an IP address like 192.168.0.10 somewhere on the client side?
I thought it might be to set the IP address, like the legacy remote API,
but I didn't see any documentation about this.

If I run client (Matlab) and server (CoppeliaSim) on the same PC, I succeeded.

How can I solve this problem?


I will appreciate your help with this situation.
masato

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

Re: How to use the b0-based remote API on multiple PCs

Post by coppelia » 14 Jan 2020, 12:26

Hello Masato,

a B0 node will look at the environment variable B0_RESOLVER, e.g.:

Code: Select all

export B0_RESOLVER=tcp://localhost:22000
launch B0 node
on the other hand, the resolver itself will look at B0_RESOLVER_PORT, e.g.:

Code: Select all

export B0_RESOLVER_PORT=22000
launch B0 resolver
Cheers

Post Reply