👍🎉 Thank you for investing your time in contributing to our project! 🎉👍
This project and everyone participating in it is governed by the following Code of Conduct. By participating, you are expected to uphold this code.
Depending on the nature of your question, there are two support channels:
- For questions regarding the code shared in this repo please check the FAQ first and search if an issue already exists. If a related issue doesn't exist, you can open a new issue using the bug/issue form.
- For application or device specific questions look for common solutions and knowledge articles on the Sick Support Portal. If your question is not answered there, open a ticket on the Sick Support Portal.
IMPORTANT: Contributions are subject to the Github Terms of service "Whenever you add Content to a repository containing notice of a license, you license that Content under the same terms, and you agree that you have the right to license that Content under those terms. If you have a separate agreement to license that Content under different terms, such as a contributor license agreement, that agreement will supersede."
If you spot a problem, check the FAQ first and search if an issue already exists. If a related issue doesn't exist, you can open a new issue using the bug/issue form.
Note: If you find a Closed issue that seems like it is the same thing that you're experiencing, open a new issue and include a link to the original issue in the body of your new one.
A good issue form includes:
-
Description: Clear description of the issue.
-
Steps to Reproduce
- First Step
- Second Step
- and so on…
-
Expected behavior: What you expect to happen?
-
Actual behavior: What actually happens?
-
Reproduces how often: What percentage of the time does it reproduce?
-
Versions: Which version of the software are you using? Either include the version tag or the commit hash.
-
Additional Information: Any additional information, configuration or data that might be necessary to reproduce the issue.
Scan through our existing issues to find one that interests you.
You can narrow down the search using labels
as filters.
See Labels for more information.
If you find an issue to work on, you are welcome to open a PR with a fix.
Before making any changes make sure to follow our Styleguide. In general, we follow the "fork-and-pull" Git workflow.
- Fork the repo on GitHub
- Clone the project to your own machine
- Create a new feature Branch
- Commit changes to your own branch
- Push your work back up to your fork
- Submit a Pull request so that we can review your changes
NOTE Be sure to merge the latest from "upstream" before making a pull request!
Enhancement suggestions are tracked as GitHub issues.
This section guides you through submitting an enhancement suggestion, including completely new features and minor improvements to existing functionality. Following these guidelines helps maintainers and the community understand your suggestion and find related suggestions.
When you are creating an enhancement suggestion, please include as many details as possible. Fill in the feature template, including the steps that you imagine you would take if the feature you're requesting existed.
A good enhancement suggestion includes:
-
Summary: One paragraph explanation of the feature.
-
Motivation: Why are we doing this? What use cases does it support? What is the expected outcome?
-
Describe alternatives: A clear and concise description of the alternative solutions you've considered.
-
Additional context: Add any other context or screenshots about the feature request here.
Our C++ Code is linted with clang-tidy
. Linting helps you analyse your code for potential errors. Clang-tidy will automatically detect the .clang-tidy file to analyse your code.
Follow these steps to use clang-tidy:
$ sudo apt-get install clang-tidy # install the clang-tidy package
$ clang-tidy -i <FILEDIR>/*.cpp -- # e.g. to lint all cpp files
We use clang-format
so that our code is structured uniformly.
Clang-format will automatically detect the .clang-format file to format your code.
This will ensure that your code complies with our style guide.
Follow these steps to apply clang-formatting:
$ sudo apt-get install clang-format # install the clang-format package
$ clang-format -i <FILEDIR>/*.cpp # e.g. to format all cpp files
Note Replace FILEDIR with the actual folderpath
Even better just use pre-commit in your clone, which will use the provided config to enforce the formatting even before committing locally.