Skip to content

Commit 546ef6b

Browse files
committed
Helpful messages
1 parent f64f446 commit 546ef6b

5 files changed

+167
-5
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"camPath": "platform-fc800000.usb-usb-0:1:1.0-video-index0", "K": [[1022.1123580224721, 0.0, 640.0356135752214], [0.0, 1028.577231930545, 360.3806518758506], [0.0, 0.0, 1.0]], "dist": [[0.029080945115192047, 0.12545977000185524, -0.06344552719163812, -0.05650900366931294, -1.4505190969808648, -0.026520991234485498, -0.045282024241329814, 2.4851707053467926, 0.0540452987111509, -0.023321160650432594, 0.06635102607977282, 0.017782330202466796, 0.15836692410457276, -0.1095345758731561]], "r": [[[-0.020363375487993295], [-0.42421631034087043], [-0.010670860993315955]]], "t": [[[-3.054077475053525], [-3.2607693682459407], [13.30214371095907]]], "reproj": 0.04290054709812047, "resolution": [1280, 720]}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"camPath": "platform-fc800000.usb-usb-0:1:1.0-video-index0", "K": [[652.2413245674545, 0.0, 320.1681721491049], [0.0, 662.7488725285242, 238.503827426734], [0.0, 0.0, 1.0]], "dist": [[0.019889171285544953, 0.28084078200058277, 0.011307077924049148, -0.05506265778300677, -5.778373516783921, -0.02322776008858135, -0.396453232356085, 3.799817891831927, 0.04001347217454527, 0.016523105443021418, -0.009479384005965985, 0.04778243498639779, -0.021570102913183602, -0.1234826171655912]], "r": [[[-0.4609578858123666], [-0.5238772190892192], [-0.062079854597638276]]], "t": [[[-3.208293954763763], [-2.3149553903102422], [14.593697184748265]]], "reproj": 0.021753023839549204, "resolution": [640, 480]}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"Resolution": [1280, 720], "Gain": -1.0, "Exposure": 66.0}
1+
{"Resolution": [640, 480], "Gain": -1.0, "Exposure": 54.0}

WebInterface/web_interface.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,12 @@ def toggle_calibration(camID):
8181
walleyeData.reprojectionError = None
8282
walleyeData.currentState = States.BEGIN_CALIBRATION
8383
logger.info(f"Starting calibration capture for {camID}")
84+
walleyeData.status = "Starting calibration capture for {camID}"
8485

8586
elif walleyeData.currentState == States.CALIBRATION_CAPTURE:
8687
walleyeData.currentState = States.IDLE
8788
logger.info(f"Stopping calibration capture")
89+
walleyeData.status = "Stopping calibration capture"
8890

8991

9092
@socketio.on("generate_calibration")
@@ -93,6 +95,7 @@ def generate_calibration(camID):
9395
walleyeData.currentState = States.GENERATE_CALIBRATION
9496
walleyeData.cameraInCalibration = camID
9597
walleyeData.cameras.info[camID].calibrationPath = None
98+
walleyeData.status = "Calibration generation"
9699

97100

98101
@socketio.on("import_calibration")
@@ -122,9 +125,8 @@ def import_calibration(camID, file):
122125
@updateAfter
123126
def import_config(file):
124127
logger.info("Importing config")
125-
logger.info(file)
128+
walleyeData.status = "Importing config"
126129
with zipfile.ZipFile(io.BytesIO(file), "r") as config:
127-
logger.info(f"Files: {config.namelist()}")
128130
for name in config.namelist():
129131
config.extract(name)
130132
logger.info(f"Extracted {name}")
@@ -143,6 +145,7 @@ def import_config(file):
143145
@updateAfter
144146
def export_config():
145147
logger.info("Attempting to prepare config.zip")
148+
walleyeData.status = "Attempting to prepare config.zip"
146149
directory = pathlib.Path(".")
147150

148151

@@ -165,8 +168,6 @@ def export_config():
165168
socketio.emit("config_ready")
166169

167170

168-
169-
170171
@socketio.on("set_table_name")
171172
@updateAfter
172173
def set_table_name(name):
@@ -227,6 +228,7 @@ def toggle_pnp():
227228
@updateAfter
228229
def toggle_pose_visualization():
229230
walleyeData.visualizingPoses = not walleyeData.visualizingPoses
231+
walleyeData.status = "Visualizing poses" if walleyeData.visualizingPoses else "Not visualizating poses"
230232

231233

232234
@socketio.on("pose_update")

0 commit comments

Comments
 (0)