Skip to content

Commit c088be6

Browse files
Jan Gutschejaagut
authored andcommitted
Add python and cpp template node
0 parents  commit c088be6

31 files changed

+1017
-0
lines changed

.clang-format

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
Language: Cpp
3+
BasedOnStyle: Google
4+
ColumnLimit: 120

.git-blame-ignore-revs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Add git commit hashes to ignore for blame
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: "\U0001F41B Bug report"
3+
about: Report a misbehavior or other bug
4+
labels: 'bug'
5+
---
6+
# Summary
7+
<!--- Provide a general summary of the bug report -->
8+
9+
## Expected behavior
10+
<!--- Describe what you expected to happen -->
11+
12+
## Current behavior
13+
<!--- Describe what actually happened instead of the expected behavior -->
14+
15+
## Steps to Reproduce
16+
<!--- An unambiguous set of steps to reproduce this bug. -->
17+
<!--- Code-snippets, screenshots or other details are welcome if needed. -->
18+
1.
19+
2.
20+
3.
21+
22+
## Possible Solution
23+
<!--- Optional: If you already have an idea, you can suggest a fix/reason for the bug -->
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: "\U0001F680 Feature request"
3+
about: Suggest an idea for this project
4+
labels: 'enhancement'
5+
---
6+
# Summary
7+
<!--- Provide a general summary of the feature request -->
8+
9+
## Is your feature request related to a problem?
10+
<!-- Please describe the problem you are trying to solve. -->
11+
12+
## Describe the solution you'd like
13+
<!-- Please describe the desired behavior. -->
14+
15+
## Describe alternatives you've considered
16+
<!-- Please describe alternative solutions or features you have considered. -->
17+
<!-- This is not strictly necessary but helps all of us get a different point-of-view -->
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: "⁉️ Help me"
3+
about: "Get help with using or improving our software"
4+
labels: 'question'
5+
---
6+
<!--- If you have a question about any of our projects that is not a bug report or feature request, you can write us an issue like this or send a message to [email protected] -->
7+
8+
# What I'm trying to do
9+
<!--- Please describe what you're trying to do so we know what your problem is about -->
10+
11+
## What I've tried
12+
<!--- If you tell us what you already tried or what documentation you already read, we are able to help you better by not pointing to information you already know.-->
13+
14+
## Additional context
15+
<!--- If there's more to say, feel free to do so :) -->

.github/pull_request_template.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Summary
2+
<!--- Provide a general summary of the changes -->
3+
4+
## Proposed changes
5+
<!--- Describe your changes and why they are necessary. -->
6+
7+
## Related issues
8+
<!--- Mention (link) related issues. -->
9+
<!--- If you suggest a new feature, please discuss it in an issue first. -->
10+
<!--- If fixing a bug, there should be an issue describing it with steps to reproduce -->
11+
12+
## Checklist
13+
14+
- [ ] Run `colcon build`
15+
- [ ] Write documentation
16+
- [ ] Create issues for future work
17+
- [ ] Test on your machine
18+
- [ ] Test on the robot
19+
- [ ] This PR is on our `Software` project board

.github/workflows/pre-commit.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Code style checks
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
pre-commit:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-python@v3
14+
- name: Install cppcheck
15+
run: sudo apt install cppcheck -y
16+
- uses: pre-commit/[email protected]

.gitignore

