Commit 20118d07 authored by Claudio Gomes's avatar Claudio Gomes
Browse files

published version to pypi

parent 9c4ef4c0
......@@ -15,11 +15,25 @@ The UR robot can be controlled remotely in various ways:
3. Real-Time Data Exchange (RTDE): https://www.universal-robots.com/articles/ur/real-time-data-exchange-rtde-guide/
Allows to send and receive data with up to 500 Hz
## Installing URInterface from pip
```
pip install urinterface
```
## Installing URInterface locally (for development and local use)
Change to the root directory of this project and:
```
pip install -e .
```
## Setting up dev environment in PyCharm.
1. Open the root of this repo as a new project from sources in PyCharm.
1. Make sure that most root folders are set as project source folders (Settings > Project Structure > Mark the folders as source folders )
1. Run the tests and install missing dependencies
## Installing UR Robot Simulator
......@@ -27,6 +41,28 @@ If using virtual box, then follow the instructions in https://www.universal-robo
If using Hyper-V, then install ubuntu VM and then install the UR Robot simulator.
## Publishing this package on pypi
Instructions adapted from: https://packaging.python.org/tutorials/packaging-projects/
Make sure to install dependencies:
```
pip install setuptools wheel twine
```
Create source distribution
```
python setup.py sdist
```
Create binary distribtion
```
python setup.py bdist_wheel
```
Upload package:
```
python -m twine upload dist/*
set user and password according to pypi's api token
```
......@@ -38,10 +74,9 @@ If using Hyper-V, then install ubuntu VM and then install the UR Robot simulator
### Failure to boot from ISO file
with the following error:
Signed image's hash is not allowed (DB).
![image-20200908172518929](assets/image-20200908172518929.png)
```
No operating system was loaded. Your virtual machine may be configured incorrectly. Exit and re-configure...
```
The solution is to follow this guide: https://www.thomasmaurer.ch/2018/06/how-to-install-ubuntu-in-a-hyper-v-generation-2-virtual-machine/
......@@ -49,8 +84,7 @@ The solution is to follow this guide: https://www.thomasmaurer.ch/2018/06/how-to
## Error when running the unit tests from PyCharm
Similar error:
Error:
```
Testing started at 08:54 ...
H:\srcctrl\gitlab\urinterface\venv\Scripts\python.exe "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1.1\plugins\python-ce\helpers\pycharm\_jb_pytest_runner.py" --target robot_connection_tests.py::MyTestCase.test_dummy_start_stop_record
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment