mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-15 16:49:55 +00:00
cam res
This commit is contained in:
committed by
Michel Aractingi
parent
40e98ba690
commit
9b04fd25b6
@@ -96,6 +96,21 @@ function App() {
|
||||
};
|
||||
|
||||
const setupRobots = async () => {
|
||||
// Show warning to verify camera positions
|
||||
const confirmed = window.confirm(
|
||||
'⚠️ IMPORTANT: Before connecting robots, please verify:\n\n' +
|
||||
'📹 Check that cameras are correctly positioned:\n' +
|
||||
' • LEFT wrist camera is actually on the LEFT arm\n' +
|
||||
' • RIGHT wrist camera is actually on the RIGHT arm\n' +
|
||||
' • BASE camera is actually the BASE/overhead camera\n\n' +
|
||||
'Incorrect camera positioning will result in invalid training data!\n\n' +
|
||||
'Click OK to continue with robot setup, or Cancel to review configuration.'
|
||||
);
|
||||
|
||||
if (!confirmed) {
|
||||
return; // User cancelled, don't proceed
|
||||
}
|
||||
|
||||
setError(null);
|
||||
try {
|
||||
const response = await fetch(`${API_BASE}/robots/setup`, {
|
||||
|
||||
@@ -176,8 +176,8 @@ def initialize_robots_only(config: RobotSetupConfig):
|
||||
# Update status: Configuring cameras
|
||||
recording_state["status_message"] = "Configuring cameras..."
|
||||
camera_config = {
|
||||
"left_wrist": OpenCVCameraConfig(index_or_path=config.left_wrist, width=640, height=480, fps=FPS),
|
||||
"right_wrist": OpenCVCameraConfig(index_or_path=config.right_wrist, width=640, height=480, fps=FPS),
|
||||
"left_wrist": OpenCVCameraConfig(index_or_path=config.left_wrist, width=1280, height=720, fps=FPS),
|
||||
"right_wrist": OpenCVCameraConfig(index_or_path=config.right_wrist, width=1280, height=720, fps=FPS),
|
||||
"base": OpenCVCameraConfig(index_or_path=config.base, width=640, height=480, fps=FPS),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user