Updates to use process for camera stream

This commit is contained in:
Rune Harlyk
2024-03-07 15:14:10 +01:00
parent 971418fce8
commit 9e40e01065
5 changed files with 54 additions and 36 deletions
+5 -3
View File
@@ -27,8 +27,9 @@ def main():
)
kinematics = SpotModel()
camera = WebCamera()
camera = PyBulletCamera(env.spot.quadruped)
# camera = WebCamera()
frame_queue = Queue(maxsize=10)
camera = PyBulletCamera(env.spot.quadruped, frame_queue=frame_queue)
imu = IMU()
hardware_interface = PyBulletHardwareInterface(env)
# shared_controller_state = SharedState()
@@ -36,7 +37,8 @@ def main():
spot = Spot(
kinematics,
camera,
camera,
frame_queue,
imu,
hardware_interface,
controller_interface,