1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.
Toolsuite for running ROS environments directly from python code, without any specific requirements outside of usual python.
This is a pure python package, to be installed in your system, in order to allow easy ROS access from your python environment.
To install it:
sudo pip install -i https://testpypi.python.org/pypi pyros_setup
To run the self tests, using entry_points defined in setup.py:
pyros_setup
OR using the python package directly:
python -m pyros_setup
OR using nosetests specifically:
nosetests pyros_setup
It can also be used from source inside a catkin workspace in the same way. The workspace act as a virtual environment (using https://github.com/asmodehn/catkin_pure_python). This is useful for development along with ROS packages:
$ catkin_make $ source devel/setup.bash $ python -m pyros_setup $ pyros_setup $ nosetests pyros_setup
However it is also usable by catkin from source for ease of development and compatibility testing.
Basically it allows you to do this:
try:
import rospy
import roslaunch
import rosgraph
import rosnode
except ImportError: # if ROS environment is not setup, we emulate it.
import pyros_setup
pyros_setup = pyros_setup.delayed_import_auto(base_path=os.path.join(os.path.dirname(__file__), '..', '..', '..', '..', '..', '..'))
import rospy
import roslaunch
import rosgraph
import rosnode
A ROS package WILL NOT be provided, since there is no simple and clean way to turn a pure python package into a catkin package. If you want to depend on pyros-setup, you should use the rosdep pip dependency mechanism.
Note: If you know any easier / less tricky / more pythonic way of handling dynamic imports, let me know!
Metadata
Release files for pyros-setup 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
File added late
1 file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyros_setup-0.1.0.tar.gz | 19.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyros_setup-0.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 29.7 kB
Release files / pyros_setup-0.1.0.tar.gz
| Download URL | pyros_setup-0.1.0.tar.gz |
|---|---|
| Size | 19.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
731391256aed0f00642066af37eb26168154cbda73a24ee789534cd68ebbae64
|
|
BLAKE2b-256 checksum How to use checksums |
53642cd1f8e7d534823f24d7e3a3ca81e2ef37d26710a4616ad9baaecef14db3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pyros_setup-0.1.0-py2.py3-none-any.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | pyros_setup-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
65aee1475ffc379edfb81c936d8b7c72532ca2dc2b6ff0cf4d44b43057f62261
|
|
BLAKE2b-256 checksum How to use checksums |
65b4bd8c58b40ce95544dd41335ac1548cadc2fa37a7b74d2fe7f7754f8cbfcb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |