Skip to content

Commit 706e8ea

Browse files
Add BAFStateProvider YARP device (#97)
1 parent 28bac2c commit 706e8ea

13 files changed

Lines changed: 2307 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ jobs:
9292
-DCMAKE_PREFIX_PATH=${GITHUB_WORKSPACE}/install/deps \
9393
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
9494
-DFRAMEWORK_COMPILE_YarpImplementation=ON \
95+
-DFRAMEWORK_COMPILE_YarpDevices=ON \
9596
-DBUILD_TESTING:BOOL=ON \
9697
-DBUILD_EXAMPLES:BOOL=ON \
9798
-DFRAMEWORK_COMPILE_PYTHON_BINDINGS:BOOL=ON \
@@ -108,6 +109,7 @@ jobs:
108109
-DCMAKE_PREFIX_PATH=${GITHUB_WORKSPACE}/install/deps \
109110
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
110111
-DFRAMEWORK_COMPILE_YarpImplementation=ON \
112+
-DFRAMEWORK_COMPILE_YarpDevices=ON \
111113
-DBUILD_TESTING:BOOL=ON \
112114
-DBUILD_EXAMPLES:BOOL=ON \
113115
-DFRAMEWORK_COMPILE_PYTHON_BINDINGS:BOOL=ON \

CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ option(BUILD_EXAMPLES "Compile examples of the implemented classes" OFF)
2121
# Check BiomechanicalAnalysisFramework dependencies, find necessary libraries.
2222
include(BiomechanicalAnalysisFrameworkDependencies)
2323

24+
option(FRAMEWORK_COMPILE_YarpDevices "Compile the YARP device plugins in the devices folder" OFF)
25+
2426
#set default build type to "Release" in single-config generators
2527
if(NOT CMAKE_CONFIGURATION_TYPES)
2628
if(NOT CMAKE_BUILD_TYPE)
@@ -76,6 +78,13 @@ include(AddBiomechanicalAnalysisLibrary)
7678

7779
add_subdirectory(src)
7880

81+
if(FRAMEWORK_COMPILE_YarpDevices)
82+
if(NOT FRAMEWORK_COMPILE_YarpImplementation)
83+
message(FATAL_ERROR "FRAMEWORK_COMPILE_YarpDevices requires FRAMEWORK_COMPILE_YarpImplementation to be enabled")
84+
endif()
85+
add_subdirectory(devices)
86+
endif()
87+
7988
#Creates the interface target BiomechanicalAnalysis::Framework that depends on all the targets.
8089
#By including the file "BiomechanicalAnalysis/Framework.h" it is possible to include all the headers automatically.
8190
include(AddBiomechanicalAnalysisFrameworkTarget)

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ For detailed instructions on how to install and use the Python package, as well
8787

8888
For practical guidance on HumanIK calibration, world alignment, pose and position task behavior, and the typical calibrate-update-advance loop, see [docs/ik-calibration-and-runtime.md](docs/ik-calibration-and-runtime.md).
8989

90+
## Devices
91+
92+
This repository also provides yarp devices in the `devices` folder, enabled by the CMake option `FRAMEWORK_COMPILE_YarpDevices`. See the [`README`](devices/README.md) in the `devices` directory for build, installation, and configuration instructions.
93+
9094
## Maintainers
9195

9296
- RiccardoGrieco ([@RiccardoGrieco](https://github.com/RiccardoGrieco))

ci_env.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ dependencies:
1616
- pybind11
1717
- cmake-package-check
1818
- libresolve-robotics-uri-cpp
19+
- human-dynamics-estimation<6.0.0
1920

0 commit comments

Comments
 (0)