Skip to content

Commit

Permalink
Fix CI for missing curl dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanscherzinger committed Apr 17, 2024
1 parent c998cb2 commit 13071c6
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 21 deletions.
3 changes: 3 additions & 0 deletions .github/script/install_dependencies.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#/usr/bin/bash
cd $HOME
apt-get install curl libcurl4-openssl-dev
2 changes: 2 additions & 0 deletions .github/workflows/industrial_ci_humble_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:

jobs:
industrial_ci:
env:
BEFORE_BUILD_TARGET_WORKSPACE: '.github/script/install_dependencies.sh'
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/industrial_ci_iron_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:

jobs:
industrial_ci:
env:
BEFORE_BUILD_TARGET_WORKSPACE: '.github/script/install_dependencies.sh'
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/industrial_ci_rolling_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:

jobs:
industrial_ci:
env:
BEFORE_BUILD_TARGET_WORKSPACE: '.github/script/install_dependencies.sh'
strategy:
fail-fast: false
matrix:
Expand Down
28 changes: 9 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,18 @@

# Schunk EGU/EGK Gripper

This is the ROS2 driver for controlling the SCHUNK EGU/EGK grippers. It is compatible with
grippers featuring PROFINET, Ethernet/IP, or EtherCAT and communicates with the AnybusCom 40 interface.
The driver supports most gripper functionalities, except for the jog mode.

## Description
## System dependencies

ROS2 driver for controlling Schunk EGU/EGK grippers. It is compatible with grippers featuring PROFINET, Ethernet/IP, or EtherCAT communication interfaces. The ROS driver encapsulates all gripper functionalities, excluding the jog mode.


### Background

The driver communicates with the AnybusCom 40 interface, enabling its use with PROFINET, Ethernet/IP, and EtherCAT grippers over HTTP. The ROS wrapper exposes the gripper's functionalities through ROS.

## Requirements

The provided distribution is "humble." To install ROS2 and verify compatibility with your operating system, please refer to the following link:
[ROS2 Installation Guide](https://docs.ros.org/en/humble/Installation.html)

Following C++ libraries are required:
- [libcurl](https://curl.se/libcurl/)
- [nlohmann/json](https://github.com/nlohmann/json)

'nlohmann/json' is included in the project. You don't need to download it separately.
We use the _curl_ library for the _HTTP_-based communication to the devices. Install that system-wide with
```bash
sudo apt install curl libcurl4-openssl-dev
```

## Build
## Build and install
Clone the GitLab repository into your workspace:
```
git clone https://gitlab-test.cloud.schunk.com/technology-factory/students/ros-gripper/ros2_schunk_driver.git
Expand Down
2 changes: 0 additions & 2 deletions src/schunk_gripper/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ target_compile_definitions(schunk_gripper_driver
# Link libraries to schunk_gripper_driver
target_link_libraries(schunk_gripper_driver
${CURL_LIBRARIES}
-lcurl
)

# Add dependencies for schunk_gripper_driver
Expand All @@ -104,7 +103,6 @@ rclcpp_components_register_nodes(schunk_gripper_driver "SchunkGripperNode")
# Link libraries to schunk_gripper_driver
target_link_libraries(schunk_gripper_driver
${CURL_LIBRARIES}
-lcurl
)

# Install schunk_gripper_example executable
Expand Down

0 comments on commit 13071c6

Please sign in to comment.