本文整理汇总了Java中edu.wpi.first.wpilibj.image.CriteriaCollection.addCriteria方法的典型用法代码示例。如果您正苦于以下问题:Java CriteriaCollection.addCriteria方法的具体用法?Java CriteriaCollection.addCriteria怎么用?Java CriteriaCollection.addCriteria使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类edu.wpi.first.wpilibj.image.CriteriaCollection
的用法示例。
在下文中一共展示了CriteriaCollection.addCriteria方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import edu.wpi.first.wpilibj.image.CriteriaCollection; //导入方法依赖的package包/类
public void init() {
camera = AxisCamera.getInstance();
cc = new CriteriaCollection();
cc.addCriteria(NIVision.MeasurementType.IMAQ_MT_AREA, 200, 65536, false);
}
示例2: init
import edu.wpi.first.wpilibj.image.CriteriaCollection; //导入方法依赖的package包/类
public void init()
{
cc = new CriteriaCollection();
cc.addCriteria(NIVision.MeasurementType.IMAQ_MT_AREA, AREA_MINIMUM, 65535, false);
ledState = Relay.Value.kOff;
}
示例3: VisionController
import edu.wpi.first.wpilibj.image.CriteriaCollection; //导入方法依赖的package包/类
private VisionController() {
camera = AxisCamera.getInstance();
cc = new CriteriaCollection(); // create the criteria for the particle filter
cc.addCriteria(NIVision.MeasurementType.IMAQ_MT_AREA, AREA_MINIMUM, 65535, false);
target = new TargetReport();
verticalTargets = new int[MAX_PARTICLES];
horizontalTargets = new int[MAX_PARTICLES];
}
示例4: Vision
import edu.wpi.first.wpilibj.image.CriteriaCollection; //导入方法依赖的package包/类
public Vision() {
if (enableVision) camera = AxisCamera.getInstance("10.25.2.11");
lastFrame = System.currentTimeMillis();
frameProcess = 0;
cc = new CriteriaCollection();
cc.addCriteria(MeasurementType.IMAQ_MT_AREA, 3000, 6000, false);
distanceReg = new Regression(0.0000086131992, -0.0893246981, 244.5414525); // a, b, c
angleReg = new Regression(15.32142857, -565.2928571, 5720.678571); // a, b, c
SmartDashboard.putNumber("Angle Regression Constant", angleReg.getConstant());
}
示例5: robotInit
import edu.wpi.first.wpilibj.image.CriteriaCollection; //导入方法依赖的package包/类
public void robotInit() {
camera = AxisCamera.getInstance();
cc = new CriteriaCollection();
cc.addCriteria(MeasurementType.IMAQ_MT_BOUNDING_RECT_WIDTH, 0, 0, false);
cc.addCriteria(MeasurementType.IMAQ_MT_BOUNDING_RECT_HEIGHT, 0, 0, false); //todo: check WPILibJ documentation
SmartDashboard.putBoolean("Grab state", false);
SmartDashboard.putBoolean("Lift state", false);
System.out.println("RobotInit() completed. \n");
}
示例6: AxisCameraM1101
import edu.wpi.first.wpilibj.image.CriteriaCollection; //导入方法依赖的package包/类
public AxisCameraM1101() {
camera = AxisCamera.getInstance();
criteriaCollection = new CriteriaCollection();
criteriaCollection.addCriteria(NIVision.MeasurementType.IMAQ_MT_AREA,
AREA_MINIMUM, 65535, true);
}
示例7: CameraDetection
import edu.wpi.first.wpilibj.image.CriteriaCollection; //导入方法依赖的package包/类
public CameraDetection(){
//camera = AxisCamera.getInstance();
System.out.println("Started Camera.");
cc = new CriteriaCollection(); // create the criteria for the particle filter
cc.addCriteria(NIVision.MeasurementType.IMAQ_MT_AREA, AREA_MINIMUM, 65535, false);
}
示例8: vision
import edu.wpi.first.wpilibj.image.CriteriaCollection; //导入方法依赖的package包/类
vision() {
camera = AxisCamera.getInstance("10.14.82.12");
cc = new CriteriaCollection(); // create the criteria for the particle filter
cc.addCriteria(NIVision.MeasurementType.IMAQ_MT_AREA, 500, 65535, false);
}
示例9: robotInit
import edu.wpi.first.wpilibj.image.CriteriaCollection; //导入方法依赖的package包/类
public void robotInit() {
//camera = AxisCamera.getInstance(); // get an instance of the camera
cc = new CriteriaCollection(); // create the criteria for the particle filter
cc.addCriteria(NIVision.MeasurementType.IMAQ_MT_AREA, AREA_MINIMUM, 65535, false);
}