Merge API branch into main #12

Merged
SemvdH merged 334 commits from api into main 2023-06-13 19:54:43 +00:00
Showing only changes of commit d9a4e87756 - Show all commits

View File

@@ -73,6 +73,9 @@ class CameraController(Node):
man = cv2.imencode('.jpg', frame, encode_param)[1]
self.get_logger().info('Sending video')
await self.websocket.send(man.tobytes())
else:
self.get_logger().info('No websocket connection')
await asyncio.sleep(1)
except Exception as e:
self.get_logger().error('Something went wrong while reading and sending video: ' + str(e))