diff --git a/src/config.js b/src/config.js index 93a0e05..bf5bc2d 100644 --- a/src/config.js +++ b/src/config.js @@ -5,6 +5,7 @@ export const ROSBRIDGE_URL = 'ws://192.168.0.11:9090' export const MJPEG_AUTO_URL = 'http://192.168.0.11/stream?topic=/vision/result_image&mode=auto' export const MJPEG_MANUAL_URL = 'http://192.168.0.11/stream?topic=/vision/result_image&mode=manual' +export const MJPEG_DEBUG_URL = 'http://192.168.0.11/stream?topic=/vision/debug_image&mode=debug' // ROS 话题 export const CMD_WHEEL_TOPIC = '/cmd_wheel' diff --git a/src/views/AutoMode.vue b/src/views/AutoMode.vue index 99055e0..506e94a 100644 --- a/src/views/AutoMode.vue +++ b/src/views/AutoMode.vue @@ -56,5 +56,5 @@ async function switchToAuto() { display: flex; justify-content: center; } -.stream { max-width: 100%; height: auto; } +.stream { max-width: 100%; max-height: 70vh; object-fit: contain; } diff --git a/src/views/DebugMode.vue b/src/views/DebugMode.vue index 60b09cc..c69c31c 100644 --- a/src/views/DebugMode.vue +++ b/src/views/DebugMode.vue @@ -51,14 +51,27 @@ {{ saving ? '保存中...' : '保存配置' }} + +
+ MJPEG Stream +