change from asyncio to normal thread

This commit is contained in:
Sem van der Hoeven
2023-06-02 15:33:22 +02:00
parent 50eafe6720
commit 1a7efcfa23
2 changed files with 46 additions and 4 deletions

View File

@@ -57,10 +57,6 @@ class CameraController(Node):
return response
def handle_video_connection(self):
self.get_logger().info('Starting video thread')
asyncio.run(self.send_video())
async def send_video(self):
self.get_logger().info('Starting sending video')
vid = cv2.VideoCapture(0)