Skip to content

Commit d4cbd82

Browse files
committed
Delete old Aruco
1 parent 3724a97 commit d4cbd82

File tree

9 files changed

+39
-515
lines changed

9 files changed

+39
-515
lines changed

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

Lines changed: 8 additions & 17 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";
@@ -38,10 +37,6 @@ const allTabs = Object.freeze({
3837
tabName: "AprilTag",
3938
component: AprilTagTab
4039
},
41-
arucoTab: {
42-
tabName: "Aruco",
43-
component: ArucoTab
44-
},
4540
objectDetectionTab: {
4641
tabName: "Object Detection",
4742
component: ObjectDetectionTab
@@ -77,7 +72,6 @@ const getTabGroups = (): ConfigOption[][] => {
7772
allTabs.thresholdTab,
7873
allTabs.contoursTab,
7974
allTabs.apriltagTab,
80-
allTabs.arucoTab,
8175
allTabs.objectDetectionTab,
8276
allTabs.outputTab
8377
],
@@ -86,21 +80,14 @@ const getTabGroups = (): ConfigOption[][] => {
8680
} else if (lgAndDown.value) {
8781
return [
8882
[allTabs.inputTab],
89-
[
90-
allTabs.thresholdTab,
91-
allTabs.contoursTab,
92-
allTabs.apriltagTab,
93-
allTabs.arucoTab,
94-
allTabs.objectDetectionTab,
95-
allTabs.outputTab
96-
],
83+
[allTabs.thresholdTab, allTabs.contoursTab, allTabs.apriltagTab, allTabs.objectDetectionTab, allTabs.outputTab],
9784
[allTabs.targetsTab, allTabs.pnpTab, allTabs.map3dTab]
9885
];
9986
} else if (xl.value) {
10087
return [
10188
[allTabs.inputTab],
10289
[allTabs.thresholdTab],
103-
[allTabs.contoursTab, allTabs.apriltagTab, allTabs.arucoTab, allTabs.objectDetectionTab, allTabs.outputTab],
90+
[allTabs.contoursTab, allTabs.apriltagTab, allTabs.objectDetectionTab, allTabs.outputTab],
10491
[allTabs.targetsTab, allTabs.pnpTab, allTabs.map3dTab]
10592
];
10693
}
@@ -126,8 +113,7 @@ const tabGroups = computed<ConfigOption[][]>(() => {
126113
!((isAprilTag || isAruco || isObjectDetection) && tabConfig.tabName === "Threshold") && //Filter out threshold tab if we're doing AprilTags
127114
!((isAprilTag || isAruco || isObjectDetection) && tabConfig.tabName === "Contours") && //Filter out contours if we're doing AprilTags
128115
!(!isAprilTag && tabConfig.tabName === "AprilTag") && //Filter out apriltag unless we actually are doing AprilTags
129-
!(!isAruco && tabConfig.tabName === "Aruco") &&
130-
!(!isObjectDetection && tabConfig.tabName === "Object Detection") //Filter out aruco unless we actually are doing Aruco
116+
!(!isObjectDetection && tabConfig.tabName === "Object Detection")
131117
)
132118
)
133119
.filter((it) => it.length); // Remove empty tab groups
@@ -137,6 +123,11 @@ const onBeforeTabUpdate = () => {
137123
// Force the current tab to the input tab on driver mode change
138124
if (useCameraSettingsStore().isDriverMode) {
139125
selectedTabs.value[0] = 0;
126+
} else if (
127+
useCameraSettingsStore().currentWebsocketPipelineType === WebsocketPipelineType.Aruco &&
128+
selectedTabs.value[0] == 2
129+
) {
130+
selectedTabs.value[0]--;
140131
}
141132
};
142133
</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)