BowlerKernel
BlobCommand.java
Go to the documentation of this file.
1 package com.neuronrobotics.sdk.commands.neuronrobotics.bowlercam;
2 
3 import java.awt.Color;
4 
5 import com.neuronrobotics.sdk.common.BowlerAbstractCommand;
6 import com.neuronrobotics.sdk.common.BowlerMethod;
7 
8 // TODO: Auto-generated Javadoc
12 public class BlobCommand extends BowlerAbstractCommand {
13 
23  public BlobCommand(Color c, int threshhold,boolean within,int minBlobSize,int maxBlobSize){
25  setOpCode("blob");
26  getCallingDataStorage().add(c.getRed());
27  getCallingDataStorage().add(c.getGreen());
28  getCallingDataStorage().add(c.getBlue());
29  getCallingDataStorage().add(threshhold);
30  getCallingDataStorage().add(within?1:0);
31 
32  getCallingDataStorage().addAs32(minBlobSize);
33  getCallingDataStorage().addAs32(maxBlobSize);
34  }
35 
43  public BlobCommand(int x,int y,int radius){
45  setOpCode("blob");
49  }
50 
54  public BlobCommand(){
56  setOpCode("blob");
57  }
58 }
BlobCommand(Color c, int threshhold, boolean within, int minBlobSize, int maxBlobSize)
synchronized boolean add(byte data)
Definition: ByteList.java:149