Python wrapper for the Sensapex SDK
Project description
Sensapex SDK
This python library wraps the C SDK provided by Sensapex's umsdk. It provides general access to the functions present therein, as well as a device-based abstraction.
Installation
pip install sensapex
Download the latest umsdk library.
Usage
from sensapex import UMP
UMP.set_library_path("/path/which/contains/umsdk/binary/for/your/platform/")
ump = UMP.get_ump()
ump.list_devices()
stage = ump.get_device(1)
stage.calibrate_zero_position()
manipulator = ump.get_device(4)
manipulator.goto_pos((-2500.0412, 6810.0003, 15830.1419), speed=2)
pressure = ump.get_device(30)
pressure.set_pressure(1, 2.3e-4)
Also included are some simple sanity checks. The following will report on all devices present:
python -m sensapex.test
Or for a more involved test of your hardware as it moves around randomly, install pyqtgraph in your environment and use e.g.:
STAGE_DEVID=1
python -m sensapex.accuracy_test $STAGE_DEVID
Authorship
Copyright (c) 2016-2020 Luke Campagnola
Thanks to the following for contributions:
- Ari Salmi
- Martin Chase
- Thomas Braun
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sensapex-0.920.1.tar.gz
(11.7 kB
view hashes)
Built Distribution
sensapex-0.920.1-py3-none-any.whl
(12.6 kB
view hashes)
Close
Hashes for sensapex-0.920.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19a0014a1025d2a768aa1ec29c13cb70c2a6f5d2acc79da4683aebd07aa588ce |
|
MD5 | 8940930bccc561f8b09ff756a1ac3e9d |
|
BLAKE2b-256 | 0e5066da56e91355fac4cbab34234469625e8bdba57c24fab6834c755f519119 |