Skip to content

Commit 3790877

Browse files
destogllivanov93AndyZe
authored
Review CI by correcting the configurations (#71)
* Update license. * Update CI configs. Co-authored-by: Lovro <[email protected]> Co-authored-by: AndyZe <[email protected]>
1 parent f015749 commit 3790877

File tree

20 files changed

+282
-330
lines changed

20 files changed

+282
-330
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Coverage Build
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
- develop
8+
schedule:
9+
# Run every morning to detect flakiness and broken dependencies
10+
- cron: '58 8 * * *'
11+
12+
jobs:
13+
coverage:
14+
name: coverage build
15+
runs-on: ubuntu-20.04
16+
strategy:
17+
fail-fast: false
18+
steps:
19+
- uses: ros-tooling/[email protected]
20+
with:
21+
required-ros-distributions: foxy
22+
- uses: ros-tooling/[email protected]
23+
with:
24+
target-ros2-distro: foxy
25+
# build all packages listed in the meta package
26+
package-name:
27+
ur5_e_moveit_config
28+
ur5_moveit_config
29+
ur_bringup
30+
ur_controllers
31+
ur_dashboard_msgs
32+
ur_description
33+
ur_moveit_config
34+
ur_robot_driver
35+
vcs-repo-file-url: |
36+
https://raw.githubusercontent.com/${{ github.repository }}/${{ github.sha }}/Universal_Robots_ROS2_Driver.repos
37+
colcon-defaults: |
38+
{
39+
"build": {
40+
"mixin": ["coverage-gcc"]
41+
}
42+
}
43+
colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml
44+
- uses: codecov/[email protected]
45+
with:
46+
file: ros_ws/lcov/total_coverage.info
47+
flags: unittests
48+
name: codecov-umbrella
49+
- uses: actions/upload-artifact@v1
50+
with:
51+
name: colcon-logs-${{ matrix.os }}
52+
path: ros_ws/log

.github/workflows/ci-build-source.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,14 @@ jobs:
2121
target-ros2-distro: foxy
2222
# build all packages listed in the meta package
2323
package-name:
24-
Universal_Robots_ROS2_Driver
24+
ur5_e_moveit_config
25+
ur5_moveit_config
26+
ur_bringup
27+
ur_controllers
28+
ur_dashboard_msgs
29+
ur_description
30+
ur_moveit_config
31+
ur_robot_driver
2532
vcs-repo-file-url: |
2633
https://raw.githubusercontent.com/ros2/ros2/foxy/ros2.repos
2734
https://raw.githubusercontent.com/${{ github.repository }}/${{ github.sha }}/Universal_Robots_ROS2_Driver.repos

.github/workflows/ci-build.yml

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build
1+
name: Binary Build
22
on:
33
pull_request:
44
push:
@@ -19,42 +19,8 @@ jobs:
1919
- {ROS_DISTRO: foxy, ROS_REPO: main}
2020
- {ROS_DISTRO: foxy, ROS_REPO: testing}
2121
env:
22-
UPSTREAM_WORKSPACE: Universal_Robots_ROS2_Driver.ci.repos
22+
UPSTREAM_WORKSPACE: Universal_Robots_ROS2_Driver.repos
2323
steps:
2424
- uses: actions/checkout@v1
2525
- uses: 'ros-industrial/industrial_ci@master'
2626
env: ${{matrix.env}}
27-
28-
coverage:
29-
name: coverage build
30-
runs-on: ubuntu-20.04
31-
strategy:
32-
fail-fast: false
33-
steps:
34-
- uses: ros-tooling/[email protected]
35-
with:
36-
required-ros-distributions: foxy
37-
- uses: ros-tooling/[email protected]
38-
with:
39-
target-ros2-distro: foxy
40-
# build all packages listed in the meta package
41-
package-name:
42-
Universal_Robots_ROS2_Driver
43-
vcs-repo-file-url: |
44-
https://raw.githubusercontent.com/${{ github.repository }}/${{ github.sha }}/Universal_Robots_ROS2_Driver.repos
45-
colcon-defaults: |
46-
{
47-
"build": {
48-
"mixin": ["coverage-gcc"]
49-
}
50-
}
51-
colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml
52-
- uses: codecov/[email protected]
53-
with:
54-
file: ros_ws/lcov/total_coverage.info
55-
flags: unittests
56-
name: codecov-umbrella
57-
- uses: actions/upload-artifact@v1
58-
with:
59-
name: colcon-logs-${{ matrix.os }}
60-
path: ros_ws/log

.github/workflows/ci-lint.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 67 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -31,34 +31,52 @@ repos:
3131
- id: trailing-whitespace
3232

3333
# Python hooks
34-
- repo: https://github.com/pycqa/isort
35-
rev: 5.8.0
34+
# PEP 257
35+
- repo: https://github.com/FalconSocial/pre-commit-mirrors-pep257
36+
rev: v0.3.3
3637
hooks:
37-
- id: isort
38+
- id: pep257
39+
args: ["--ignore=D100,D101,D102,D103,D104,D105,D106,D107,D203,D212,D404"]
3840

39-
#- repo: local
40-
#hooks:
41-
#- id: ament_pep257
42-
#name: ament_pep257
43-
#description: Find warnings/errors in ROS Python code.
44-
#entry: ament_pep257
45-
#language: python
41+
- repo: https://github.com/pycqa/flake8
42+
rev: 3.9.0
43+
hooks:
44+
- id: flake8
45+
args: ["--ignore=E501"]
4646

4747
- repo: https://github.com/psf/black
4848
rev: 20.8b1
4949
hooks:
5050
- id: black
51-
args: [--line-length=100]
51+
args: ["--line-length=100"]
52+
53+
# CPP hooks
54+
# The same options as in ament_cppcheck are used, but its not working...
55+
#- repo: https://github.com/pocc/pre-commit-hooks
56+
#rev: v1.1.1
57+
#hooks:
58+
#- id: cppcheck
59+
#args: ['--error-exitcode=1', '-f', '--inline-suppr', '-q', '-rp', '--suppress=internalAstError', '--suppress=unknownMacro', '--verbose']
5260

53-
# Cpp hooks
5461
- repo: local
5562
hooks:
5663
- id: ament_cppcheck
5764
name: ament_cppcheck
58-
description: Find warnings/errors in ROS C/CPP code.
65+
description: Static code analysis of C/C++ files.
5966
entry: ament_cppcheck
60-
language: python
61-
files: \.(c|cc|cxx|cpp|h|hpp|hxx|m)$
67+
language: system
68+
files: \.(h\+\+|h|hh|hxx|hpp|cuh|c|cc|cpp|cu|c\+\+|cxx|tpp|txx)$
69+
70+
# Maybe use https://github.com/cpplint/cpplint instead
71+
- repo: local
72+
hooks:
73+
- id: ament_cpplint
74+
name: ament_cpplint
75+
description: Static code analysis of C/C++ files.
76+
entry: ament_cpplint
77+
language: system
78+
files: \.(h\+\+|h|hh|hxx|hpp|cuh|c|cc|cpp|cu|c\+\+|cxx|tpp|txx)$
79+
args: ["--linelength=120"]
6280

6381
- repo: local
6482
hooks:
@@ -70,15 +88,44 @@ repos:
7088
files: \.(c|cc|cxx|cpp|frag|glsl|h|hpp|hxx|ih|ispc|ipp|java|js|m|proto|vert)$
7189
args: ['-fallback-style=none', '-i']
7290

91+
# Cmake hooks
92+
- repo: local
93+
hooks:
94+
- id: ament_lint_cmake
95+
name: ament_lint_cmake
96+
description: Check format of CMakeLists.txt files.
97+
entry: ament_lint_cmake
98+
language: system
99+
files: CMakeLists.txt$
100+
101+
# Copyright
102+
- repo: local
103+
hooks:
104+
- id: ament_copyright
105+
name: ament_copyright
106+
description: Check if copyright notice is available in all files.
107+
entry: ament_copyright
108+
language: system
109+
73110
# Docs - RestructuredText hooks
74111
- repo: https://github.com/PyCQA/doc8
75112
rev: 0.9.0a1
76113
hooks:
77114
- id: doc8
78115
args: ['--max-line-length=100', '--ignore=D001']
79116

80-
#- repo: https://github.com/codespell-project/codespell
81-
#rev: v2.0.0
82-
#hooks:
83-
#- id: codespell
84-
#args: ['--write-changes', '--skip="*.svg"']
117+
- repo: https://github.com/pre-commit/pygrep-hooks
118+
rev: v1.8.0
119+
hooks:
120+
- id: rst-backticks
121+
- id: rst-directive-colons
122+
- id: rst-inline-touching-normal
123+
124+
# Spellcheck in comments and docs
125+
# skipping of *.svg files is not working...
126+
- repo: https://github.com/codespell-project/codespell
127+
rev: v2.0.0
128+
hooks:
129+
- id: codespell
130+
args: ['--write-changes']
131+
exclude: \.(svg|pyc)$

CONTRIBUTING.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Contributing Guidelines
2+
Thank you for your interest in contributing to `Universal_Robots_ROS2_Driver`.
3+
Whether it's a bug report, new feature, correction, or additional
4+
documentation, we greatly value feedback and contributions from our community.
5+
6+
Please read through this document before submitting any issues or pull requests to ensure we have all the necessary
7+
information to effectively respond to your bug report or contribution.
8+
9+
10+
## Reporting Bugs/Feature Requests
11+
We welcome you to use the GitHub issue tracker to report bugs or suggest features.
12+
13+
When filing an issue, please check [existing open][issues], or [recently closed][closed-issues], issues to make sure
14+
somebody else hasn't already reported the issue.
15+
Please try to include as much information as you can. Details like these are incredibly useful:
16+
17+
* A reproducible test case or series of steps
18+
* The version of our code being used
19+
* Any modifications you've made relevant to the bug
20+
* Anything unusual about your environment or deployment
21+
22+
## Contributing via Pull Requests
23+
Contributions via pull requests are much appreciated.
24+
Before sending us a pull request, please ensure that:
25+
26+
1. You are working against the latest source on the *master* branch.
27+
2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
28+
3. You open an issue to discuss any significant work - we would hate for your time to be wasted.
29+
30+
To send us a pull request, please:
31+
32+
1. Fork the repository.
33+
2. Modify the source; please focus on the specific change you are contributing.
34+
If you also reformat all the code, it will be hard for us to focus on your change.
35+
3. Ensure local tests pass.
36+
4. Commit to your fork using clear commit messages.
37+
5. Send a pull request, answering any default questions in the pull request interface.
38+
6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
39+
40+
GitHub provides additional documentation on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
41+
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).

