- To run, you need two MATLAB nodes opened.
- On each of the two nodes, clone this repo:
git clone https://github.com/yemam3/robustCBFs_with_GPs.git - One node will run the experiment (robotarium node)
- Other node will handle fitting the GPs (gp node)
- Clone MQTT MATLAB interface:
git clone https://github.com/gnotomista/mqtt_matlab_interface.git - The readme will contain information on how to setup mqtt using a broker (e.g. emqtt, mosquitto)
- Set the
COMM_MODEtoMQTTin theinit.mfile - Specify the IP and PORT to be used for the communication (e.g.
localhost,1883) - Make sure to add
mqtt_matlab_interfaceto the path (edit init file)
- If both nodes can share files (e.g. on same computer), we can just communicate using writing/reading files
- Set the
COMM_MODEtoFileSharingin theinit.mfile
- Set
IS_SIMto0in theinit.mfile
- Clone the Robotarium MATLAB simulator:
git clone https://github.com/robotarium/robotarium-matlab-simulator.git - Set
IS_SIMto1in theinit.mfile (this will add fake noise to the data)
- Run
main_robotarium.mon the robotarium node (runs robots and collects data) - Run
main_gpr.mon the gp node (this node receives the data, runs fitrgp and returns models)