Here is the working example to reproduce:
https://drive.google.com/open?id=1u6OW7 ... WpfVJgjSMD
How to reproduce:
Start 4 simulators, one in each terminal
Code: Select all
./vrep.sh multiple_remote_api_host_clients.ttt -gREMOTEAPISERVERSERVICE_19997_FALSE_FALSE
./vrep.sh multiple_remote_api_host_clients.ttt -gREMOTEAPISERVERSERVICE_19998_FALSE_FALSE
./vrep.sh multiple_remote_api_host_clients.ttt -gREMOTEAPISERVERSERVICE_19999_FALSE_FALSE
./vrep.sh multiple_remote_api_host_clients.ttt -gREMOTEAPISERVERSERVICE_20000_FALSE_FALSE
Code: Select all
python multiple_sims_debug.py 0 1
Run this script with arguments "2 3":
Code: Select all
python multiple_sims_debug.py 2 3
Run this script with arguments "0 1":
Code: Select all
python multiple_sims_debug.py 0 1
ISSUE!
It is now printing to the single terminal (e.g. terminal started with port 19998, offset 1) and nothing to terminal 0 (started with port 19997, offset 0).
In same terminal it prints:
Code: Select all
Print via API call: sim_port_offset 0?
Print via API call: sim_port_offset 1?
It also printing to the same V-REP console (GUI).