Software drivers for the robot autonomy effector
Project description
About
This is the official repositiory for the python based software drivers of the robot autonomy effector. This package enables you to control the fingertip distance of the gripper, the position of the rack and direct Servo access.
Prerequisites
- Python > 3.6
- Linux based System OS
- Ethernet or Wifi Connected RPi4
- SSH Connection to RPi (VSCODE SSH extension is strongly recommended)
Installation
Either clone this repository with
pip3 install git+https://github.com/romzn/raepy.git
or direct from the pypi repository
pip3 install raepy
or build the newest version and
git clone github.com/romzn/raepy.git
cd raepy
## Build repository and Install
python3 -m pip install --upgrade build
pip3 -m build
pip3 install .
# Start tests to see basic functionality (!!After the racktest and servoest an recalibration has to be made!!)
pip3 -m unittest racktest.py
pip3 -m unittest radialgrippertest.py
pip3 -m unittest racktest.py
Basic functionality
To move the gripper or the rack the their specific objects has to be loaded in the current script.
from raepy import Rack, RadialGripper, Servo
rack = Rack()
gripper = RadialGripper()
servo = Servo()
rack.out() # brings the rack to the front position (+8cm) and the grippers back
gripper.grasp() # brings the grippers together until they meet resistance, then they are holding with an specific force.
gripper.to(0.1) # Set the distance between the two fingertips to 10 cm
gripper.to(0.2) # Set the distance between the two fingertips to 20 cm
rack.to(0.5) # Drives the rack to an absolute position (5cm)
rack.to(1.2) # Drives the rack out !! but before dismantle the grippers or they will collide !!
servo.led_to(color) # sets the color to ['black', 'red', 'green', 'blue', 'yellow', 'cyab', 'magenta']
servo.limp() # Sets the motor current to zero which results in powerless fingers
servo.hold() # holds the position with an specific force (max 28 Nm)
# ! There are some servomotor functions more, just take a look at the sources ./src/servo !
Calibration
To calibrate the gripper two steps has to be made.
In the first step the grippers have to be dismantled an the rack must drive Rack Out
Normally an calibration is not needed because the gripper is calibrated by factory. In the case you dismantle Gripper without mounting them back into exactly the same position, or you drive the rack completely out an recalibration is necessary. It is also necesseary if the package was updated
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file raepy-0.0.26.tar.gz
.
File metadata
- Download URL: raepy-0.0.26.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0edd5a1b244a8647b06aa0c0e7348e8d68f4c1687b24627b1cacfe11f7780ae |
|
MD5 | 9415c99ada1a1f632ff399ca146d1e12 |
|
BLAKE2b-256 | f7507d9896e5fdc794b72f2907bd5c9ca52411836f7341f24ea1a6b8536df388 |
File details
Details for the file raepy-0.0.26-py3-none-any.whl
.
File metadata
- Download URL: raepy-0.0.26-py3-none-any.whl
- Upload date:
- Size: 32.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 848120fca500ee0620701ee8f87a9d20a14f34a9ebd7bc3076b8e37d60ff0254 |
|
MD5 | 62252a9446087e291459c4b35fb37b05 |
|
BLAKE2b-256 | d1b92c4d20c25d8aa3e1efeed4e52570041555ac15544ae99e298da02c5bd810 |