Page 1 of 1

setup connection with vrep via 2 clients simultaneously

Posted: 26 Feb 2020, 23:35
by ahmed mejdoub
hello
how can i setup connection with vrep via 2 clients simultaneously ?

Re: setup connection with vrep via 2 clients simultaneously

Posted: 27 Feb 2020, 14:56
by fferri
Can you be more clear in what you want to achieve?

Do you mean two remote API clients?

Re: setup connection with vrep via 2 clients simultaneously

Posted: 27 Feb 2020, 16:08
by ahmed mejdoub
i have 2 c++ projects . one is for line tracing and the other is for collision avoidance and self-balance . is it possible to connect them to vrep simultaneously ? if yes how ?

Re: setup connection with vrep via 2 clients simultaneously

Posted: 27 Feb 2020, 16:21
by sampits
I think you should start by reading this https://www.coppeliarobotics.com/helpFi ... erview.htm, ive never connected with c++ but ive done a ton with matlab and i´m guessing its similar.

Re: setup connection with vrep via 2 clients simultaneously

Posted: 28 Feb 2020, 10:10
by coppelia
Yes, you can. But it depends what you want to use for connection... the legacy remote API, the B0-based remote API, BlueZero, ROS, etc.?

Cheers

Re: setup connection with vrep via 2 clients simultaneously

Posted: 02 Mar 2020, 18:26
by ahmed mejdoub
i am trying to use the legacy remote API . how can i do that ?

Re: setup connection with vrep via 2 clients simultaneously

Posted: 04 Mar 2020, 06:45
by coppelia
With the legacy remote API, you need to start a remote API server service on the CoppeliaSim side, for every external connection. By default, a remote API server service is automatically started on port 19997, but you can start others with:

Code: Select all

simRemoteApi.start(portNb,1300,fals,true)
Cheers