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.0.tar.gz (4.5 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.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pynetft-1.0.0.tar.gz
  • Upload date:
  • Size: 4.5 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.0.tar.gz
Algorithm Hash digest
SHA256 b242592a376b887ccf27071c304219851cf144a587a82d0455a600591be3694c
MD5 dff501b5b17e85cf50f1527af68b36fe
BLAKE2b-256 e0821a02a2e765c98cc02bca7c1d328cc07a5f8a453451dc0781998d9180282b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pynetft-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6f299412b47d165b477cbbb92f566b08eca4475faa9ae6e55e598d044aa2a884
MD5 08bbf3809d8d4ee3ae1cb63870fb44bb
BLAKE2b-256 8abf71b66d53b2bb9610b1c02341a60a8eae965fdcae43d7b57ddb1b3a0e88a1

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