code style

main
alex 2023-11-05 15:39:10 +01:00
parent 0b8a0f37df
commit 85c361ef88
3 changed files with 18 additions and 6 deletions

7
commit_and_push.sh Executable file
View File

@ -0,0 +1,7 @@
git add *
read -p "Commit message: " commit_message
git commit -m "$commit_message"
git push -u origin main

View File

@ -1 +1,5 @@
python-dotenv==1.0.0
python-dotenv==1.0.0
uvicorn==0.24.0
fastapi==0.104.1
opencv-python==4.8.1.78
pyapriltags==3.3.0.3

View File

@ -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)