ur_controllers/LICENSE renamed to LICENSE

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
Copyright 2019 FZI Forschungszentrum Informatik
21

32
Apache License
43
Version 2.0, January 2004
@@ -176,3 +175,28 @@ Copyright 2019 FZI Forschungszentrum Informatik
176175
of your accepting any such warranty or additional liability.
177176

178177
END OF TERMS AND CONDITIONS
178+
179+
APPENDIX: How to apply the Apache License to your work.
180+
181+
To apply the Apache License to your work, attach the following
182+
boilerplate notice, with the fields enclosed by brackets "[]"
183+
replaced with your own identifying information. (Don't include
184+
the brackets!) The text should be enclosed in the appropriate
185+
comment syntax for the file format. We also recommend that a
186+
file or class name and description of purpose be included on the
187+
same "printed page" as the copyright notice for easier
188+
identification within third-party archives.
189+
190+
Copyright 2021 PickNik, Inc.
191+
192+
Licensed under the Apache License, Version 2.0 (the "License");
193+
you may not use this file except in compliance with the License.
194+
You may obtain a copy of the License at
195+
196+
http://www.apache.org/licenses/LICENSE-2.0
197+
198+
Unless required by applicable law or agreed to in writing, software
199+
distributed under the License is distributed on an "AS IS" BASIS,
200+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201+
See the License for the specific language governing permissions and
202+
limitations under the License.

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,6 @@ The most relevant arguments are the following:
103103
Now you should be able to use MoveIt Plugin in rviz2 to plan and execute trajectories with the robot.
104104
**NOTE**: This results in two instances of rviz2. You can safely close the one without *MotionPlanning* panel.
105105

106-
If you have **issues** shows the correct configuration5 of the robot, try removing and re-adding *MotionPlanning* display.
107-
108-
109106
## Expected Changes in the Near Future
110107

111108
- Using upstream `force_torque_sensor_broadcaster` (ros-controls/ros2_controllers#152)

ur_bringup/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ find_package(ament_cmake REQUIRED)
55

66
install(DIRECTORY config launch
77
DESTINATION share/${PROJECT_NAME}
8-
)
8+
)
99

1010
ament_package()

ur_bringup/package.xml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,29 @@
44
<name>ur_bringup</name>
55
<version>0.0.0</version>
66
<description>Launch file and run-time configurations, e.g. controllers.</description>
7+
78
<author>Lovro Ivanov</author>
9+
<author>Denis Stogl</author>
10+
11+
<maintainer email="[email protected]">Marvin Große Besselmann</maintainer>
812
<maintainer email="[email protected]">Lovro Ivanov</maintainer>
13+
<maintainer email="[email protected]">Denis Stogl</maintainer>
14+
<maintainer email="[email protected]">Andy Zelenak</maintainer>
15+
16+
<license>Apache License 2.0</license>
917

10-
<license>Apache-2.0</license>
11-
<license>BSD-2-Clause</license>
12-
<license>Zlib</license>
18+
<url type="bugtracker">https://github.com/UniversalRobots/Universal_Robots_ROS2_Driver/issues</url>
19+
<url type="repository">https://github.com/UniversalRobots/Universal_Robots_ROS2_Driver</url>
1320

1421
<buildtool_depend>ament_cmake</buildtool_depend>
1522

1623
<exec_depend>controller_manager</exec_depend>
24+
<exec_depend>joint_state_publisher</exec_depend>
25+
<exec_depend>launch</exec_depend>
26+
<exec_depend>launch_ros</exec_depend>
1727
<exec_depend>moveit_ros_move_group</exec_depend>
28+
<exec_depend>rviz2</exec_depend>
29+
<exec_depend>urdf</exec_depend>
1830
<exec_depend>warehouse_ros_mongo</exec_depend>
1931
<exec_depend>xacro</exec_depend>
2032

0 commit comments

Comments
 (0)