diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..eaeb48b --- /dev/null +++ b/.gitignore @@ -0,0 +1,25 @@ +# Python bytecode/cache files +__pycache__/ +*.py[cod] +*$py.class + +# Python build/package artifacts +build/ +dist/ +*.egg-info/ +*.egg + +# Python tooling caches +.pytest_cache/ +.mypy_cache/ +.ruff_cache/ +.coverage +htmlcov/ + +# Virtual environments +.venv/ +venv/ +env/ + +# Local agent/tooling state +.omx/ diff --git a/LinkerHand/__pycache__/__init__.cpython-310.pyc b/LinkerHand/__pycache__/__init__.cpython-310.pyc deleted file mode 100644 index 6c28159..0000000 Binary files a/LinkerHand/__pycache__/__init__.cpython-310.pyc and /dev/null differ diff --git a/LinkerHand/__pycache__/__init__.cpython-311.pyc b/LinkerHand/__pycache__/__init__.cpython-311.pyc deleted file mode 100644 index 1fb9839..0000000 Binary files a/LinkerHand/__pycache__/__init__.cpython-311.pyc and /dev/null differ diff --git a/LinkerHand/__pycache__/__init__.cpython-312.pyc b/LinkerHand/__pycache__/__init__.cpython-312.pyc deleted file mode 100644 index 34e16f3..0000000 Binary files a/LinkerHand/__pycache__/__init__.cpython-312.pyc and /dev/null differ diff --git a/LinkerHand/__pycache__/__init__.cpython-38.pyc b/LinkerHand/__pycache__/__init__.cpython-38.pyc deleted file mode 100644 index 065032a..0000000 Binary files a/LinkerHand/__pycache__/__init__.cpython-38.pyc and /dev/null differ diff --git a/LinkerHand/__pycache__/__init__.cpython-39.pyc b/LinkerHand/__pycache__/__init__.cpython-39.pyc deleted file mode 100644 index 76fd453..0000000 Binary files a/LinkerHand/__pycache__/__init__.cpython-39.pyc and /dev/null differ diff --git a/LinkerHand/__pycache__/linker_hand_api.cpython-310.pyc b/LinkerHand/__pycache__/linker_hand_api.cpython-310.pyc deleted file mode 100644 index ea7de82..0000000 Binary files a/LinkerHand/__pycache__/linker_hand_api.cpython-310.pyc and /dev/null differ diff --git a/LinkerHand/__pycache__/linker_hand_api.cpython-311.pyc b/LinkerHand/__pycache__/linker_hand_api.cpython-311.pyc deleted file mode 100644 index 2c73fe5..0000000 Binary files a/LinkerHand/__pycache__/linker_hand_api.cpython-311.pyc and /dev/null differ diff --git a/LinkerHand/__pycache__/linker_hand_api.cpython-312.pyc b/LinkerHand/__pycache__/linker_hand_api.cpython-312.pyc deleted file mode 100644 index c9c74d0..0000000 Binary files a/LinkerHand/__pycache__/linker_hand_api.cpython-312.pyc and /dev/null differ diff --git a/LinkerHand/__pycache__/linker_hand_api.cpython-38.pyc b/LinkerHand/__pycache__/linker_hand_api.cpython-38.pyc deleted file mode 100644 index 6b0c4bd..0000000 Binary files a/LinkerHand/__pycache__/linker_hand_api.cpython-38.pyc and /dev/null differ diff --git a/LinkerHand/__pycache__/linker_hand_api.cpython-39.pyc b/LinkerHand/__pycache__/linker_hand_api.cpython-39.pyc deleted file mode 100644 index 30d1a03..0000000 Binary files a/LinkerHand/__pycache__/linker_hand_api.cpython-39.pyc and /dev/null differ diff --git a/LinkerHand/core/__pycache__/__init__.cpython-310.pyc b/LinkerHand/core/__pycache__/__init__.cpython-310.pyc deleted file mode 100644 index 492c5aa..0000000 Binary files a/LinkerHand/core/__pycache__/__init__.cpython-310.pyc and /dev/null differ diff --git a/LinkerHand/core/__pycache__/__init__.cpython-311.pyc b/LinkerHand/core/__pycache__/__init__.cpython-311.pyc deleted file mode 100644 index 6a429e9..0000000 Binary files a/LinkerHand/core/__pycache__/__init__.cpython-311.pyc and /dev/null differ diff --git a/LinkerHand/core/__pycache__/__init__.cpython-312.pyc b/LinkerHand/core/__pycache__/__init__.cpython-312.pyc deleted file mode 100644 index 9ef5965..0000000 Binary files a/LinkerHand/core/__pycache__/__init__.cpython-312.pyc and /dev/null differ diff --git a/LinkerHand/core/__pycache__/__init__.cpython-38.pyc b/LinkerHand/core/__pycache__/__init__.cpython-38.pyc deleted file mode 100644 index 4ea713f..0000000 Binary files a/LinkerHand/core/__pycache__/__init__.cpython-38.pyc and /dev/null differ diff --git a/LinkerHand/core/__pycache__/__init__.cpython-39.pyc b/LinkerHand/core/__pycache__/__init__.cpython-39.pyc deleted file mode 100644 index 90f7080..0000000 Binary files a/LinkerHand/core/__pycache__/__init__.cpython-39.pyc and /dev/null differ diff --git a/LinkerHand/core/__pycache__/linker_hand_l10_can.cpython-312.pyc b/LinkerHand/core/__pycache__/linker_hand_l10_can.cpython-312.pyc deleted file mode 100644 index 0926ae5..0000000 Binary files a/LinkerHand/core/__pycache__/linker_hand_l10_can.cpython-312.pyc and /dev/null differ diff --git a/LinkerHand/core/__pycache__/linker_hand_l10_can.cpython-38.pyc b/LinkerHand/core/__pycache__/linker_hand_l10_can.cpython-38.pyc deleted file mode 100644 index 95984c4..0000000 Binary files a/LinkerHand/core/__pycache__/linker_hand_l10_can.cpython-38.pyc and /dev/null differ diff --git a/LinkerHand/core/__pycache__/linker_hand_l20_can.cpython-38.pyc b/LinkerHand/core/__pycache__/linker_hand_l20_can.cpython-38.pyc deleted file mode 100644 index 2e62387..0000000 Binary files a/LinkerHand/core/__pycache__/linker_hand_l20_can.cpython-38.pyc and /dev/null differ diff --git a/LinkerHand/core/__pycache__/linker_hand_l21_can.cpython-38.pyc b/LinkerHand/core/__pycache__/linker_hand_l21_can.cpython-38.pyc deleted file mode 100644 index 6329503..0000000 Binary files a/LinkerHand/core/__pycache__/linker_hand_l21_can.cpython-38.pyc and /dev/null differ diff --git a/LinkerHand/core/__pycache__/linker_hand_l24_can.cpython-311.pyc b/LinkerHand/core/__pycache__/linker_hand_l24_can.cpython-311.pyc deleted file mode 100644 index fc4b38f..0000000 Binary files a/LinkerHand/core/__pycache__/linker_hand_l24_can.cpython-311.pyc and /dev/null differ diff --git a/LinkerHand/core/__pycache__/linker_hand_l24_can.cpython-38.pyc b/LinkerHand/core/__pycache__/linker_hand_l24_can.cpython-38.pyc deleted file mode 100644 index d148ccb..0000000 Binary files a/LinkerHand/core/__pycache__/linker_hand_l24_can.cpython-38.pyc and /dev/null differ diff --git a/LinkerHand/core/__pycache__/linker_hand_l25_can.cpython-38.pyc b/LinkerHand/core/__pycache__/linker_hand_l25_can.cpython-38.pyc deleted file mode 100644 index aa252a8..0000000 Binary files a/LinkerHand/core/__pycache__/linker_hand_l25_can.cpython-38.pyc and /dev/null differ diff --git a/LinkerHand/core/__pycache__/linker_hand_l25_v2_can.cpython-38.pyc b/LinkerHand/core/__pycache__/linker_hand_l25_v2_can.cpython-38.pyc deleted file mode 100644 index e9fa530..0000000 Binary files a/LinkerHand/core/__pycache__/linker_hand_l25_v2_can.cpython-38.pyc and /dev/null differ diff --git a/LinkerHand/core/__pycache__/linker_hand_l7_can.cpython-312.pyc b/LinkerHand/core/__pycache__/linker_hand_l7_can.cpython-312.pyc deleted file mode 100644 index 77d63f6..0000000 Binary files a/LinkerHand/core/__pycache__/linker_hand_l7_can.cpython-312.pyc and /dev/null differ diff --git a/LinkerHand/core/__pycache__/linker_hand_l7_can.cpython-38.pyc b/LinkerHand/core/__pycache__/linker_hand_l7_can.cpython-38.pyc deleted file mode 100644 index 28989a9..0000000 Binary files a/LinkerHand/core/__pycache__/linker_hand_l7_can.cpython-38.pyc and /dev/null differ diff --git a/LinkerHand/core/can/__pycache__/__init__.cpython-311.pyc b/LinkerHand/core/can/__pycache__/__init__.cpython-311.pyc deleted file mode 100644 index 1075ff6..0000000 Binary files a/LinkerHand/core/can/__pycache__/__init__.cpython-311.pyc and /dev/null differ diff --git a/LinkerHand/core/can/__pycache__/__init__.cpython-312.pyc b/LinkerHand/core/can/__pycache__/__init__.cpython-312.pyc deleted file mode 100644 index a06686e..0000000 Binary files a/LinkerHand/core/can/__pycache__/__init__.cpython-312.pyc and /dev/null differ diff --git a/LinkerHand/core/can/__pycache__/__init__.cpython-38.pyc b/LinkerHand/core/can/__pycache__/__init__.cpython-38.pyc deleted file mode 100644 index bfb397b..0000000 Binary files a/LinkerHand/core/can/__pycache__/__init__.cpython-38.pyc and /dev/null differ diff --git a/LinkerHand/core/can/__pycache__/base_can.cpython-38.pyc b/LinkerHand/core/can/__pycache__/base_can.cpython-38.pyc deleted file mode 100644 index 042c69d..0000000 Binary files a/LinkerHand/core/can/__pycache__/base_can.cpython-38.pyc and /dev/null differ diff --git a/LinkerHand/core/can/__pycache__/linker_hand_g20_can.cpython-312.pyc b/LinkerHand/core/can/__pycache__/linker_hand_g20_can.cpython-312.pyc deleted file mode 100644 index 39a6aae..0000000 Binary files a/LinkerHand/core/can/__pycache__/linker_hand_g20_can.cpython-312.pyc and /dev/null differ diff --git a/LinkerHand/core/can/__pycache__/linker_hand_l10_can.cpython-310.pyc b/LinkerHand/core/can/__pycache__/linker_hand_l10_can.cpython-310.pyc deleted file mode 100644 index e58a8df..0000000 Binary files a/LinkerHand/core/can/__pycache__/linker_hand_l10_can.cpython-310.pyc and /dev/null differ diff --git a/LinkerHand/core/can/__pycache__/linker_hand_l10_can.cpython-312.pyc b/LinkerHand/core/can/__pycache__/linker_hand_l10_can.cpython-312.pyc deleted file mode 100644 index fba8d57..0000000 Binary files a/LinkerHand/core/can/__pycache__/linker_hand_l10_can.cpython-312.pyc and /dev/null differ diff --git a/LinkerHand/core/can/__pycache__/linker_hand_l10_can.cpython-38.pyc b/LinkerHand/core/can/__pycache__/linker_hand_l10_can.cpython-38.pyc deleted file mode 100644 index 4d22146..0000000 Binary files a/LinkerHand/core/can/__pycache__/linker_hand_l10_can.cpython-38.pyc and /dev/null differ diff --git a/LinkerHand/core/can/__pycache__/linker_hand_l20_can.cpython-312.pyc b/LinkerHand/core/can/__pycache__/linker_hand_l20_can.cpython-312.pyc deleted file mode 100644 index 9609e78..0000000 Binary files a/LinkerHand/core/can/__pycache__/linker_hand_l20_can.cpython-312.pyc and /dev/null differ diff --git a/LinkerHand/core/can/__pycache__/linker_hand_l20_can.cpython-38.pyc b/LinkerHand/core/can/__pycache__/linker_hand_l20_can.cpython-38.pyc deleted file mode 100644 index 208533d..0000000 Binary files a/LinkerHand/core/can/__pycache__/linker_hand_l20_can.cpython-38.pyc and /dev/null differ diff --git a/LinkerHand/core/can/__pycache__/linker_hand_l21_can.cpython-312.pyc b/LinkerHand/core/can/__pycache__/linker_hand_l21_can.cpython-312.pyc deleted file mode 100644 index 498efb7..0000000 Binary files a/LinkerHand/core/can/__pycache__/linker_hand_l21_can.cpython-312.pyc and /dev/null differ diff --git a/LinkerHand/core/can/__pycache__/linker_hand_l21_can.cpython-38.pyc b/LinkerHand/core/can/__pycache__/linker_hand_l21_can.cpython-38.pyc deleted file mode 100644 index f85dbb8..0000000 Binary files a/LinkerHand/core/can/__pycache__/linker_hand_l21_can.cpython-38.pyc and /dev/null differ diff --git a/LinkerHand/core/can/__pycache__/linker_hand_l25_can.cpython-312.pyc b/LinkerHand/core/can/__pycache__/linker_hand_l25_can.cpython-312.pyc deleted file mode 100644 index a78a81c..0000000 Binary files a/LinkerHand/core/can/__pycache__/linker_hand_l25_can.cpython-312.pyc and /dev/null differ diff --git a/LinkerHand/core/can/__pycache__/linker_hand_l25_can.cpython-38.pyc b/LinkerHand/core/can/__pycache__/linker_hand_l25_can.cpython-38.pyc deleted file mode 100644 index c30c2cf..0000000 Binary files a/LinkerHand/core/can/__pycache__/linker_hand_l25_can.cpython-38.pyc and /dev/null differ diff --git a/LinkerHand/core/can/__pycache__/linker_hand_l6_can.cpython-312.pyc b/LinkerHand/core/can/__pycache__/linker_hand_l6_can.cpython-312.pyc deleted file mode 100644 index 4f0b772..0000000 Binary files a/LinkerHand/core/can/__pycache__/linker_hand_l6_can.cpython-312.pyc and /dev/null differ diff --git a/LinkerHand/core/can/__pycache__/linker_hand_l6_can.cpython-38.pyc b/LinkerHand/core/can/__pycache__/linker_hand_l6_can.cpython-38.pyc deleted file mode 100644 index d5852b5..0000000 Binary files a/LinkerHand/core/can/__pycache__/linker_hand_l6_can.cpython-38.pyc and /dev/null differ diff --git a/LinkerHand/core/can/__pycache__/linker_hand_l7_can.cpython-312.pyc b/LinkerHand/core/can/__pycache__/linker_hand_l7_can.cpython-312.pyc deleted file mode 100644 index 5aa4a7c..0000000 Binary files a/LinkerHand/core/can/__pycache__/linker_hand_l7_can.cpython-312.pyc and /dev/null differ diff --git a/LinkerHand/core/can/__pycache__/linker_hand_l7_can.cpython-38.pyc b/LinkerHand/core/can/__pycache__/linker_hand_l7_can.cpython-38.pyc deleted file mode 100644 index ff2fbaf..0000000 Binary files a/LinkerHand/core/can/__pycache__/linker_hand_l7_can.cpython-38.pyc and /dev/null differ diff --git a/LinkerHand/core/can/__pycache__/linker_hand_o6_can.cpython-311.pyc b/LinkerHand/core/can/__pycache__/linker_hand_o6_can.cpython-311.pyc deleted file mode 100644 index 73a5248..0000000 Binary files a/LinkerHand/core/can/__pycache__/linker_hand_o6_can.cpython-311.pyc and /dev/null differ diff --git a/LinkerHand/core/can/__pycache__/linker_hand_o6_can.cpython-312.pyc b/LinkerHand/core/can/__pycache__/linker_hand_o6_can.cpython-312.pyc deleted file mode 100644 index a4c3199..0000000 Binary files a/LinkerHand/core/can/__pycache__/linker_hand_o6_can.cpython-312.pyc and /dev/null differ diff --git a/LinkerHand/core/can/__pycache__/linker_hand_o6_can.cpython-38.pyc b/LinkerHand/core/can/__pycache__/linker_hand_o6_can.cpython-38.pyc deleted file mode 100644 index 5da0ec0..0000000 Binary files a/LinkerHand/core/can/__pycache__/linker_hand_o6_can.cpython-38.pyc and /dev/null differ diff --git a/LinkerHand/core/rs485/__pycache__/linker_hand_l10_rs485.cpython-312.pyc b/LinkerHand/core/rs485/__pycache__/linker_hand_l10_rs485.cpython-312.pyc deleted file mode 100644 index 6211a98..0000000 Binary files a/LinkerHand/core/rs485/__pycache__/linker_hand_l10_rs485.cpython-312.pyc and /dev/null differ diff --git a/LinkerHand/core/rs485/__pycache__/linker_hand_l6_rs485.cpython-312.pyc b/LinkerHand/core/rs485/__pycache__/linker_hand_l6_rs485.cpython-312.pyc deleted file mode 100644 index 10f6daa..0000000 Binary files a/LinkerHand/core/rs485/__pycache__/linker_hand_l6_rs485.cpython-312.pyc and /dev/null differ diff --git a/LinkerHand/core/rs485/__pycache__/linker_hand_l7_rs485.cpython-312.pyc b/LinkerHand/core/rs485/__pycache__/linker_hand_l7_rs485.cpython-312.pyc deleted file mode 100644 index 9fbcb0c..0000000 Binary files a/LinkerHand/core/rs485/__pycache__/linker_hand_l7_rs485.cpython-312.pyc and /dev/null differ diff --git a/LinkerHand/core/rs485/__pycache__/linker_hand_o6_rs485.cpython-312.pyc b/LinkerHand/core/rs485/__pycache__/linker_hand_o6_rs485.cpython-312.pyc deleted file mode 100644 index 3c55aa8..0000000 Binary files a/LinkerHand/core/rs485/__pycache__/linker_hand_o6_rs485.cpython-312.pyc and /dev/null differ diff --git a/LinkerHand/core/rs485/__pycache__/linker_hand_o6_rs485.cpython-38.pyc b/LinkerHand/core/rs485/__pycache__/linker_hand_o6_rs485.cpython-38.pyc deleted file mode 100644 index 3878bed..0000000 Binary files a/LinkerHand/core/rs485/__pycache__/linker_hand_o6_rs485.cpython-38.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/__init__.cpython-310.pyc b/LinkerHand/utils/__pycache__/__init__.cpython-310.pyc deleted file mode 100644 index 06466dd..0000000 Binary files a/LinkerHand/utils/__pycache__/__init__.cpython-310.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/__init__.cpython-311.pyc b/LinkerHand/utils/__pycache__/__init__.cpython-311.pyc deleted file mode 100644 index 8b2e72c..0000000 Binary files a/LinkerHand/utils/__pycache__/__init__.cpython-311.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/__init__.cpython-312.pyc b/LinkerHand/utils/__pycache__/__init__.cpython-312.pyc deleted file mode 100644 index e4a3fce..0000000 Binary files a/LinkerHand/utils/__pycache__/__init__.cpython-312.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/__init__.cpython-38.pyc b/LinkerHand/utils/__pycache__/__init__.cpython-38.pyc deleted file mode 100644 index c36c054..0000000 Binary files a/LinkerHand/utils/__pycache__/__init__.cpython-38.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/__init__.cpython-39.pyc b/LinkerHand/utils/__pycache__/__init__.cpython-39.pyc deleted file mode 100644 index fade9b5..0000000 Binary files a/LinkerHand/utils/__pycache__/__init__.cpython-39.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/color_msg.cpython-310.pyc b/LinkerHand/utils/__pycache__/color_msg.cpython-310.pyc deleted file mode 100644 index 8130040..0000000 Binary files a/LinkerHand/utils/__pycache__/color_msg.cpython-310.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/color_msg.cpython-311.pyc b/LinkerHand/utils/__pycache__/color_msg.cpython-311.pyc deleted file mode 100644 index 2575450..0000000 Binary files a/LinkerHand/utils/__pycache__/color_msg.cpython-311.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/color_msg.cpython-312.pyc b/LinkerHand/utils/__pycache__/color_msg.cpython-312.pyc deleted file mode 100644 index 755eeaf..0000000 Binary files a/LinkerHand/utils/__pycache__/color_msg.cpython-312.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/color_msg.cpython-38.pyc b/LinkerHand/utils/__pycache__/color_msg.cpython-38.pyc deleted file mode 100644 index 9c2db14..0000000 Binary files a/LinkerHand/utils/__pycache__/color_msg.cpython-38.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/color_msg.cpython-39.pyc b/LinkerHand/utils/__pycache__/color_msg.cpython-39.pyc deleted file mode 100644 index 79ede0b..0000000 Binary files a/LinkerHand/utils/__pycache__/color_msg.cpython-39.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/init_linker_hand.cpython-310.pyc b/LinkerHand/utils/__pycache__/init_linker_hand.cpython-310.pyc deleted file mode 100644 index 62b3c0f..0000000 Binary files a/LinkerHand/utils/__pycache__/init_linker_hand.cpython-310.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/init_linker_hand.cpython-312.pyc b/LinkerHand/utils/__pycache__/init_linker_hand.cpython-312.pyc deleted file mode 100644 index 7e1552c..0000000 Binary files a/LinkerHand/utils/__pycache__/init_linker_hand.cpython-312.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/init_linker_hand.cpython-38.pyc b/LinkerHand/utils/__pycache__/init_linker_hand.cpython-38.pyc deleted file mode 100644 index f6c1872..0000000 Binary files a/LinkerHand/utils/__pycache__/init_linker_hand.cpython-38.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/init_linker_hand.cpython-39.pyc b/LinkerHand/utils/__pycache__/init_linker_hand.cpython-39.pyc deleted file mode 100644 index b89c192..0000000 Binary files a/LinkerHand/utils/__pycache__/init_linker_hand.cpython-39.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/load_write_yaml.cpython-310.pyc b/LinkerHand/utils/__pycache__/load_write_yaml.cpython-310.pyc deleted file mode 100644 index e783a13..0000000 Binary files a/LinkerHand/utils/__pycache__/load_write_yaml.cpython-310.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/load_write_yaml.cpython-311.pyc b/LinkerHand/utils/__pycache__/load_write_yaml.cpython-311.pyc deleted file mode 100644 index 1fc6593..0000000 Binary files a/LinkerHand/utils/__pycache__/load_write_yaml.cpython-311.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/load_write_yaml.cpython-312.pyc b/LinkerHand/utils/__pycache__/load_write_yaml.cpython-312.pyc deleted file mode 100644 index 72fff84..0000000 Binary files a/LinkerHand/utils/__pycache__/load_write_yaml.cpython-312.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/load_write_yaml.cpython-38.pyc b/LinkerHand/utils/__pycache__/load_write_yaml.cpython-38.pyc deleted file mode 100644 index 082e1dc..0000000 Binary files a/LinkerHand/utils/__pycache__/load_write_yaml.cpython-38.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/load_write_yaml.cpython-39.pyc b/LinkerHand/utils/__pycache__/load_write_yaml.cpython-39.pyc deleted file mode 100644 index a6ddd03..0000000 Binary files a/LinkerHand/utils/__pycache__/load_write_yaml.cpython-39.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/mapping.cpython-310.pyc b/LinkerHand/utils/__pycache__/mapping.cpython-310.pyc deleted file mode 100644 index 3837254..0000000 Binary files a/LinkerHand/utils/__pycache__/mapping.cpython-310.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/mapping.cpython-311.pyc b/LinkerHand/utils/__pycache__/mapping.cpython-311.pyc deleted file mode 100644 index 4e5649b..0000000 Binary files a/LinkerHand/utils/__pycache__/mapping.cpython-311.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/mapping.cpython-312.pyc b/LinkerHand/utils/__pycache__/mapping.cpython-312.pyc deleted file mode 100644 index fe3b206..0000000 Binary files a/LinkerHand/utils/__pycache__/mapping.cpython-312.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/mapping.cpython-38.pyc b/LinkerHand/utils/__pycache__/mapping.cpython-38.pyc deleted file mode 100644 index fc77c43..0000000 Binary files a/LinkerHand/utils/__pycache__/mapping.cpython-38.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/mapping.cpython-39.pyc b/LinkerHand/utils/__pycache__/mapping.cpython-39.pyc deleted file mode 100644 index 7588694..0000000 Binary files a/LinkerHand/utils/__pycache__/mapping.cpython-39.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/open_can.cpython-310.pyc b/LinkerHand/utils/__pycache__/open_can.cpython-310.pyc deleted file mode 100644 index e1c094d..0000000 Binary files a/LinkerHand/utils/__pycache__/open_can.cpython-310.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/open_can.cpython-311.pyc b/LinkerHand/utils/__pycache__/open_can.cpython-311.pyc deleted file mode 100644 index 05c8cac..0000000 Binary files a/LinkerHand/utils/__pycache__/open_can.cpython-311.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/open_can.cpython-312.pyc b/LinkerHand/utils/__pycache__/open_can.cpython-312.pyc deleted file mode 100644 index 57a5499..0000000 Binary files a/LinkerHand/utils/__pycache__/open_can.cpython-312.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/open_can.cpython-38.pyc b/LinkerHand/utils/__pycache__/open_can.cpython-38.pyc deleted file mode 100644 index 71088b6..0000000 Binary files a/LinkerHand/utils/__pycache__/open_can.cpython-38.pyc and /dev/null differ diff --git a/LinkerHand/utils/__pycache__/open_can.cpython-39.pyc b/LinkerHand/utils/__pycache__/open_can.cpython-39.pyc deleted file mode 100644 index 942f557..0000000 Binary files a/LinkerHand/utils/__pycache__/open_can.cpython-39.pyc and /dev/null differ diff --git a/LinkerHand/utils/mapping.py b/LinkerHand/utils/mapping.py index deb6a19..0fe703a 100644 --- a/LinkerHand/utils/mapping.py +++ b/LinkerHand/utils/mapping.py @@ -1,11 +1,11 @@ #--------------------------------------------------------------------------------------------------- # L6 L -l6_l_min = [0, 0, 0, 0, 0, 0] -l6_l_max = [0.99, 1.39, 1.26, 1.26, 1.26, 1.26] +l6_l_min = [0, -0.087266, 0, 0, 0, 0] +l6_l_max = [0.837758, 1.256637, 1.134464, 1.134464, 1.134464, 1.134464] l6_l_derict = [-1, -1, -1, -1, -1, -1] # L6 R -l6_r_min = [0, 0, 0, 0, 0, 0] -l6_r_max = [0.99, 1.39, 1.26, 1.26, 1.26, 1.26] +l6_r_min = [0, -0.087266, 0, 0, 0, 0] +l6_r_max = [0.837758, 1.256637, 1.134464, 1.134464, 1.134464, 1.134464] l6_r_derict = [-1, -1, -1, -1, -1, -1] #--------------------------------------------------------------------------------------------------- # O6 L diff --git a/README.md b/README.md index 3ab0823..f40c985 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ LinkerHand Python SDK ## Installation -  You can run the examples after installing the dependencies in requirements.txt. Only Python 3 is supported. +  You can run the examples after installing the SDK and dependencies from `pyproject.toml`. Only Python 3 is supported. - download ```bash @@ -31,7 +31,7 @@ $ git clone https://github.com/linker-bot/linkerhand-python-sdk.git ```bash $ cd linkerhand-python-sdk/ -$ pip3 install -r requirements.txt +$ pip install -e ".[all]" ``` - 快速使用示例 by CAN @@ -50,11 +50,8 @@ $ python3 gui_control.py Edit the config/setting.yaml configuration file and modify the parameters according to the comments inside. Set MODBUS: "/dev/ttyUSB0", meaning the "modbus" parameter in the configuration file should be "/dev/ttyUSB0". The USB-RS485 converter usually appears as /dev/ttyUSB* or /dev/ttyACM* on Ubuntu. modbus: "None" or "/dev/ttyUSB0" ```bash -# Ensure requirements.txt dependencies are installed -# Install system-level related drivers -$ pip install minimalmodbus --break-system-packages -$ pip install pyserial --break-system-packages -$ pip install pymodbus --break-system-packages +# Ensure the SDK and dependencies are installed from pyproject.toml +$ pip install -e ".[all]" # View the USB-RS485 port number $ ls /dev # You should see a port similar to ttyUSB0. Grant permissions to the port: @@ -154,5 +151,3 @@ When launched, a UI interface will pop up. You can control the corresponding Lin ## API Documentation [Linker Hand API for Python Document](doc/API-Reference.md) - - diff --git a/README_CN.md b/README_CN.md index 8921a07..b5d5f05 100644 --- a/README_CN.md +++ b/README_CN.md @@ -18,23 +18,20 @@ | ROS SDK | ![SDK Version](https://img.shields.io/badge/SDK%20Version-V3.0.1-brightgreen?style=flat-square) ![Python 3.8+](https://img.shields.io/badge/Python-3.8%2B-blue?style=flat-square&logo=python&logoColor=white) ![Ubuntu 20.04+](https://img.shields.io/badge/OS-Ubuntu%2020.04%2B-E95420?style=flat-square&logo=ubuntu&logoColor=white) ![ROS Noetic](https://img.shields.io/badge/ROS-Noetic-009624?style=flat-square&logo=ros) | [![GitHub 仓库](https://img.shields.io/badge/GitHub-grey?logo=github&style=flat-square)](https://github.com/linker-bot/linkerhand-ros-sdk) | | ROS2 SDK | ![SDK Version](https://img.shields.io/badge/SDK%20Version-V3.0.1-brightgreen?style=flat-square) ![Python 3.11](https://img.shields.io/badge/Python-3.11-3776AB?style=flat-square&logo=python&logoColor=white) ![Ubuntu 24.04](https://img.shields.io/badge/OS-Ubuntu%2024.04-E95420?style=flat-square&logo=ubuntu&logoColor=white) ![ROS 2 Jazzy](https://img.shields.io/badge/ROS%202-Jazzy-00B3E6?style=flat-square&logo=ros) ![Windows 11](https://img.shields.io/badge/OS-Windows%2011-0078D4?style=flat-square&logo=windows&logoColor=white) | [![GitHub 仓库](https://img.shields.io/badge/GitHub-grey?logo=github&style=flat-square)](https://github.com/linker-bot/linkerhand-ros2-sdk) | -## Installation -  您可以在安装requirements.txt后的情况下运行示例。仅支持 Python3。 +## Installation +  您可以通过 `pyproject.toml` 安装 SDK 及其依赖后运行示例。仅支持 Python3。 - download ```bash -$ git clone https://github.com/linker-bot/linkerhand-python-sdk.git -``` - -- install - -```bash -$ cd linkerhand-python-sdk/ -# win下需要安装python-can-candle用于适配透明CAN设备candle协议 -$ pip install python-can -$ pip install python-can-candle -$ pip3 install -r requirements.txt -``` +$ git clone https://github.com/linker-bot/linkerhand-python-sdk.git +``` + +- install + +```bash +$ cd linkerhand-python-sdk/ +$ pip install -e ".[all]" +``` - 快速使用示例 by CAN 编辑config/setting.yaml配置文件,按照配置文件内注释说明进行参数修改,配置CAN: "can0"(根据实际硬件情况来确定,一般第一个为can0),配置MODBUS:"None" @@ -53,12 +50,9 @@ $ python3 gui_control.py 编辑config/setting.yaml配置文件,按照配置文件内注释说明进行参数修改,将MODBUS:"/dev/ttyUSB0",配置文件中"modbus"参数为"/dev/ttyUSB0"。USB-RS485转换器在Ubuntu上一般显示为/dev/ttyUSB* or /dev/ttyACM* modbus: "None" or "/dev/ttyUSB0" -```bash -# 确保requirements.txt安装依赖 -# 安装系统级相关驱动 -$ pip install minimalmodbus --break-system-packages -$ pip install pyserial --break-system-packages -$ pip install pymodbus --break-system-packages +```bash +# 确保已通过 pyproject.toml 安装 SDK 及依赖 +$ pip install -e ".[all]" # 查看USB-RS485端口号 $ ls /dev # 可以看到类似ttyUSB0端口后给端口执行权限 diff --git a/example/gui_control/config/__pycache__/constants.cpython-311.pyc b/example/gui_control/config/__pycache__/constants.cpython-311.pyc deleted file mode 100644 index 0329eaa..0000000 Binary files a/example/gui_control/config/__pycache__/constants.cpython-311.pyc and /dev/null differ diff --git a/example/gui_control/config/__pycache__/constants.cpython-312.pyc b/example/gui_control/config/__pycache__/constants.cpython-312.pyc deleted file mode 100644 index 056cc6d..0000000 Binary files a/example/gui_control/config/__pycache__/constants.cpython-312.pyc and /dev/null differ diff --git a/example/gui_control/views/__pycache__/left_view.cpython-312.pyc b/example/gui_control/views/__pycache__/left_view.cpython-312.pyc deleted file mode 100644 index 2cb5b3c..0000000 Binary files a/example/gui_control/views/__pycache__/left_view.cpython-312.pyc and /dev/null differ diff --git a/example/gui_control/views/__pycache__/left_view.cpython-38.pyc b/example/gui_control/views/__pycache__/left_view.cpython-38.pyc deleted file mode 100644 index e11235b..0000000 Binary files a/example/gui_control/views/__pycache__/left_view.cpython-38.pyc and /dev/null differ diff --git a/example/gui_control/views/__pycache__/right_view.cpython-312.pyc b/example/gui_control/views/__pycache__/right_view.cpython-312.pyc deleted file mode 100644 index 561fe11..0000000 Binary files a/example/gui_control/views/__pycache__/right_view.cpython-312.pyc and /dev/null differ diff --git a/example/gui_control/views/__pycache__/right_view.cpython-38.pyc b/example/gui_control/views/__pycache__/right_view.cpython-38.pyc deleted file mode 100644 index 8cd44bb..0000000 Binary files a/example/gui_control/views/__pycache__/right_view.cpython-38.pyc and /dev/null differ diff --git a/example/gui_control/views/__pycache__/wave_form_plot.cpython-312.pyc b/example/gui_control/views/__pycache__/wave_form_plot.cpython-312.pyc deleted file mode 100644 index a9878eb..0000000 Binary files a/example/gui_control/views/__pycache__/wave_form_plot.cpython-312.pyc and /dev/null differ diff --git a/example/gui_control/views/__pycache__/wave_form_plot.cpython-38.pyc b/example/gui_control/views/__pycache__/wave_form_plot.cpython-38.pyc deleted file mode 100644 index d928afb..0000000 Binary files a/example/gui_control/views/__pycache__/wave_form_plot.cpython-38.pyc and /dev/null differ diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..302d1e0 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,51 @@ +[build-system] +requires = ["setuptools>=61", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "linkerhand-python-sdk" +version = "3.1.0" +description = "Python SDK for LinkerHand dexterous hands." +readme = "README.md" +requires-python = ">=3.8" +authors = [ + { name = "Linker Hand" }, +] +dependencies = [ + "python-can", + "python-can-candle", + "pymodbus==3.5.1", + "pyserial", + "numpy", + "PyYAML", +] + +[project.optional-dependencies] +all = [ + "PyQt5", + "pyqtgraph", + "matplotlib", + "dm-control", + "dm-env", + "pyagxrobots", + "pyquaternion", + "h5py", + "ipython", + "mediapipe", + "minimalmodbus", + "pexpect", + "pycryptodome", + "tqdm", + "uvicorn", + "wandb", +] + +[project.urls] +Homepage = "https://github.com/linker-bot/linkerhand-python-sdk" +Documentation = "https://github.com/linker-bot/linkerhand-python-sdk/blob/main/doc/API-Reference.md" + +[tool.setuptools.packages.find] +include = ["LinkerHand*"] + +[tool.setuptools.package-data] +"LinkerHand.config" = ["*.yaml"] diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index ba69538..0000000 --- a/requirements.txt +++ /dev/null @@ -1,21 +0,0 @@ -python-can -python-can-candle -dm_env -minimalmodbus -pymodbus==3.5.1 -pyserial -pexpect -pyquaternion -pyagxrobots -pycryptodome -ipython -h5py -PyYAML -tqdm -wandb -mediapipe -pyqt5 -pyqtgraph -dm_control -uvicorn -matplotlib \ No newline at end of file