Skip to content

Commit 4ac3f92

Browse files
committed
Delete old Aruco
1 parent 731fd37 commit 4ac3f92

File tree

9 files changed

+42
-517
lines changed

9 files changed

+42
-517
lines changed

photon-client/src/components/dashboard/ConfigOptions.vue

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import InputTab from "@/components/dashboard/tabs/InputTab.vue";
77
import ThresholdTab from "@/components/dashboard/tabs/ThresholdTab.vue";
88
import ContoursTab from "@/components/dashboard/tabs/ContoursTab.vue";
99
import AprilTagTab from "@/components/dashboard/tabs/AprilTagTab.vue";
10-
import ArucoTab from "@/components/dashboard/tabs/ArucoTab.vue";
1110
import ObjectDetectionTab from "@/components/dashboard/tabs/ObjectDetectionTab.vue";
1211
import OutputTab from "@/components/dashboard/tabs/OutputTab.vue";
1312
import TargetsTab from "@/components/dashboard/tabs/TargetsTab.vue";
@@ -29,7 +28,6 @@ const allTabs = Object.freeze({
2928
thresholdTab: { tabName: "Threshold", component: ThresholdTab },
3029
contoursTab: { tabName: "Contours", component: ContoursTab },
3130
apriltagTab: { tabName: "AprilTag", component: AprilTagTab },
32-
arucoTab: { tabName: "Aruco", component: ArucoTab },
3331
objectDetectionTab: { tabName: "Object Detection", component: ObjectDetectionTab },
3432
outputTab: { tabName: "Output", component: OutputTab },
3533
targetsTab: { tabName: "Targets", component: TargetsTab },
@@ -50,7 +48,6 @@ const getTabGroups = (): ConfigOption[][] => {
5048
allTabs.thresholdTab,
5149
allTabs.contoursTab,
5250
allTabs.apriltagTab,
53-
allTabs.arucoTab,
5451
allTabs.objectDetectionTab,
5552
allTabs.outputTab
5653
],
@@ -59,21 +56,14 @@ const getTabGroups = (): ConfigOption[][] => {
5956
} else if (lgAndDown.value) {
6057
return [
6158
[allTabs.inputTab],
62-
[
63-
allTabs.thresholdTab,
64-
allTabs.contoursTab,
65-
allTabs.apriltagTab,
66-
allTabs.arucoTab,
67-
allTabs.objectDetectionTab,
68-
allTabs.outputTab
69-
],
59+
[allTabs.thresholdTab, allTabs.contoursTab, allTabs.apriltagTab, allTabs.objectDetectionTab, allTabs.outputTab],
7060
[allTabs.targetsTab, allTabs.pnpTab, allTabs.map3dTab]
7161
];
7262
} else if (xl.value) {
7363
return [
7464
[allTabs.inputTab],
7565
[allTabs.thresholdTab],
76-
[allTabs.contoursTab, allTabs.apriltagTab, allTabs.arucoTab, allTabs.objectDetectionTab, allTabs.outputTab],
66+
[allTabs.contoursTab, allTabs.apriltagTab, allTabs.objectDetectionTab, allTabs.outputTab],
7767
[allTabs.targetsTab, allTabs.pnpTab, allTabs.map3dTab]
7868
];
7969
}
@@ -99,8 +89,7 @@ const tabGroups = computed<ConfigOption[][]>(() => {
9989
!((isAprilTag || isAruco || isObjectDetection) && tabConfig.tabName === "Threshold") && //Filter out threshold tab if we're doing AprilTags
10090
!((isAprilTag || isAruco || isObjectDetection) && tabConfig.tabName === "Contours") && //Filter out contours if we're doing AprilTags
10191
!(!isAprilTag && tabConfig.tabName === "AprilTag") && //Filter out apriltag unless we actually are doing AprilTags
102-
!(!isAruco && tabConfig.tabName === "Aruco") &&
103-
!(!isObjectDetection && tabConfig.tabName === "Object Detection") //Filter out aruco unless we actually are doing Aruco
92+
!(!isObjectDetection && tabConfig.tabName === "Object Detection")
10493
)
10594
)
10695
.filter((it) => it.length); // Remove empty tab groups
@@ -110,6 +99,11 @@ const onBeforeTabUpdate = () => {
11099
// Force the current tab to the input tab on driver mode change
111100
if (useCameraSettingsStore().isDriverMode) {
112101
selectedTabs.value[0] = 0;
102+
} else if (
103+
useCameraSettingsStore().currentWebsocketPipelineType === WebsocketPipelineType.Aruco &&
104+
selectedTabs.value[0] == 2
105+
) {
106+
selectedTabs.value[0]--;
113107
}
114108
};
115109
</script>

photon-client/src/components/dashboard/tabs/ArucoTab.vue

Lines changed: 0 additions & 87 deletions
This file was deleted.

photon-core/src/main/java/org/photonvision/vision/aruco/PhotonArucoDetector.java

Lines changed: 0 additions & 131 deletions
This file was deleted.

0 commit comments

Comments
 (0)