Skip to content

docs(doxygen): add XML usage examples for BT nodes - #6101

Merged
SteveMacenski merged 2 commits into
ros-navigation:mainfrom
AJedancov:docs/add-bt-plugin-xml-usage-examples
Apr 22, 2026
Merged

SteveMacenski merged 2 commits into
ros-navigation:mainfrom
AJedancov:docs/add-bt-plugin-xml-usage-examples

Conversation

@AJedancov

Copy link
Copy Markdown
Contributor

Basic Info

Info Please fill out this column
Ticket(s) this addresses N/A
Primary OS tested on Ubuntu
Robotic platform tested on N/A
Does this PR contain AI generated software? To insert code block template
Was this PR description generated by AI software? No

Description of contribution in a few bullet points

  • Added usage examples to Doxygen description for BT Node classes. The examples taken from the current Nav2 documentation.
  • Aligned some long examples for better readability.
  • Descriptions for some nodes that had multiple examples were also included in the code block as comments, for the following nodes:
    • ValidatePath
    • AreErrorCodesPresent
    • PauseResumeController
  • Added "endcode" to codespell ignore list.

Description of documentation updates required from your changes

Description of how this change was tested

  • Checked Doxygen generation result locally.
  • Checked pre-commit locally.

Future work that may be required in bullet points

For Maintainers:

  • Check that any new parameters added are updated in docs.nav2.org
  • Check that any significant change is added to the migration guide
  • Check that any new features OR changes to existing behaviors are reflected in the tuning guide
  • Check that any new functions have Doxygen added
  • Check that any new features have test coverage
  • Check that any new plugins is added to the plugins page
  • If BT Node, Additionally: add to BT's XML index of nodes for groot, BT package's readme table, and BT library lists
  • Should this be backported to current distributions? If so, tag with backport-*.

@SteveMacenski SteveMacenski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I just did a quick scan for consistency/formatting, but can I assume that you read over these and they're correct/the same/sane?

Happy to merge with that confirmation

@AJedancov

Copy link
Copy Markdown
Contributor Author

Sure, I copied the XML code manually from the documentation (commit c5d5c2d) and checked them a few times. There are a couple of new commits in the documentation, but I see they don't affect BT nodes.
So I can confirm that they correspond the documentation.

The only difference is in the formatting (line break), new embedded comments in blocks, and fixed old xml comment syntax so they don’t get broken if someone decides to copy examples. The rest is the same.

@SteveMacenski
SteveMacenski merged commit 91d7096 into ros-navigation:main Apr 22, 2026
13 checks passed
tonynajjar pushed a commit to botsandus/navigation2 that referenced this pull request Apr 24, 2026
* docs: add XML usage examples to BT plugin doxygen descriptions

Signed-off-by: AJedancov <[email protected]>

* chore: add 'endcode' to codespell ignore words list

Signed-off-by: AJedancov <[email protected]>

---------

Signed-off-by: AJedancov <[email protected]>
Signed-off-by: Tony Najjar <[email protected]>
MilindKharwade7 pushed a commit to MilindKharwade7/navigation2 that referenced this pull request May 23, 2026
* docs: add XML usage examples to BT plugin doxygen descriptions

Signed-off-by: AJedancov <[email protected]>

* chore: add 'endcode' to codespell ignore words list

Signed-off-by: AJedancov <[email protected]>

---------

Signed-off-by: AJedancov <[email protected]>
@AJedancov
AJedancov deleted the docs/add-bt-plugin-xml-usage-examples branch June 9, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants