carla/Docs/cont_contribution_guideline...

125 lines
4.5 KiB
Markdown
Raw Normal View History

# Contributing to CARLA
2017-12-04 23:18:14 +08:00
We are more than happy to accept contributions!
How can I contribute?
* Reporting bugs
* Feature requests
* Improving documentation
* Code contributions
2017-12-04 23:18:14 +08:00
2020-03-02 21:35:50 +08:00
---
## Reporting bugs
2017-12-04 23:18:14 +08:00
2018-01-18 01:11:57 +08:00
Use our [issue section][issueslink] on GitHub. Please check before that the
issue is not already reported, and make sure you have read our
[Documentation][docslink] and [FAQ][faqlink].
2017-12-04 23:18:14 +08:00
[issueslink]: https://github.com/carla-simulator/carla/issues
2018-01-18 01:11:57 +08:00
[docslink]: http://carla.readthedocs.io
[faqlink]: http://carla.readthedocs.io/en/latest/faq/
2017-12-04 23:18:14 +08:00
2020-03-02 21:35:50 +08:00
---
## Feature requests
2017-12-04 23:18:14 +08:00
Please check first the list of [feature requests][frlink]. If it is not there
and you think is a feature that might be interesting for users, please submit
your request as a new issue.
[frlink]: https://github.com/carla-simulator/carla/issues?q=is%3Aissue+is%3Aopen+label%3A%22feature+request%22+sort%3Acomments-desc
2017-12-04 23:18:14 +08:00
2020-03-02 21:35:50 +08:00
---
## Improving documentation
2018-01-18 01:11:57 +08:00
2018-01-18 19:05:23 +08:00
If you feel something is missing in the documentation, please don't hesitate to
open an issue to let us know. Even better, if you think you can improve it
yourself, it would be a great contribution to the community!
2018-01-18 01:11:57 +08:00
We build our documentation with [MkDocs](http://www.mkdocs.org/) based on the
Markdown files inside the `Docs` folder. You can either directly modify them on
2018-01-18 01:11:57 +08:00
GitHub or locally in your machine.
To update Python API docs, instead of directly modifying the Markdown you need to edit the
corresponding YAML files inside [`carla/PythonAPI/docs/`][fileslink] and run [`doc_gen.py`][scriptlink]
or `make PythonAPI.docs`.
This will re-generate the respective Markdown files inside `carla/Docs/`,
which can then be fed into `mkdocs`.
[fileslink]: https://github.com/carla-simulator/carla/tree/master/PythonAPI/docs
[scriptlink]: https://github.com/carla-simulator/carla/blob/master/PythonAPI/docs/doc_gen.py
2018-01-19 23:10:27 +08:00
Once you are done with your changes, please submit a pull-request.
2018-01-18 01:11:57 +08:00
!!! tip
You can build and serve it locally (at <http://127.0.0.1:8000>) by running `mkdocs`
in the project's main folder.
2018-01-18 01:11:57 +08:00
```sh
> sudo pip install mkdocs
> mkdocs serve
```
2018-01-18 01:11:57 +08:00
2020-03-02 21:35:50 +08:00
---
## Code contributions
2017-12-04 23:18:14 +08:00
So you are considering making a code contribution, great! We love to have
2018-01-10 20:29:52 +08:00
contributions from the community.
Before starting hands-on on coding, please check out our
[issue board][issueboard] to see if we are already working on that, it would
2018-01-10 20:29:52 +08:00
be a pity putting an effort into something just to discover that someone else
was already working on that. In case of doubt or to discuss how to proceed,
please contact one of us (or send an email to <carla.simulator@gmail.com>).
2017-12-04 23:18:14 +08:00
[issueboard]: https://github.com/carla-simulator/carla/issues
2017-12-04 23:18:14 +08:00
2018-02-02 22:48:46 +08:00
#### Where can I learn more about Unreal Engine?
A basic introduction to C++ programming with UE4 can be found at Unreal's
[C++ Programming Tutorials][ue4tutorials]. Then, if you want to dive into UE4
C++ development there are few paying options online. The
[Unreal C++ Course at Udemy][ue4course] it's pretty complete and there are
usually offers that make it very affordable.
[ue4tutorials]: https://docs.unrealengine.com/latest/INT/Programming/Tutorials/
[ue4course]: https://www.udemy.com/unrealcourse/
2017-12-04 23:18:14 +08:00
#### What should I know before I get started?
2018-07-29 01:29:31 +08:00
Check out the ["CARLA Design"](index.md)<!-- @todo --> document to get an idea
on the different modules that compose CARLA, and chose the most appropriate one
to hold the new feature. We are aware the developers documentation is still
scarce, please ask us in case of doubt, and of course don't hesitate to improve
the current documentation if you feel confident enough.
2017-12-04 23:18:14 +08:00
2018-01-10 20:29:52 +08:00
#### Coding standard
2017-12-04 23:18:14 +08:00
2020-03-02 21:35:50 +08:00
Please follow the current [coding standard](cont_coding_standard.md) when submitting
2018-01-18 01:11:57 +08:00
new code.
2017-12-04 23:18:14 +08:00
2018-01-10 20:29:52 +08:00
#### Pull-requests
2017-12-04 23:18:14 +08:00
Once you think your contribution is ready to be added to CARLA, please submit a
2018-01-19 23:10:27 +08:00
pull-request.
2017-12-04 23:18:14 +08:00
Try to be as descriptive as possible when filling the pull-request description.
2018-01-18 01:11:57 +08:00
Adding images and gifs may help people to understand your changes or new
features.
2018-01-10 20:29:52 +08:00
Please note that there are some checks that the new code is required to pass
before we can do the merge. The checks are automatically run by the continuous
integration system, you will see a green tick mark if all the checks succeeded.
If you see a red mark, please correct your code accordingly.
2018-01-18 01:11:57 +08:00
###### Checklist
<!--
If you modify this list please keep it up-to-date with pull_request_template.md
-->
2018-01-19 23:10:27 +08:00
- [ ] Your branch is up-to-date with the `master` branch and tested with latest changes
2018-01-18 01:11:57 +08:00
- [ ] Extended the README / documentation, if necessary
- [ ] Code compiles correctly
- [ ] All tests passing with `make check`