diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-18 03:31:57 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-18 03:31:57 +0000 |
commit | ded3c466b70a64d42213ffd800539a9993bd107e (patch) | |
tree | 4cab251597104d4d9e224a18e169d7ac41fbd571 | |
parent | 195e79c390bd9afc495bfb97b096c2f6b0917634 (diff) |
automatic import of python-djitellopy
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-djitellopy.spec | 308 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 310 insertions, 0 deletions
@@ -0,0 +1 @@ +/djitellopy-2.4.0.tar.gz diff --git a/python-djitellopy.spec b/python-djitellopy.spec new file mode 100644 index 0000000..befd5dd --- /dev/null +++ b/python-djitellopy.spec @@ -0,0 +1,308 @@ +%global _empty_manifest_terminate_build 0 +Name: python-djitellopy +Version: 2.4.0 +Release: 1 +Summary: Tello drone library including support for video streaming, swarms, state packets and more +License: MIT +URL: https://github.com/damiafuentes/DJITelloPy +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/03/20/688ec27c2d6bfcc984e64975ac707d5a521082efc4b7a20e65e68947b6fb/djitellopy-2.4.0.tar.gz +BuildArch: noarch + +Requires: python3-numpy +Requires: python3-opencv-python + +%description +# DJITelloPy +DJI Tello drone python interface using the official [Tello SDK](https://dl-cdn.ryzerobotics.com/downloads/tello/20180910/Tello%20SDK%20Documentation%20EN_1.3.pdf) and [Tello EDU SDK](https://dl-cdn.ryzerobotics.com/downloads/Tello/Tello%20SDK%202.0%20User%20Guide.pdf). This library has the following features: + +- implementation of all tello commands +- easily retrieve a video stream +- receive and parse state packets +- control a swarm of drones +- support for python >= 3.6 + +Feel free to contribute! + +## Install using pip +``` +pip install djitellopy +``` + +For Linux distributions with both python2 and python3 (e.g. Debian, Ubuntu, ...) you need to run +``` +pip3 install djitellopy +``` + +## Install in developer mode +Using the commands below you can install the repository in an _editable_ way. This allows you to modify the library and use the modified version as if you had installed it regularly. + +``` +git clone https://github.com/damiafuentes/DJITelloPy.git +cd DJITelloPy +pip install -e . +``` + +## Usage +### API Reference +See [djitellopy.readthedocs.io](https://djitellopy.readthedocs.io/en/latest/) for a full reference of all classes and methods available. + +### Simple example +```python +from djitellopy import Tello + +tello = Tello() + +tello.connect() +tello.takeoff() + +tello.move_left(100) +tello.rotate_counter_clockwise(90) +tello.move_forward(100) + +tello.land() +``` + +### More examples +In the [examples](https://github.com/damiafuentes/DJITelloPy/tree/master/examples/) directory there are some code examples: + +- [taking a picture](https://github.com/damiafuentes/DJITelloPy/tree/master/examples/take-picture.py) +- [recording a video](https://github.com/damiafuentes/DJITelloPy/tree/master/examples/record-video.py) +- [flying a swarm (multiple Tellos at once)](https://github.com/damiafuentes/DJITelloPy/tree/master/examples/simple-swarm.py) +- [simple controlling using your keyboard](https://github.com/damiafuentes/DJITelloPy/tree/master/examples/manual-control-opencv.py) +- [mission pad detection](https://github.com/damiafuentes/DJITelloPy/tree/master/examples/mission-pads.py) +- [fully featured manual control using pygame](https://github.com/damiafuentes/DJITelloPy/tree/master/examples/manual-control-pygame.py) + +### Notes +- If you are using the ```streamon``` command and the response is ```Unknown command``` means you have to update the Tello firmware. That can be done through the Tello app. +- Mission pad detection and navigation is only supported by the Tello EDU. +- Bright environment is necessary for successful use of mission pads. +- Connecting to an existing wifi network is only supported by the Tello EDU. +- When connected to an existing wifi network video streaming is not available. + +## Authors + +* **Damià Fuentes Escoté** +* **Jakob Löw** +* [and more](https://github.com/damiafuentes/DJITelloPy/graphs/contributors) + +## License + +This project is licensed under the MIT License - see the [LICENSE.txt](LICENSE.txt) file for details + + + + +%package -n python3-djitellopy +Summary: Tello drone library including support for video streaming, swarms, state packets and more +Provides: python-djitellopy +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-djitellopy +# DJITelloPy +DJI Tello drone python interface using the official [Tello SDK](https://dl-cdn.ryzerobotics.com/downloads/tello/20180910/Tello%20SDK%20Documentation%20EN_1.3.pdf) and [Tello EDU SDK](https://dl-cdn.ryzerobotics.com/downloads/Tello/Tello%20SDK%202.0%20User%20Guide.pdf). This library has the following features: + +- implementation of all tello commands +- easily retrieve a video stream +- receive and parse state packets +- control a swarm of drones +- support for python >= 3.6 + +Feel free to contribute! + +## Install using pip +``` +pip install djitellopy +``` + +For Linux distributions with both python2 and python3 (e.g. Debian, Ubuntu, ...) you need to run +``` +pip3 install djitellopy +``` + +## Install in developer mode +Using the commands below you can install the repository in an _editable_ way. This allows you to modify the library and use the modified version as if you had installed it regularly. + +``` +git clone https://github.com/damiafuentes/DJITelloPy.git +cd DJITelloPy +pip install -e . +``` + +## Usage +### API Reference +See [djitellopy.readthedocs.io](https://djitellopy.readthedocs.io/en/latest/) for a full reference of all classes and methods available. + +### Simple example +```python +from djitellopy import Tello + +tello = Tello() + +tello.connect() +tello.takeoff() + +tello.move_left(100) +tello.rotate_counter_clockwise(90) +tello.move_forward(100) + +tello.land() +``` + +### More examples +In the [examples](https://github.com/damiafuentes/DJITelloPy/tree/master/examples/) directory there are some code examples: + +- [taking a picture](https://github.com/damiafuentes/DJITelloPy/tree/master/examples/take-picture.py) +- [recording a video](https://github.com/damiafuentes/DJITelloPy/tree/master/examples/record-video.py) +- [flying a swarm (multiple Tellos at once)](https://github.com/damiafuentes/DJITelloPy/tree/master/examples/simple-swarm.py) +- [simple controlling using your keyboard](https://github.com/damiafuentes/DJITelloPy/tree/master/examples/manual-control-opencv.py) +- [mission pad detection](https://github.com/damiafuentes/DJITelloPy/tree/master/examples/mission-pads.py) +- [fully featured manual control using pygame](https://github.com/damiafuentes/DJITelloPy/tree/master/examples/manual-control-pygame.py) + +### Notes +- If you are using the ```streamon``` command and the response is ```Unknown command``` means you have to update the Tello firmware. That can be done through the Tello app. +- Mission pad detection and navigation is only supported by the Tello EDU. +- Bright environment is necessary for successful use of mission pads. +- Connecting to an existing wifi network is only supported by the Tello EDU. +- When connected to an existing wifi network video streaming is not available. + +## Authors + +* **Damià Fuentes Escoté** +* **Jakob Löw** +* [and more](https://github.com/damiafuentes/DJITelloPy/graphs/contributors) + +## License + +This project is licensed under the MIT License - see the [LICENSE.txt](LICENSE.txt) file for details + + + + +%package help +Summary: Development documents and examples for djitellopy +Provides: python3-djitellopy-doc +%description help +# DJITelloPy +DJI Tello drone python interface using the official [Tello SDK](https://dl-cdn.ryzerobotics.com/downloads/tello/20180910/Tello%20SDK%20Documentation%20EN_1.3.pdf) and [Tello EDU SDK](https://dl-cdn.ryzerobotics.com/downloads/Tello/Tello%20SDK%202.0%20User%20Guide.pdf). This library has the following features: + +- implementation of all tello commands +- easily retrieve a video stream +- receive and parse state packets +- control a swarm of drones +- support for python >= 3.6 + +Feel free to contribute! + +## Install using pip +``` +pip install djitellopy +``` + +For Linux distributions with both python2 and python3 (e.g. Debian, Ubuntu, ...) you need to run +``` +pip3 install djitellopy +``` + +## Install in developer mode +Using the commands below you can install the repository in an _editable_ way. This allows you to modify the library and use the modified version as if you had installed it regularly. + +``` +git clone https://github.com/damiafuentes/DJITelloPy.git +cd DJITelloPy +pip install -e . +``` + +## Usage +### API Reference +See [djitellopy.readthedocs.io](https://djitellopy.readthedocs.io/en/latest/) for a full reference of all classes and methods available. + +### Simple example +```python +from djitellopy import Tello + +tello = Tello() + +tello.connect() +tello.takeoff() + +tello.move_left(100) +tello.rotate_counter_clockwise(90) +tello.move_forward(100) + +tello.land() +``` + +### More examples +In the [examples](https://github.com/damiafuentes/DJITelloPy/tree/master/examples/) directory there are some code examples: + +- [taking a picture](https://github.com/damiafuentes/DJITelloPy/tree/master/examples/take-picture.py) +- [recording a video](https://github.com/damiafuentes/DJITelloPy/tree/master/examples/record-video.py) +- [flying a swarm (multiple Tellos at once)](https://github.com/damiafuentes/DJITelloPy/tree/master/examples/simple-swarm.py) +- [simple controlling using your keyboard](https://github.com/damiafuentes/DJITelloPy/tree/master/examples/manual-control-opencv.py) +- [mission pad detection](https://github.com/damiafuentes/DJITelloPy/tree/master/examples/mission-pads.py) +- [fully featured manual control using pygame](https://github.com/damiafuentes/DJITelloPy/tree/master/examples/manual-control-pygame.py) + +### Notes +- If you are using the ```streamon``` command and the response is ```Unknown command``` means you have to update the Tello firmware. That can be done through the Tello app. +- Mission pad detection and navigation is only supported by the Tello EDU. +- Bright environment is necessary for successful use of mission pads. +- Connecting to an existing wifi network is only supported by the Tello EDU. +- When connected to an existing wifi network video streaming is not available. + +## Authors + +* **Damià Fuentes Escoté** +* **Jakob Löw** +* [and more](https://github.com/damiafuentes/DJITelloPy/graphs/contributors) + +## License + +This project is licensed under the MIT License - see the [LICENSE.txt](LICENSE.txt) file for details + + + + +%prep +%autosetup -n djitellopy-2.4.0 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-djitellopy -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 2.4.0-1 +- Package Spec generated @@ -0,0 +1 @@ +c9375a501f37af9dffee057f59cc313a djitellopy-2.4.0.tar.gz |