Check port number for a correct socket communication between controller and server:
- Go to C:\Program Files\V-REP3\V-REP_PRO_EDU\remoteApiConnections.txt
- Check port number: portIndex1_port = 19997
- You will need this number on your controller's script.
Make sure you copy the following files in the same directory where your controller is located:
- vrep.py
- vrepConst.py
- the appropriate remote API library: "remoteApi.dll" (Windows), "remoteApi.dylib" (Mac) or "remoteApi.so" (Linux)
These files can be found in C:\Program Files\V-REP3\V-REP_PRO_EDU\programming\remoteApiBindings\python.
Open your simulation scene in VREP.
Run your_script.py (controller). The simulation will start automatically.