Skip to content

Commit 092af95

Browse files
author
Felix Exner (fexner)
authored
Merge branch 'main' into issue_844
2 parents 7c72f7e + 2048d14 commit 092af95

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1182
-699
lines changed

.github/workflows/ci-format.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
runs-on: ubuntu-22.04
1717
steps:
1818
- uses: actions/checkout@v4
19-
- uses: actions/setup-python@v4
19+
- uses: actions/setup-python@v5
2020
with:
2121
python-version: 3.10.4
2222
- name: Install system hooks
2323
run: sudo apt-get install clang-format-14 cppcheck
24-
- uses: pre-commit/[email protected].0
24+
- uses: pre-commit/[email protected].1
2525
with:
2626
extra_args: --all-files --hook-stage manual

.github/workflows/coverage-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
file: ros_ws/lcov/total_coverage.info
4646
flags: unittests
4747
name: codecov-umbrella
48-
- uses: actions/upload-artifact@v3
48+
- uses: actions/upload-artifact@v4
4949
with:
5050
name: colcon-logs-${{ matrix.os }}
5151
path: ros_ws/log

.github/workflows/iron-binary-main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
pull_request:
77
branches:
88
- iron
9-
- main # as long as rolling and iron should be compatible
109
push:
1110
branches:
1211
- iron

.github/workflows/iron-binary-testing.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
pull_request:
77
branches:
88
- iron
9-
- main # as long as rolling and iron should be compatible
109
push:
1110
branches:
1211
- iron

.github/workflows/iron-semi-binary-main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
pull_request:
77
branches:
88
- iron
9-
- main # as long as rolling and iron should be compatible
109
push:
1110
branches:
1211
- iron

.github/workflows/iron-semi-binary-testing.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
pull_request:
77
branches:
88
- iron
9-
- main # as long as rolling and iron should be compatible
109
push:
1110
branches:
1211
- iron

.github/workflows/update-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
steps:
1616
# Setup pre-commit
1717
- uses: actions/checkout@v4
18-
- uses: actions/setup-python@v4
18+
- uses: actions/setup-python@v5
1919
with:
2020
python-version: 3.10.4
2121
- name: Install pre-commit
@@ -28,7 +28,7 @@ jobs:
2828
# Create pull request
2929
- name: Create pull-request
3030
id: cpr
31-
uses: peter-evans/create-pull-request@v5
31+
uses: peter-evans/create-pull-request@v6
3232
with:
3333
branch: update-ci/pre-commit-autoupdate
3434
delete-branch: true

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
repos:
1616
# Standard hooks
1717
- repo: https://github.com/pre-commit/pre-commit-hooks
18-
rev: v4.4.0
18+
rev: v4.5.0
1919
hooks:
2020
- id: check-added-large-files
2121
- id: check-ast
@@ -33,13 +33,13 @@ repos:
3333

3434
# Python hooks
3535
- repo: https://github.com/asottile/pyupgrade
36-
rev: v3.13.0
36+
rev: v3.15.1
3737
hooks:
3838
- id: pyupgrade
3939
args: [--py36-plus]
4040

4141
- repo: https://github.com/psf/black
42-
rev: 23.9.1
42+
rev: 24.2.0
4343
hooks:
4444
- id: black
4545
args: ["--line-length=100"]
@@ -51,7 +51,7 @@ repos:
5151
args: ["--ignore=D100,D101,D102,D103,D104,D105,D106,D107,D203,D212,D401,D404"]
5252

5353
- repo: https://github.com/pycqa/flake8
54-
rev: 6.1.0
54+
rev: 7.0.0
5555
hooks:
5656
- id: flake8
5757
args: ["--ignore=E501,W503"]
@@ -135,7 +135,7 @@ repos:
135135
# Spellcheck in comments and docs
136136
# skipping of *.svg files is not working...
137137
- repo: https://github.com/codespell-project/codespell
138-
rev: v2.2.5
138+
rev: v2.2.6
139139
hooks:
140140
- id: codespell
141141
args: ['--write-changes']

README.md

Lines changed: 14 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,19 @@ users an overview of the current released state.
8585
- `ur_moveit_config` - example MoveIt configuration for UR robots.
8686
- `ur_robot_driver` - driver / hardware interface for communication with UR robots.
8787

