-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from lbr-stack/dev-common-fri-src
FRI source via FetchContent
- Loading branch information
Showing
18 changed files
with
142 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: Lint | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: psf/black@stable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Build | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, ubuntu-22.04] | ||
fri_version: [1.11, 1.14, 1.15, 1.16, 2.5, 2.7] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.x" | ||
- name: Test installation | ||
run: export FRI_CLIENT_VERSION=${{ matrix.fri_version }} && pip3 install --verbose . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
[submodule "FRI-Client-SDK_Cpp"] | ||
path = FRI-Client-SDK_Cpp | ||
url = [email protected]:cmower/FRI-Client-SDK_Cpp.git | ||
[submodule "pybind"] | ||
path = pybind | ||
url = [email protected]:pybind/pybind11.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule FRI-Client-SDK_Cpp
deleted from
c2a710
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
# FRI-Client-SDK_Python | ||
# pyFRI | ||
|
||
[![License](https://img.shields.io/github/license/lbr-stack/pyFRI)](https://github.com/lbr-stack/pyFRI/tree/main?tab=Apache-2.0-1-ov-file#readme) | ||
[![Code Style: Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) | ||
|
||
KUKA Fast Robot Interface Python SDK. | ||
The code in this repository, provides Python bindings for the FRI Client SDK C++. | ||
|
@@ -36,7 +39,7 @@ See the [examples](examples/). | |
|
||
**THIS IS NOT A KUKA PRODUCT.** | ||
|
||
[@cmower](https://github.com/cmower) is not affiliated with KUKA. | ||
[@cmower](https://github.com/cmower) and [@mhubii](https://github.com/mhubii) are not affiliated with KUKA. | ||
|
||
# Support | ||
|
||
|
@@ -47,26 +50,30 @@ The following versions of FRI are currently supported: | |
Note, whilst FRI version 2.5 is supported some functionality is not. | ||
Currently, FRI Cartesian Overlay is not supported by FRI-Client-SDK_Python. | ||
|
||
If you have a different version, please consider [forking](https://github.com/cmower/FRI-Client-SDK_Cpp/fork) and [submitting a pull request](https://github.com/cmower/FRI-Client-SDK_Cpp/pulls). | ||
If you have a different version, please consider [forking](https://github.com/lbr-stack/pyFRI/fork) and [submitting a pull request](https://github.com/lbr-stack/pyFRI/pulls). | ||
|
||
# Install | ||
|
||
1. Clone repository: `$ git clone --recursive [email protected]:cmower/FRI-Client-SDK_Python.git` (make sure you include `--recursive`) | ||
2. Change directory: `$ cd FRI-Client-SDK_Python` | ||
3. Modify `fri_config.py`: uncomment the line corresponding to your version of FRI. | ||
4. Install: `$ pip install .` | ||
1. Clone repository (make sure you include `--recursive`): | ||
```shell | ||
git clone --recursive https://github.com/lbr-stack/pyFRI.git | ||
``` | ||
2. Change directory: | ||
```shell | ||
cd pyFRI | ||
``` | ||
3. Install: | ||
```shell | ||
export FRI_CLIENT_VERSION=1.15 | ||
pip3 install . | ||
``` | ||
|
||
## Upgrading/switching between FRI Versions | ||
|
||
If you upgrade your FRI version or want to switch between them, you need to manually remove the `FRI-Client-SDK_Python/build` directory before running `pip install`. | ||
If you upgrade your FRI version or want to switch between them, you need to manually remove the `build/` directory before running `pip install`. | ||
|
||
# Usage | ||
|
||
## Java application | ||
|
||
A flexible Java application is provided [here](https://github.com/cmower/LBR-Java-app). | ||
This must be installed on the KUKA Sunrise controller. | ||
|
||
## Data types | ||
|
||
You can pass NumPy arrays to the "set" methods (e.g. `setJointPosition`) in order to command the robot. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
|
||
|
||
class IK: | ||
|
||
""" | ||
This class solves the following problem | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.