I'm looking for some guidance on a project that I've been doing for quite a long time; the project is about a 4WD robotic platform for obstacle avoidance with haptic feedback. if you know about the appropriate communication protocols for my project and can tell me something based on your experience with some similar projects - I will really appreciate it. so, I'm going to tell you what I've done so far.
I'm already taking the distances where the obstacle is located to my ESP8266. This is through a 340° detector made out of two Vl53L0X TOF sensors that use I2C CP, and a micro servo motor to make them turn around. With the same board, I control four Servos Dynamixel that use UART CP.
I command the robot through a web page and receive the data of each sensor in real-time (a delay of 2s) this using TCPIP protocol and HTTP.
my questions are:
How can I read the data on the web page using VREP which is where the haptic control will be implemented?
Do you know any other way to connect via WIFI the ESP8266 with VREP and stablish a bidirectional communication?
I tried using MATLAB to read the data from the web page and send it back to VREP afterward, but I haven't succeeded, yet. I can just write data, so far. All this using the function TCPIP and TCPCLIENT. Is it convenient to use MATLAB as a bridge between the ESP8266 and VREP? If so, What am I missing to succeed in this?