Skip to content

PyNetFT 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.

License

Notifications You must be signed in to change notification settings

han-xudong/pyNetFT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

PyNetFT 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.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Languages