Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add doxygen docs for particle_filter.hpp #47

Merged
merged 9 commits into from
Jan 6, 2023
Merged

Conversation

ivanpauno
Copy link
Collaborator

Partial attempt to complete #39.

There's still a lot to do, as it can be seen by the unlinked references to pieces of docs I haven't written yet.
But I wanted to know if the general approach I'm using looks okay.

Particularly, there's no standard way to document the "interface" that a template parameter should satisfy.
The approach I'm using is the "named requirements" approach.
This is the same approach that for example uses the standard library, e.g. https://en.cppreference.com/w/cpp/named_req/Container.
I'm using one doxygen \page for each named requirement, but I think we can bundle many of them in sections of the same page (these is trivial to change later).

There are a bunch of TODOs in the patch I'm adding:

  • Some are missing links to documentation I haven't written yet.
  • Some are minor style comments about the documentation, that can be decided one way or another.
  • Some are comments about the code.
    We don't need to solve them here, but I thought it was useful if we have a minor discussion here and at least we craete an issue for them if it's needed.

I will continue writing docs, but I opened this initial PR so if we want to document things in a different style we can discuss that early in the process.
The remaining docs can be commited to this PR or we can move forward with this one and complete the docs in other PRs, as prefered.

Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
@ivanpauno ivanpauno added the enhancement New feature or request label Jan 5, 2023
@ivanpauno ivanpauno self-assigned this Jan 5, 2023
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
@ivanpauno
Copy link
Collaborator Author

Generated html docs where pushed to https://github.com/ekumenlabs/beluga/tree/ivanpauno/generated-docs.
To see them:

  • git fetch
  • git checkout ivanpauno/generated-docs
  • Open beluga/docs/html/index.html in a webbrowser.

@ivanpauno
Copy link
Collaborator Author

@nahueespinosa I added you as a reviewer, but feel free to redirect or to add someone else.

beluga/docs/Doxyfile Outdated Show resolved Hide resolved
beluga/docs/README.md Outdated Show resolved Hide resolved
Copy link
Member

@nahueespinosa nahueespinosa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ivanpauno This is truly outstanding! I think the named requirements approach is the right choice here. I left a couple of comments, let me know what you think.

@glpuga Feel free to join in the discussions, I think it's a great opportunity to review the design.

beluga/include/beluga/algorithm/particle_filter.hpp Outdated Show resolved Hide resolved
beluga/include/beluga/algorithm/particle_filter.hpp Outdated Show resolved Hide resolved
beluga/include/beluga/algorithm/particle_filter.hpp Outdated Show resolved Hide resolved
beluga/include/beluga/algorithm/particle_filter.hpp Outdated Show resolved Hide resolved
beluga/include/beluga/algorithm/particle_filter.hpp Outdated Show resolved Hide resolved
beluga/include/beluga/algorithm/particle_filter.hpp Outdated Show resolved Hide resolved
beluga_amcl/src/amcl_node.cpp Outdated Show resolved Hide resolved
beluga/include/beluga/algorithm/particle_filter.hpp Outdated Show resolved Hide resolved
beluga/include/beluga/algorithm/particle_filter.hpp Outdated Show resolved Hide resolved
@nahueespinosa nahueespinosa added the documentation Improvements or additions to documentation label Jan 6, 2023
ivanpauno and others added 2 commits January 6, 2023 11:10
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Co-authored-by: Nahuel Espinosa <nespinosa@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
nahueespinosa
nahueespinosa previously approved these changes Jan 6, 2023
Copy link
Member

@nahueespinosa nahueespinosa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ivanpauno This is awesome! I think we can merge this barring some minor capitalization comments.

beluga/docs/README.md Outdated Show resolved Hide resolved
beluga/include/beluga/algorithm/particle_filter.hpp Outdated Show resolved Hide resolved
beluga/include/beluga/algorithm/particle_filter.hpp Outdated Show resolved Hide resolved
beluga/include/beluga/algorithm/particle_filter.hpp Outdated Show resolved Hide resolved
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
@ivanpauno ivanpauno merged commit 7c5adb5 into master Jan 6, 2023
@ivanpauno ivanpauno deleted the ivanpauno/docs branch January 6, 2023 22:04
ivanpauno added a commit that referenced this pull request Jan 12, 2023
This PR also:
- Fixes minor issues in the docs added in #47.
- Adds a script to generate the docs.

Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants