Python library for controlling LK motors
Project description
pyNetFT: Python interface for the ATI Force/Torque Sensor with Net F/T
This is a Python interface for the ATI force/torque sensor with Net F/T. It allows you to read the force and torque data from the sensor in real-time.
Installation
To install the package, run the following command:
pip install pynetft
Or you can install it from the source code:
git clone https://github.com/han-xudong/pyNetFT.git
cd pyNetFT
pip install .
Usage
Here is an example of how to use the package:
from pynetft import NetFT
netft = NetFT(host='192.168.1.1', port=49152) # Change the host and port to the IP address and port of your sensor
netft.connect() # Connect to the sensor
netft.start_streaming(duration=10) # Start streaming data from the sensor for 10 seconds
netft.disconnect() # Disconnect from the sensor
And here are some functions provided to interact with the sensor:
connect(): Connect to the sensor.
netft.connect()
disconnect(): Disconnect from the sensor.
netft.disconnect()
get_data(): Read and return the force and torque data from the sensor.
data = netft.get_data()
print(data)
start_streaming(): Continuously read and print data from the sensor for a specified duration (in seconds).
netft.start_streaming(duration=10, delay=0.1, print_data=True)
License
This project is licensed under the MIT LICENSE.
Acknowledgements
This package is based on the C example provided by ATI. You can find the original code here.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pynetft-1.0.1.tar.gz.
File metadata
- Download URL: pynetft-1.0.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c158f4cdb87f2320d627eda57cb5873eed388f7e463065fd4fc06bcf1645ad2
|
|
| MD5 |
0c7bd3874fea58fa1eba03e6854d276e
|
|
| BLAKE2b-256 |
575c36abed1ab1cb086d0185f10bd1b94961f4440a232dec9371a45ed0b18032
|
File details
Details for the file pynetft-1.0.1-py3-none-any.whl.
File metadata
- Download URL: pynetft-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a622698dcf29c89f2bdde1c4fdac9142bfaff588d70e1b45ee7d4eddadd9a355
|
|
| MD5 |
84f00d060d90b3052c077024fc3b4f91
|
|
| BLAKE2b-256 |
2fc72094dbef845c370b8999c1e976b0ee9d40d443cb65f50726bb1bc4c94321
|