1) Download V-REP

Download V-REP from the official webpage here. This guide is verified to work with v.3.6.2 and Ubuntu 18.04.

2) Extract

Extract the V-REP .zip file in the V-REP directory as many times as you need workers for your reinforcement learning algorithm (e.g., 4 times)

3) Make the V-REP directories unique

Go to the extracted directories (feel free to rename these). In remoteApiConnections.txt change portIndex1_port to something unique so they are not the same for any V-REP instance (e.g., 19995, 19996, 19997, 19998). Make a new file in all the extracted directories called simulationID.txt and write a unique ID (e.g., 1, 2, 3, 4) (don’t use zero and don’t jump any numbers). The command for writing the ID’s are as follows:

touch simulationID.txt
echo "1" > simulationID.txt

Finally, copy and replace “libv_repExtRosInterface.so” from /home/mat/workspace/gorobots-mthor/utils/v-rep_simulations/v-rep_libs/reallib/libv_repExtRosInterface.so to the V-REP_# directory.

Download Vortex studio from the official webpage here. Unzip the download file in your destination foler. Register an account for academic application, and apply for a activation key. After you got the key, you can flollow the instruction to activate your lisence. Normally, go to your vorex studio folder/ bin, using the command VortexLisenceManger -- activation key. This command will produce a lisence.lic file which will be store at /opt/cmlab/lisence. "VortexLisenceManger --list" will list your vortex information including the expire date of your lisence. The use of the vortex studio can be see at here