Lines changed: 200 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,200 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### JetBrains template
3+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
4+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
5+
6+
# auto-generated documentation
7+
**/docs/_build
8+
**/docs/_out
9+
**/docs/cppapi
10+
**/docs/pyapi
11+
12+
# auto-generated documentation
13+
**/docs/_build
14+
**/docs/_out
15+
**/docs/cppapi
16+
**/docs/pyapi
17+
18+
# User-specific stuff:
19+
.idea/workspace.xml
20+
.idea/tasks.xml
21+
.idea/*
22+
23+
# Sensitive or high-churn files:
24+
.idea/dataSources/
25+
.idea/dataSources.ids
26+
.idea/dataSources.xml
27+
.idea/dataSources.local.xml
28+
.idea/sqlDataSources.xml
29+
.idea/dynamic.xml
30+
.idea/uiDesigner.xml
31+
32+
# Gradle:
33+
.idea/gradle.xml
34+
.idea/libraries
35+
36+
# Mongo Explorer plugin:
37+
.idea/mongoSettings.xml
38+
39+
## File-based project format:
40+
*.iws
41+
42+
## Plugin-specific files:
43+
44+
# IntelliJ
45+
/out/
46+
47+
# mpeltonen/sbt-idea plugin
48+
.idea_modules/
49+
50+
# JIRA plugin
51+
atlassian-ide-plugin.xml
52+
53+
# Crashlytics plugin (for Android Studio and IntelliJ)
54+
com_crashlytics_export_strings.xml
55+
crashlytics.properties
56+
crashlytics-build.properties
57+
fabric.properties
58+
### ROS template
59+
build/
60+
bin/
61+
lib/
62+
msg_gen/
63+
srv_gen/
64+
msg/*Action.msg
65+
msg/*ActionFeedback.msg
66+
msg/*ActionGoal.msg
67+
msg/*ActionResult.msg
68+
msg/*Feedback.msg
69+
msg/*Goal.msg
70+
msg/*Result.msg
71+
msg/_*.py
72+
73+
# Generated by dynamic reconfigure
74+
*.cfgc
75+
/cfg/cpp/
76+
/cfg/*.py
77+
78+
*/cfg/cpp/
79+
*/src/*/cfg/*.py
80+
81+
# Ignore generated docs
82+
*.dox
83+
*.wikidoc
84+
85+
# eclipse stuff
86+
.project
87+
.cproject
88+
89+
# qcreator stuff
90+
CMakeLists.txt.user
91+
92+
srv/_*.py
93+
*.pcd
94+
*.pyc
95+
qtcreator-*
96+
*.user
97+
98+
/planning/cfg
99+
/planning/docs
100+
/planning/src
101+
102+
*~
103+
104+
# Emacs
105+
.#*
106+
107+
# Catkin custom files
108+
CATKIN_IGNORE
109+
### Python template
110+
# Byte-compiled / optimized / DLL files
111+
__pycache__/
112+
*.py[cod]
113+
*$py.class
114+
115+
# C extensions
116+
*.so
117+
118+
# Distribution / packaging
119+
.Python
120+
env/
121+
develop-eggs/
122+
dist/
123+
downloads/
124+
eggs/
125+
.eggs/
126+
lib64/
127+
parts/
128+
sdist/
129+
var/
130+
*.egg-info/
131+
.installed.cfg
132+
*.egg
133+
134+
# PyInstaller
135+
# Usually these files are written by a python script from a template
136+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
137+
*.manifest
138+
*.spec
139+
140+
# Installer logs
141+
pip-log.txt
142+
pip-delete-this-directory.txt
143+
144+
# Unit test / coverage reports
145+
htmlcov/
146+
.tox/
147+
.coverage
148+
.coverage.*
149+
.cache
150+
nosetests.xml
151+
coverage.xml
152+
*,cover
153+
.hypothesis/
154+
155+
# Translations
156+
*.mo
157+
*.pot
158+
159+
# Django stuff:
160+
*.log
161+
local_settings.py
162+
163+
# Flask stuff:
164+
instance/
165+
.webassets-cache
166+
167+
# Scrapy stuff:
168+
.scrapy
169+
170+
# Sphinx documentation
171+
docs/_build/
172+
173+
# PyBuilder
174+
target/
175+
176+
# Jupyter Notebook
177+
.ipynb_checkpoints
178+
179+
# pyenv
180+
.python-version
181+
182+
# celery beat schedule file
183+
celerybeat-schedule
184+
185+
# dotenv
186+
.env
187+
188+
# virtualenv
189+
.venv/
190+
venv/
191+
ENV/
192+
193+
# Spyder project settings
194+
.spyderproject
195+
196+
# Rope project settings
197+
.ropeproject
198+
199+
# Ruff cache
200+
.ruff_cache

.pre-commit-config.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
repos:
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
rev: v0.0.277
4+
hooks:
5+
- id: ruff
6+
args:
7+
- "--fix"
8+
- "--exit-non-zero-on-fix"
9+
- repo: https://github.com/psf/black
10+
rev: 23.3.0
11+
hooks:
12+
- id: black
13+
- repo: https://github.com/pocc/pre-commit-hooks
14+
rev: v1.3.5
15+
hooks:
16+
- id: clang-format
17+
args:
18+
- "-i"
19+
- id: cppcheck
20+
args:
21+
- "--suppress=missingInclude"
22+
- "--suppress=unmatchedSuppression"
23+
- "--suppress=unusedFunction"

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Hamburg Bit-Bots
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)