From 85c361ef88b8f4a262ea1e9e4ac375a9be635a09 Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 5 Nov 2023 15:39:10 +0100 Subject: [PATCH] code style --- commit_and_push.sh | 7 +++++++ requirements.txt | 6 +++++- robot.py | 11 ++++++----- 3 files changed, 18 insertions(+), 6 deletions(-) create mode 100755 commit_and_push.sh diff --git a/commit_and_push.sh b/commit_and_push.sh new file mode 100755 index 0000000..554786f --- /dev/null +++ b/commit_and_push.sh @@ -0,0 +1,7 @@ +git add * + +read -p "Commit message: " commit_message + +git commit -m "$commit_message" + +git push -u origin main \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index de4072f..4d0e7c9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,5 @@ -python-dotenv==1.0.0 \ No newline at end of file +python-dotenv==1.0.0 +uvicorn==0.24.0 +fastapi==0.104.1 +opencv-python==4.8.1.78 +pyapriltags==3.3.0.3 \ No newline at end of file diff --git a/robot.py b/robot.py index c36b0a5..eb69565 100644 --- a/robot.py +++ b/robot.py @@ -15,11 +15,12 @@ ConnectedModule = None def InitRobot(): # TODO: get amount of joints and connected module from the esp (greifer) - res = requests.post(config.robot_control_server_url + "/robot", json={ - "id": config.robot_id, - "type": config.robot_type, - "firmwareVersion": config.robot_firmware_version - }) + res = requests.post(config.robot_control_server_url + "/robot", + json={ + "id": config.robot_id, + "type": config.robot_type, + "firmwareVersion": config.robot_firmware_version + }) logging.info(res.status_code)