88+
## System Requirements
89+
90+
Please see the [requirements for the Universal_Robots_Client_Library](https://github.com/UniversalRobots/Universal_Robots_Client_Library#requirements), as this driver is build on top of Universal_Robots_Client_Library.
91+
8892
## Getting Started
8993

9094
For getting started, you'll basically need three steps:
9195

92-
1. **Install the driver** (see below). You can either install this driver from binary packages or build it from source. We recommend a
93-
binary package installation unless you want to join development and submit changes.
96+
1. **Install the driver**
97+
```bash
98+
sudo apt-get install ros-rolling-ur
99+
```
100+
See the [installation instructions](https://docs.ros.org/en/ros2_packages/rolling/api/ur_robot_driver/installation/installation.html) for more details and source-build instructions.
94101

95102
2. **Start & Setup the robot**. Once you've installed the driver, [setup the
96103
robot](https://docs.ros.org/en/ros2_packages/rolling/api/ur_robot_driver/installation/robot_setup.html)
@@ -110,65 +117,14 @@ binary package installation unless you want to join development and submit chang
110117
documentation](https://docs.ros.org/en/ros2_packages/rolling/api/ur_robot_driver/usage.html) for
111118
details.
112119

113-
4. Unless started in [headless mode](https://docs.ros.org/en/ros2_packages/rolling/api/ur_robot_driver/ROS_INTERFACE.html#headless-mode): Run the external_control program by **pressing `play` on the teach pendant**.
114-
115-
### Install from binary packages
116-
1. [Install ROS2](https://docs.ros.org/en/rolling/Installation/Ubuntu-Install-Debians.html). This
117-
branch supports only ROS2 Rolling. For other ROS2 versions, please see the respective
118-
branches.
119-
2. Install the driver using
120-
```
121-
sudo apt-get install ros-${ROS_DISTRO}-ur
120+
```bash
121+
# Replace ur5e with one of ur3, ur3e, ur5, ur5e, ur10, ur10e, ur16e, ur20, ur30
122+
# Replace the IP address with the IP address of your actual robot / URSim
123+
ros2 launch ur_robot_driver ur_control.launch.py ur_type:=ur5e robot_ip:=192.168.56.101
122124
```
123125

124-
### Build from source
125-
Before building from source please make sure that you actually need to do that. Building from source
126-
might require some special treatment, especially when it comes to dependency management.
127-
Dependencies might change from time to time. Upstream packages (such as the library) might change
128-
their features / API which require changes in this repo. Therefore, this repo's source builds might
129-
require upstream repositories to be present in a certain version as otherwise builds might fail.
130-
Starting from scratch following exactly the steps below should always work, but simply pulling and
131-
building might fail occasionally.
132-
133-
1. [Install ROS2](https://docs.ros.org/en/rolling/Installation/Ubuntu-Install-Debians.html). This
134-
branch supports only ROS2 Rolling. For other ROS2 versions, please see the respective
135-
branches.
136-
137-
Once installed, please make sure to actually [source ROS2](https://docs.ros.org/en/rolling/Tutorials/Beginner-CLI-Tools/Configuring-ROS2-Environment.html#source-the-setup-files) before proceeding.
138-
139-
3. Make sure that `colcon`, its extensions and `vcs` are installed:
140-
```
141-
sudo apt install python3-colcon-common-extensions python3-vcstool
142-
```
143-
144-
4. Create a new ROS2 workspace:
145-
```
146-
export COLCON_WS=~/workspace/ros_ur_driver
147-
mkdir -p $COLCON_WS/src
148-
```
149-
150-
5. Clone relevant packages, install dependencies, compile, and source the workspace by using:
151-
```
152-
cd $COLCON_WS
153-
git clone https://github.com/UniversalRobots/Universal_Robots_ROS2_Driver.git src/Universal_Robots_ROS2_Driver
154-
vcs import src --skip-existing --input src/Universal_Robots_ROS2_Driver/Universal_Robots_ROS2_Driver-not-released.${ROS_DISTRO}.repos
155-
rosdep update
156-
rosdep install --ignore-src --from-paths src -y
157-
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release
158-
source install/setup.bash
159-
```
160-
161-
6. When consecutive pulls lead to build errors it is possible that you'll have to build an upstream
162-
package from source, as well. See the [detailed build status](ci_status.md). When the binary builds are red, but
163-
the semi-binary builds are green, you need to build the upstream dependencies from source. The
164-
easiest way to achieve this, is using the repos file:
126+
4. Unless started in [headless mode](https://docs.ros.org/en/ros2_packages/rolling/api/ur_robot_driver/ROS_INTERFACE.html#headless-mode): Run the external_control program by **pressing `play` on the teach pendant**.
165127

166-
```
167-
cd $COLCON_WS
168-
vcs import src --skip-existing --input src/Universal_Robots_ROS2_Driver/Universal_Robots_ROS2_Driver.${ROS_DISTRO}.repos
169-
rosdep update
170-
rosdep install --ignore-src --from-paths src -y
171-
```
172128

173129
## MoveIt! support
174130

Universal_Robots_ROS2_Driver.iron.repos

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ repositories:
1414
ros2_control:
1515
type: git
1616
url: https://github.com/ros-controls/ros2_control.git
17-
version: master
17+
version: iron
1818
ros2_controllers:
1919
type: git
2020
url: https://github.com/ros-controls/ros2_controllers
21-
version: master
21+
version: iron
2222
kinematics_interface:
2323
type: git
2424
url: https://github.com/ros-controls/kinematics_interface.git

0 commit comments

Comments
 (0)