Professional Documents
Culture Documents
regiona;
regionb;
regionc;
regiond;
//
//
//
//
Point
Point
store
store
void setup() {
{
{
{
{
{
(regiond<-300)
}
void circlemarker()//Creates the point to be viewed on screen in 2 dimension
{
stroke(0, 25, 90);// displays the point
strokeWeight(25);//size of point
sensorvalue.convertRealWorldToProjective(vectorb, vectora);//convert from stro
ke value to display on vector
point(vectora.x, vectora.y);//displayed in 2 dimension with x and y axis
}
boolean serial = false; //declaration for loop to open
void arduinocomm() {
serialcommunication.write('Q');//charactervalue used to indicate program
serialcommunication.write(SPEED1);//send direction to arduino
serialcommunication.write(SPEED2);//sends forward or reverse command to arduin
o
serialcommunication.write(SPEED3);//sends PWM speed control to Arduino
}
import SimpleOpenNI.*;
SimpleOpenNI sensorvalue;
XnVSessionManager sessionManager;
XnVPointControl pointControl;
Serial serialcommunication;