Skip to content

Commit

Permalink
pyFRI -> pyfri
Browse files Browse the repository at this point in the history
  • Loading branch information
mhubii committed Sep 7, 2024
1 parent acb3ce0 commit 81ebd7a
Show file tree
Hide file tree
Showing 18 changed files with 33 additions and 31 deletions.
8 changes: 4 additions & 4 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ The [LBR-Stack](https://github.com/lbr-stack/) thrives to build a friendly commu
We **encourage** everyone to open issues for questions / problems / features. For additional information, we would like to provide some links below.

### Knowledge Sources
- [Open issues](https://github.com/lbr-stack/pyFRI/issues)
- [Closed issues](https://github.com/lbr-stack/pyFRI/issues?q=is%3Aissue+is%3Aclosed)
- [Open issues](https://github.com/lbr-stack/pyfri/issues)
- [Closed issues](https://github.com/lbr-stack/pyfri/issues?q=is%3Aissue+is%3Aclosed)

## Contributing
### pyFRI
### pyfri
Contributions are vital to this project. If you want to contribute a feature / fix proceed as follows

1. Open an issue:
- Explain the issue and your solution
- Request a new branch: `dev-feature`, e.g. `dev-my-new-demo`
2. Fork this repository
3. Create a [pull request](https://github.com/lbr-stack/pyFRI/pulls) against `dev-<feature>`
3. Create a [pull request](https://github.com/lbr-stack/pyfri/pulls) against `dev-<feature>`

### New FRI version
Refer [README](https://github.com/lbr-stack/fri#contributing) for instructions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

cmake_minimum_required(VERSION 3.16.3)

project(_pyFRI)
project(_pyfri)

include(FetchContent)

Expand All @@ -27,12 +27,12 @@ FetchContent_MakeAvailable(FRI)

add_subdirectory(pybind)

pybind11_add_module(_pyFRI ${CMAKE_CURRENT_SOURCE_DIR}/pyFRI/src/wrapper.cpp)
pybind11_add_module(_pyfri ${CMAKE_CURRENT_SOURCE_DIR}/pyfri/src/wrapper.cpp)

target_include_directories(
_pyFRI
_pyfri
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/pyFRI/src
${CMAKE_CURRENT_SOURCE_DIR}/pyfri/src
)

target_link_libraries(_pyFRI PRIVATE FRIClient)
target_link_libraries(_pyfri PRIVATE FRIClient)
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ representative at an online or offline event.

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
https://github.com/lbr-stack/pyFRI/issues.
https://github.com/lbr-stack/pyfri/issues.
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# pyFRI
# pyfri

[![Build](https://github.com/lbr-stack/pyFRI/actions/workflows/build.yaml/badge.svg)](https://github.com/lbr-stack/pyFRI/actions/workflows/build.yaml)
[![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)
[![Build](https://github.com/lbr-stack/pyfri/actions/workflows/build.yaml/badge.svg)](https://github.com/lbr-stack/pyfri/actions/workflows/build.yaml)
[![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)
[![JOSS](https://joss.theoj.org/papers/c43c82bed833c02503dd47f2637192ef/status.svg)](https://joss.theoj.org/papers/c43c82bed833c02503dd47f2637192ef)
[![Code Style: Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

Expand All @@ -26,7 +26,7 @@ ClientApplication app(connection, client);
In Python, the equivalent code is as follows.
```python
import pyFRI as fri
import pyfri as fri
# ..setup client..
Expand All @@ -41,11 +41,11 @@ See the [examples](examples/).

1. Clone repository (make sure you include `--recursive`):
```shell
git clone --recursive https://github.com/lbr-stack/pyFRI.git
git clone --recursive https://github.com/lbr-stack/pyfri.git
```
2. Change directory:
```shell
cd pyFRI
cd pyfri
```
3. Install:
```shell
Expand Down
6 changes: 4 additions & 2 deletions doc/pyfri.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
pyfri
=====

## Upgrading/switching between FRI Versions
.. ## Upgrading/switching between FRI Versions
If you upgrade your FRI version or want to switch between them, you need to manually remove the `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`.
2 changes: 1 addition & 1 deletion examples/LBRJointSineOverlay.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import numpy as np
import pandas as pd

import pyFRI as fri
import pyfri as fri


class LBRJointSineOverlayClient(fri.LBRClient):
Expand Down
2 changes: 1 addition & 1 deletion examples/LBRTorqueSineOverlay.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import numpy as np

import pyFRI as fri
import pyfri as fri


class LBRTorqueSineOverlayClient(fri.LBRClient):
Expand Down
2 changes: 1 addition & 1 deletion examples/LBRWrenchSineOverlay.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import numpy as np

import pyFRI as fri
import pyfri as fri


class LBRWrenchSineOverlayClient(fri.LBRClient):
Expand Down
6 changes: 3 additions & 3 deletions examples/hand_guide.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import numpy as np
from admittance import AdmittanceController

import pyFRI as fri
from pyFRI.tools.filters import ExponentialStateFilter
from pyFRI.tools.state_estimators import (
import pyfri as fri
from pyfri.tools.filters import ExponentialStateFilter
from pyfri.tools.state_estimators import (
FRIExternalTorqueEstimator,
JointStateEstimator,
WrenchEstimatorTaskOffset,
Expand Down
2 changes: 1 addition & 1 deletion examples/joint_teleop.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pygame

# FRI Client: https://github.com/cmower/FRI-Client-SDK_Python
import pyFRI as fri
import pyfri as fri

pygame.init()

Expand Down
2 changes: 1 addition & 1 deletion examples/task_teleop.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import pygame

# FRI Client: https://github.com/cmower/FRI-Client-SDK_Python
import pyFRI as fri
import pyfri as fri

pygame.init()

Expand Down
1 change: 0 additions & 1 deletion pyFRI/__init__.py

This file was deleted.

1 change: 1 addition & 0 deletions pyfri/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from _pyfri import *
2 changes: 1 addition & 1 deletion pyFRI/src/wrapper.cpp → pyfri/src/wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class PyClientApplication {
// Python bindings
namespace py = pybind11;

PYBIND11_MODULE(_pyFRI, m) {
PYBIND11_MODULE(_pyfri, m) {
m.doc() = "Python bindings for the KUKA FRI Client SDK. THIS IS NOT A KUKA "
"PRODUCT.";

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import abc
import numpy as np
from pyFRI import LBRState
from pyfri import LBRState
from collections import deque


Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,14 @@ def build_extension(self, ext: CMakeExtension) -> None:


setup(
name="pyFRI",
name="pyfri",
version="1.2.0",
author="Christopher E. Mower, Martin Huber",
author_email="[email protected], [email protected]",
description="Python bindings for the FRI Client SDK library.",
long_description="",
packages=find_packages(),
ext_modules=[CMakeExtension("_pyFRI")],
ext_modules=[CMakeExtension("_pyfri")],
install_requires=["numpy", "pygame", "pyoptas", "pandas", "matplotlib"],
cmdclass={"build_ext": CMakeBuild},
python_requires=">=3.8",
Expand Down

0 comments on commit 81ebd7a

Please sign in to comment.