This commit is contained in:
MikiTwenty 2024-05-24 14:48:08 +02:00 committed by GitHub
commit 63db6a79ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 27 additions and 20 deletions

View File

@ -3,7 +3,7 @@ unitree_sdk2 python 接口
# 安装 # 安装
## 依赖 ## 依赖
- python>=3.8 - python>=3.8,<3.11
- cyclonedds==0.10.2 - cyclonedds==0.10.2
- numpy - numpy
- opencv-python - opencv-python

View File

@ -3,7 +3,7 @@ Python interface for unitree sdk2
# Installation # Installation
## Dependencies ## Dependencies
- Python >= 3.8 - Python >= 3.8, < 3.11
- cyclonedds == 0.10.2 - cyclonedds == 0.10.2
- numpy - numpy
- opencv-python - opencv-python

3
requirements.txt Normal file
View File

@ -0,0 +1,3 @@
numpy
opencv-python
cyclonedds==0.10.2

View File

@ -1,16 +1,20 @@
from setuptools import setup, find_packages from setuptools import setup, find_packages
setup(name='unitree_sdk2py',
version='1.0.0', def load_requirements(filename:str='requirements.txt') -> None:
author='Unitree', with open(filename, 'r') as file:
author_email='unitree@unitree.com', return [line.strip() for line in file if line and not line.startswith("#")]
license="BSD-3-Clause",
packages=find_packages(), requirements = load_requirements()
description='Unitree robot sdk version 2 for python',
python_requires='>=3.8', setup(
install_requires=[ name='unitree_sdk2py',
"cyclonedds==0.10.2", version='1.0.0',
"numpy", author='Unitree',
"opencv-python", author_email='unitree@unitree.com',
], license="BSD-3-Clause",
) packages=find_packages(),
description='Unitree robot sdk version 2 for python',
python_requires='>=3.8,<3.11',
install_requires=requirements
)

View File

@ -1,8 +1,8 @@
from . import idl, utils, core, rpc, go2 from . import idl, utils, core, rpc, go2
__all__ = [ __all__ = [
"idl" "idl",
"utils" "utils",
"core", "core",
"rpc", "rpc",
"go2", "go2",