A low-level communication library for the North C9 controller.
Project description
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)
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
north_c9-0.3.14.tar.gz
(25.8 kB
view details)
File details
Details for the file north_c9-0.3.14.tar.gz.
File metadata
- Download URL: north_c9-0.3.14.tar.gz
- Upload date:
- Size: 25.8 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c488b7b7102776d41e5f2b68ca3594c1759743224fd5b6310ba30eb761865992
|
|
| MD5 |
b1db1cfb9990477084c6d3652c9f4a88
|
|
| BLAKE2b-256 |
3abf0bcb1013ef66f97bec4f74fc8bd01b95e96131ab932450cb29e29bf68d2d
|