Robowflex
v0.1
Making MoveIt Easy
|
Documentation is generated with doxygen.
Install all necessary dependencies to build documentation:
Starting in this folder (.docs
):
This will create and populate the folder doc/html
with the generated documentation website.
Continuous integration through Travis CI is used to automatically generate the Github pages website. The documentation is automatically pushed to the gh-pages
branch.
Code within Robowflex is documented with a particular style, documented here. We also discuss how to add additional tutorials such as this document here.
You can see the style of commenting all throughout robowflex_library
. Any additional code added to robowflex_library
or one of the optional modules should be fully documented. Generally, all documentation is done in the header files, with little to no high-level documentation in the source files. However, inline comments in methods are still encouraged, especially if there is some complex computation occuring.
A typical class declaration looks as follows:
You should also document new namespaces you create. This only needs to be done once, generally in a top-level header.
This enables documentation of top-level methods in that namespace, which should also be documented similar to class methods.
If you have some piece of code you want ignored by Doxygen, simple wrap it with the following:
There are a few Python scripts within the Robowflex code base, primarily within robowflex_visualization
. There is no consistent documentation for these methods yet, but every method you create should have at the very least a docstring as follows:
You can add new pages of high-level documentation like this one in two ways. If you are documentation a package within Robowflex, if a README.md
exists in the top-level of the project, it is automatically added. See the add_doc
macro in the .docs
's CMakeLists.txt
for where this is done.
Additionally, you can add a new markdown file (ending in a *.md
) to the .docs/markdown
folder. Any markdown file in this directory is also automatically added when generating documentation.