Skip to main content

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

pynetft-1.0.2.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pynetft-1.0.2-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file pynetft-1.0.2.tar.gz.

File metadata

  • Download URL: pynetft-1.0.2.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

Hashes for pynetft-1.0.2.tar.gz
Algorithm Hash digest
SHA256 4c35795da3be6cc0e2074f5bf4726132d4478694f1506aee89c2a3bed22a11be
MD5 18ff00cda095b328a0c686bcd7158af5
BLAKE2b-256 e456efe5e4e26ffca55fa25019f014afe1fe4df59fe56e93feea2b3d5ece7da1

See more details on using hashes here.

File details

Details for the file pynetft-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: pynetft-1.0.2-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

Hashes for pynetft-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 03ec1735e18cac19b3b3c73b8e202cda0affa44e79bcc5cc09fe52278d368314
MD5 64b4f0d1e227b749e85592ae57e7728e
BLAKE2b-256 3c0b36f716a53e01a1b3deff59a83e81e9580023b210589b3a5b21079f110adb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page