Spaces:
Runtime error
Runtime error
Update visualization/logger.py
Browse files- visualization/logger.py +4 -2
visualization/logger.py
CHANGED
|
@@ -107,8 +107,10 @@ class SimulationLogger:
|
|
| 107 |
except Exception as e:
|
| 108 |
print(f"Error logging camera trajectory: {str(e)}")
|
| 109 |
|
| 110 |
-
def
|
| 111 |
-
"""
|
|
|
|
|
|
|
| 112 |
if not camera_frames:
|
| 113 |
return
|
| 114 |
|
|
|
|
| 107 |
except Exception as e:
|
| 108 |
print(f"Error logging camera trajectory: {str(e)}")
|
| 109 |
|
| 110 |
+
def log_camera_frames(self, camera_frames: List[Dict[str, Any]], subjects: List[Dict[str, Any]] = None) -> None:
|
| 111 |
+
"""Log camera frames and optionally their corresponding subjects"""
|
| 112 |
+
if subjects is None:
|
| 113 |
+
subjects = []
|
| 114 |
if not camera_frames:
|
| 115 |
return
|
| 116 |
|