#include "Behaviors/StateMachine.h"

$nodeclass Lab5Q4 : VisualRoutinesStateNode : doStart {
  NEW_SKETCH(yuvFrame, yuv, sketchFromYUV());
  NEW_SKETCH(depthFrame, usint, sketchFromDepth());
  cout << "Look in the camera sketch space for the results." << endl;
  camSkS.requireIdx4way();
  NEW_SKETCH(edges1, usint, (depthFrame-depthFrame[*camSkS.idxS])*(depthFrame-depthFrame[*camSkS.idxS])+(depthFrame-depthFrame[*camSkS.idxE])*(depthFrame-depthFrame[*camSkS.idxE]) > 450);
}


REGISTER_BEHAVIOR(Lab5Q4);
