Skip to content

Commit 4b892a7

Browse files
committed
refactor(docs, launch, nodes): Update Sphinx docs [skip ci]
Refactors launch and ROS parameters to be more intuitive and easy to use.
1 parent f771426 commit 4b892a7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1662
-1197
lines changed

CONTRIBUTING.md

Lines changed: 12 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Contribute
22

33
All kinds of contributions are welcome, from raising issues and improvement suggestions with the software to software
4-
commits and pull requests (PRs). Please see below for guidance and suggestions on how and where to contribute.
4+
commits and pull requests (PRs). Please see below for guidance and suggestions on how to contribute.
55

66
## Issues and improvement suggestions
77

@@ -12,51 +12,33 @@ you could add your own comments. If not, use the provided templates to submit a
1212

1313
## Pull requests and software commits
1414

15-
> **Note**
15+
> **Warning**
1616
> By contributing to this repository, you agree that **your contributions will be licensed under the repository's MIT
1717
> license**.
1818
1919
All changes to the software are made through [pull requests][2]. Please pay attention to the following before you
2020
submit your pull request:
2121

22+
* See [Style Guide for Python Code][4] for general code style guidelines.
23+
24+
* Consider following [Conventional Commits][3] when making your commit message.
25+
2226
* If your pull request is related to an existing [open issue][1], please mention it in your pull request description.
2327

2428
* If your pull request addresses a new issue or improvement, consider posting it on the [open issues][1] page before
2529
you start working on it so that others will also be aware of your pending work.
2630

27-
* If your pull request makes use of 3rd party software, please ensure that it is MIT license compatible.
28-
29-
* Consider creating a [draft pull request][3] to get early feedback on your work before you commit to it further.
31+
* Consider creating a [draft pull request][5] to get early feedback on your work before you commit to it further.
3032

3133
* In your pull request, please describe not only *what* you have done, but also *why* you have done it. This helps the
3234
reviewer understand your thought process faster.
3335

34-
## Improvements and new features
35-
36-
If you are planning to add a new feature or improve an existing feature of the software, please ensure that your
37-
contribution is aligned with GISNav's **development focus**. Currently the **development focus** is to make the software:
38-
39-
* **Easier to use**, for example by...
40-
* ...improving documentation
41-
* ...streamlining the public API
42-
* ...smoothing out configuration quirks
43-
* **Better tested**, for example by...
44-
* ...improving unit test coverage
45-
* ...adding a (better) testing framework
46-
* **Support relevant technology stacks**, for example by...
47-
* ...adding support for Ardupilot
48-
* ...adding an adapter for TensorFlow-based neural networks
49-
* **More accurate**, for example by...
50-
* ...adding a new state-of-the art pose estimation algorithm
51-
* ...making use of digital-elevation maps (DEM) to retrieve elevation of ground plane
52-
* ...making use of the [OSM buildings][4] database to remove assumption of planar ground surface
53-
54-
> **Note**
55-
> Please consider the examples in the second level bullet points as *suggestions* on where to find low-hanging fruit rather than
56-
> as *recommendations* on what to do.
36+
* If your pull request makes use of 3rd party software, please ensure that it is MIT license compatible.
5737

5838
[2]: https://docs.github.com/en/pull-requests
5939

60-
[3]: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests#draft-pull-requests
40+
[3]: https://www.conventionalcommits.org/
41+
42+
[4]: https://peps.python.org/pep-0008/
6143

62-
[4]: https://osmbuildings.org/data/
44+
[5]: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests#draft-pull-requests

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ https://user-images.githubusercontent.com/22712178/187902004-480397cc-460f-4d57-
22

33
# Introduction
44

5-
> **Warning** Do not use this software for real drone flights. This software is untested and has only been demonstrated
5+
> **Warning** Do not use this software for real drone flights. GISNav is untested and has only been demonstrated
66
> in a software-in-the-loop (SITL) simulation environment.
77
88
GISNav is a ROS 2 package that enables map-based visual navigation for airborne drones **in a simulation environment**.
Loading

docs/conf.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,13 @@
3737
# Add any Sphinx extension module names here, as strings. They can be
3838
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3939
# ones.
40-
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.coverage', 'autodocsumm', 'myst_parser']
40+
extensions = ['sphinx.ext.autodoc',
41+
'sphinx.ext.coverage',
42+
'sphinx.ext.autosectionlabel',
43+
'sphinx_design',
44+
'autodocsumm',
45+
'myst_parser'
46+
]
4147

