modified app, cpp and thrift to allow communication with matlab to read the affordance prediction and perform the action accordingly