Merge API branch into main #12

Merged
SemvdH merged 334 commits from api into main 2023-06-13 19:54:43 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit bcd4f891d2 - Show all commits

View File

@@ -171,7 +171,7 @@
}
function send_move_request(data) {
console.log("sending move request " + data);
// console.log("sending move request " + data);
var xhr = new XMLHttpRequest();
xhr.open("POST", "/move", true);
xhr.setRequestHeader("Content-Type", "application/json");

View File

@@ -32,7 +32,7 @@ class CameraController(Node):
self.websocket = None
self.server = None
self.event_loop = None
self.event_loop = None
# self.websocket_thread = threading.Thread(target=self.start_listening)
# self.websocket_thread.start()
@@ -93,7 +93,7 @@ class CameraController(Node):
error_amount += 1
if error_amount > 20:
self.get_logger().error("Too many errors, closing node")
sys.exit(-1)
self.destroy_node()
def handle_video_connection(self):