North C9
The North C9 library is a low level library wrapping the North C9 Controller protocol.
Installation
Install the north_c9 library
pip install git+https://gitlab.com/north-robotics/north_c9
Import the C9Controller class at the top of a Python file, or inside a Python console
from north_c9.controller import C9Controller
Create a new C9Controller instance to connect to the C9 controller
controller = C9Controller()
Now you can move axes, toggle outputs and move the N9 (if available)
# move axis 5 to 0 counts
controller.move_axis(5, 0, velocity=1000, acceleration=5000)
# rotate axis 5 once (motors have 1000 counts / revolution)
controller.move_axis(5, 1000, velocity=1000, acceleration=5000, relative=True)
# start spin axis 5
controller.spin_axis(5, velocity=1000, acceleration=5000)
# stop spinning axis 5
controller.spin_axis_stop(5)
# turn output 0 on and off
controller.output(0, True)
controller.output(0, False)
controller.output_toggle(0)
# home the N9
controller.home()
# move the N9 to x=0 mm, y=150 mm, z=150 mm and gripper=90 deg
controller.move_arm(0, 150, 150, gripper=90)
Metadata
Release files for north-c9 0.3.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| north_c9-0.3.14.tar.gz | 25.8 kB | Without provenance | Details |
Release files / north_c9-0.3.14.tar.gz
| Download URL | north_c9-0.3.14.tar.gz |
|---|---|
| Size | 25.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c488b7b7102776d41e5f2b68ca3594c1759743224fd5b6310ba30eb761865992
|
|
BLAKE2b-256 checksum How to use checksums |
3abf0bcb1013ef66f97bec4f74fc8bd01b95e96131ab932450cb29e29bf68d2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.13
|
Security for north-c9 0.3.14
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.