Skip to main content

Python library for reading data from ATI Force/Torque sensors with Net F/T interface

Project description

pyNetFT: Python interface for the ATI Force/Torque Sensor with Net F/T

PyPI version Python version Github License

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,
    count_per_force=1000000,
    count_per_torque=999.999,
)

where host is the IP address of your Net F/T device, port is the port number (default is 49152), count_per_force is the conversion factor for force data, and count_per_torque is the conversion factor for torque data. count_per_force and count_per_torque can be found in the sensor's configuration page on host.

Several functions are provided to interact with the sensor:

  • connect(): Connect to the sensor.
netft.connect()
  • disconnect(): Disconnect from the sensor.
netft.disconnect()
  • bias(): Set the software bias, which is used to zero the sensor readings.
netft.bias()
  • get_data(): Get the force and torque data once.
data = netft.get_data()
print(data.FTData)  # Print the force and torque data
  • get_converted_data(): Read and return the force and torque data from the sensor.
data = netft.get_converted_data()
print(data.FTData)  # Print the force and torque 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.3.tar.gz (5.3 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.3-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pynetft-1.0.3.tar.gz
  • Upload date:
  • Size: 5.3 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.3.tar.gz
Algorithm Hash digest
SHA256 efa5caa627b043250c9d83610a029493c41534567a58318dcee165231805fd15
MD5 fa60b132fd302ada7ff5e8c04ed7550a
BLAKE2b-256 d2aac2f3b805f8dc683590654cbb601f09ef43424a33854ee22efc3a2bbb3f44

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pynetft-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.7 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 399e7a6eecf7cdd64ef07c018dde58e5d68b563cf60e4aa6c7186655d87ce594
MD5 82ecfec18fb935b0f16ac89af35d75d0
BLAKE2b-256 23142c8bdce1d44194dd11f9938da0aec2fa047000de7fe01294df936bded2f7

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