4248
# Add any paths that contain templates here, relative to this directory.
4349
templates_path = ['_templates']
@@ -79,6 +85,7 @@
7985
}
8086
],
8187
"icon_links_label": "Quick Links",
88+
"show_toc_level": 3,
8289
}
8390

8491
# Make version number accessible in .rst files

docs/index.rst

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,38 @@ GISNav Developer Documentation
33
#####################################
44
Welcome to GISNav's developer documentation!
55

6-
This site contains the following pages:
6+
.. card:: Get Started
7+
:link: pages/get_started.html
78

8-
* `Get Started <pages/get_started.html>`_
9+
A quick demonstration of GNSS-free visual navigation with GISNav
910

10-
A quick demonstration of GNSS-free visual navigation with GISNav's :class:`.MockGPSNode`
11+
.. card:: Developer Guide
12+
:link: pages/developer_guide/index.html
1113

12-
* `Setup <pages/setup.html>`_
14+
Instructions on how to integrate GISNav with your own project and how to extend its functionality
1315

14-
Instructions on how to to setup your own PX4 development and simulation environment
16+
.. card:: API Documentation
17+
:link: pages/api_documentation/index.html
1518

16-
* `Developer Guide <pages/developer_guide.html>`_
19+
GISNav public API reference for developers
1720

18-
Instructions on how to integrate GISNav with your own project and how to extend its functionality
21+
.. card:: Contribute
22+
:link: pages/contribute.html
1923

20-
* `API Documentation <pages/api_documentation.html>`_
24+
Contributions to GISNav are welcome! Please see this page for guidance
2125

22-
GISNav public API reference for developers
26+
Generate documentation
27+
_________________________________________
28+
To build this Sphinx documentation yourself, first install the :ref:`GISNav ROS package` including the
29+
:ref:`Development dependencies` and then run:
30+
31+
.. code-block:: bash
32+
:caption: Build Sphinx documentation
2333
24-
* `Contribute <pages/contribute.html>`_
34+
cd ~/colcon_ws/src/gisnav/docs
35+
make html
2536
26-
Contributions to GISNav are welcome! Please see this page for guidance.
37+
The HTML documentation will then appear in the ``~/colcon_ws/src/gisnav/docs/_build/`` folder.
2738

2839
.. seealso::
2940

@@ -39,7 +50,6 @@ This site contains the following pages:
3950
:hidden:
4051

4152
pages/get_started
42-
pages/setup
43-
pages/developer_guide
44-
pages/api_documentation
53+
pages/developer_guide/index
54+
pages/api_documentation/index
4555
pages/contribute

docs/pages/api_documentation.rst

Lines changed: 0 additions & 116 deletions
This file was deleted.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
gisnav
2+
--------------------------------------------
3+
.. automodule:: gisnav
4+
:autosummary:
5+
:members:
6+
:undoc-members:
7+
:special-members: __init__
8+
:show-inheritance:
9+
10+
assertions
11+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12+
.. automodule:: gisnav.assertions
13+
:autosummary:
14+
:members:
15+
:undoc-members:
16+
:special-members: __init__
17+
:show-inheritance:
18+
19+
data
20+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21+
.. automodule:: gisnav.data
22+
:autosummary:
23+
:members:
24+
:undoc-members:
25+
:special-members: __init__
26+
:show-inheritance:
27+
28+
geo
29+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30+
.. automodule:: gisnav.geo
31+
:autosummary:
32+
:members:
33+
:undoc-members:
34+
:special-members: __init__
35+
:show-inheritance:
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
**************************************************
2+
API Documentation
3+
**************************************************
4+
Here you can find the automatically generated **public API** documentation for the `GISNav ROS 2 package`_. Use the
5+
search bar or the below module index to find what you are looking for.
6+
7+
.. _GISNav ROS 2 package: https://github.com/hmakelin/gisnav
8+
9+
.. warning::
10+
GISNav is under active development and stability of the API is not guaranteed. Use a specific commit or version tag
11+
to mitigate the impact of breaking changes.
12+
13+
.. toctree::
14+
:caption: Python module index
15+
16+
common_automodule
17+
nodes/automodule
18+
pose_estimators/automodule

0 commit comments

Comments
 (0)