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 cpp version for urdf_tutorial #4926

Merged
merged 24 commits into from
Feb 24, 2025
Merged

Conversation

Demonmasterlqx
Copy link
Contributor

No description provided.

some command to launch debug demo is wrong and correct it

Signed-off-by: Demonmasterlqx <[email protected]>
…obot-State-Publisher-py.rst

change name

Signed-off-by: Demonmasterlqx <[email protected]>
add cpp version

Signed-off-by: Demonmasterlqx <[email protected]>
add 
.. redirect-from::

    Tutorials/URDF/Using-URDF-with-Robot-State-Publisher

Signed-off-by: Demonmasterlqx <[email protected]>
Copy link
Collaborator

@kscottz kscottz left a comment

Choose a reason for hiding this comment

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

Hi @Demonmasterlqx, thank you so much for your contribution! We really appreciate it.

I sent over a bunch of suggestions. Before I approve this I would like to see more comments in main C++ source file. It really helps users when we document the example code in excruciating detail.

Other than that I think we have to discuss the copyright of the code cited in pull request. I don't think it is a problem, but we need some clarity on how to handle it appropriately.

@Demonmasterlqx
Copy link
Contributor Author

Hi @kscottz ! Thank you so much for helping me to polish my words and give some suggestion. I have add some code comment into code blocks and polish my words

Copy link
Collaborator

@kscottz kscottz left a comment

Choose a reason for hiding this comment

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

I went through and added a few suggestions. I'll approve the PR under the assumption that you'll approve those and that you pass the linter.

You had a long list of linter whitespace errors that needed to be fixed. I think I fixed them all for you but there might be a few stragglers.

You need one more review before we can merge this in.

@ahcorde
Copy link
Contributor

ahcorde commented Feb 13, 2025

friendly ping @Demonmasterlqx

…-Publisher-cpp.rst

Co-authored-by: Christophe Bedard <[email protected]>
Signed-off-by: Demonmasterlqx <[email protected]>
@ahcorde ahcorde added the backport-all backport at reviewers discretion; from rolling to all versions label Feb 14, 2025
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
@ahcorde
Copy link
Contributor

ahcorde commented Feb 14, 2025

@kscottz I made some changes to fix warnings and to make the tutorials visible in the documentation. Feel free to merge it if my changes looks fine

@fujitatomoya fujitatomoya merged commit 228a7b2 into ros2:rolling Feb 24, 2025
5 checks passed
mergify bot pushed a commit that referenced this pull request Feb 24, 2025
* Update Debugging-Tf2-Problems.rst

some command to launch debug demo is wrong and correct it

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

* Update Debugging-Tf2-Problems.rst

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

* Rename Using-URDF-with-Robot-State-Publisher.rst to Using-URDF-with-Robot-State-Publisher-py.rst

change name

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

* Create Using-URDF-with-Robot-State-Publisher-cpp.rst

add cpp version

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

* Update Using-URDF-with-Robot-State-Publisher-cpp.rst

add
.. redirect-from::

    Tutorials/URDF/Using-URDF-with-Robot-State-Publisher

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

* Update Using-URDF-with-Robot-State-Publisher-cpp.rst

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

* Update Using-URDF-with-Robot-State-Publisher-cpp.rst

Polish my language

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

* Update Using-URDF-with-Robot-State-Publisher-cpp.rst

add code comment

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

* Update Using-URDF-with-Robot-State-Publisher-cpp.rst

fix format problems

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

* White space help.

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Signed-off-by: Katherine Scott <[email protected]>

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Signed-off-by: Katherine Scott <[email protected]>

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Signed-off-by: Katherine Scott <[email protected]>

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Signed-off-by: Katherine Scott <[email protected]>

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Signed-off-by: Katherine Scott <[email protected]>

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Signed-off-by: Katherine Scott <[email protected]>

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Co-authored-by: Christophe Bedard <[email protected]>
Signed-off-by: Demonmasterlqx <[email protected]>

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Co-authored-by: Christophe Bedard <[email protected]>
Signed-off-by: Demonmasterlqx <[email protected]>

* codespell

Signed-off-by: Alejandro Hernandez Cordero <[email protected]>

* Title underline too short

Signed-off-by: Alejandro Hernandez Cordero <[email protected]>

* make tutorials visible

Signed-off-by: Alejandro Hernandez Cordero <[email protected]>

---------

Signed-off-by: Demonmasterlqx <[email protected]>
Signed-off-by: Katherine Scott <[email protected]>
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
Co-authored-by: kscottz <[email protected]>
Co-authored-by: Christophe Bedard <[email protected]>
Co-authored-by: Alejandro Hernandez Cordero <[email protected]>
(cherry picked from commit 228a7b2)
mergify bot pushed a commit that referenced this pull request Feb 24, 2025
* Update Debugging-Tf2-Problems.rst

some command to launch debug demo is wrong and correct it

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

* Update Debugging-Tf2-Problems.rst

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

* Rename Using-URDF-with-Robot-State-Publisher.rst to Using-URDF-with-Robot-State-Publisher-py.rst

change name

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

* Create Using-URDF-with-Robot-State-Publisher-cpp.rst

add cpp version

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

* Update Using-URDF-with-Robot-State-Publisher-cpp.rst

add
.. redirect-from::

    Tutorials/URDF/Using-URDF-with-Robot-State-Publisher

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

* Update Using-URDF-with-Robot-State-Publisher-cpp.rst

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

* Update Using-URDF-with-Robot-State-Publisher-cpp.rst

Polish my language

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

* Update Using-URDF-with-Robot-State-Publisher-cpp.rst

add code comment

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

* Update Using-URDF-with-Robot-State-Publisher-cpp.rst

fix format problems

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

* White space help.

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Signed-off-by: Katherine Scott <[email protected]>

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Signed-off-by: Katherine Scott <[email protected]>

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Signed-off-by: Katherine Scott <[email protected]>

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Signed-off-by: Katherine Scott <[email protected]>

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Signed-off-by: Katherine Scott <[email protected]>

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Signed-off-by: Katherine Scott <[email protected]>

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Co-authored-by: Christophe Bedard <[email protected]>
Signed-off-by: Demonmasterlqx <[email protected]>

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Co-authored-by: Christophe Bedard <[email protected]>
Signed-off-by: Demonmasterlqx <[email protected]>

* codespell

Signed-off-by: Alejandro Hernandez Cordero <[email protected]>

* Title underline too short

Signed-off-by: Alejandro Hernandez Cordero <[email protected]>

* make tutorials visible

Signed-off-by: Alejandro Hernandez Cordero <[email protected]>

---------

Signed-off-by: Demonmasterlqx <[email protected]>
Signed-off-by: Katherine Scott <[email protected]>
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
Co-authored-by: kscottz <[email protected]>
Co-authored-by: Christophe Bedard <[email protected]>
Co-authored-by: Alejandro Hernandez Cordero <[email protected]>
(cherry picked from commit 228a7b2)

# Conflicts:
#	source/Tutorials/Intermediate/URDF/URDF-Main.rst
fujitatomoya pushed a commit that referenced this pull request Feb 24, 2025
* Update Debugging-Tf2-Problems.rst

some command to launch debug demo is wrong and correct it

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

* Update Debugging-Tf2-Problems.rst

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

* Rename Using-URDF-with-Robot-State-Publisher.rst to Using-URDF-with-Robot-State-Publisher-py.rst

change name

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

* Create Using-URDF-with-Robot-State-Publisher-cpp.rst

add cpp version

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

* Update Using-URDF-with-Robot-State-Publisher-cpp.rst

add
.. redirect-from::

    Tutorials/URDF/Using-URDF-with-Robot-State-Publisher

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

* Update Using-URDF-with-Robot-State-Publisher-cpp.rst

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

* Update Using-URDF-with-Robot-State-Publisher-cpp.rst

Polish my language

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

* Update Using-URDF-with-Robot-State-Publisher-cpp.rst

add code comment

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

* Update Using-URDF-with-Robot-State-Publisher-cpp.rst

fix format problems

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

* White space help.

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Signed-off-by: Katherine Scott <[email protected]>

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Signed-off-by: Katherine Scott <[email protected]>

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Signed-off-by: Katherine Scott <[email protected]>

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Signed-off-by: Katherine Scott <[email protected]>

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Signed-off-by: Katherine Scott <[email protected]>

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Signed-off-by: Katherine Scott <[email protected]>

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Co-authored-by: Christophe Bedard <[email protected]>
Signed-off-by: Demonmasterlqx <[email protected]>

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Co-authored-by: Christophe Bedard <[email protected]>
Signed-off-by: Demonmasterlqx <[email protected]>

* codespell

Signed-off-by: Alejandro Hernandez Cordero <[email protected]>

* Title underline too short

Signed-off-by: Alejandro Hernandez Cordero <[email protected]>

* make tutorials visible

Signed-off-by: Alejandro Hernandez Cordero <[email protected]>

---------

Signed-off-by: Demonmasterlqx <[email protected]>
Signed-off-by: Katherine Scott <[email protected]>
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
Co-authored-by: kscottz <[email protected]>
Co-authored-by: Christophe Bedard <[email protected]>
Co-authored-by: Alejandro Hernandez Cordero <[email protected]>
(cherry picked from commit 228a7b2)

Co-authored-by: Demonmasterlqx <[email protected]>
fujitatomoya added a commit that referenced this pull request Feb 24, 2025
* add cpp version for urdf_tutorial (#4926)

* Update Debugging-Tf2-Problems.rst

some command to launch debug demo is wrong and correct it

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

* Update Debugging-Tf2-Problems.rst

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

* Rename Using-URDF-with-Robot-State-Publisher.rst to Using-URDF-with-Robot-State-Publisher-py.rst

change name

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

* Create Using-URDF-with-Robot-State-Publisher-cpp.rst

add cpp version

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

* Update Using-URDF-with-Robot-State-Publisher-cpp.rst

add
.. redirect-from::

    Tutorials/URDF/Using-URDF-with-Robot-State-Publisher

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

* Update Using-URDF-with-Robot-State-Publisher-cpp.rst

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

* Update Using-URDF-with-Robot-State-Publisher-cpp.rst

Polish my language

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

* Update Using-URDF-with-Robot-State-Publisher-cpp.rst

add code comment

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

* Update Using-URDF-with-Robot-State-Publisher-cpp.rst

fix format problems

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

* White space help.

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Signed-off-by: Katherine Scott <[email protected]>

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Signed-off-by: Katherine Scott <[email protected]>

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Signed-off-by: Katherine Scott <[email protected]>

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Signed-off-by: Katherine Scott <[email protected]>

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Signed-off-by: Katherine Scott <[email protected]>

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Signed-off-by: Katherine Scott <[email protected]>

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Co-authored-by: Christophe Bedard <[email protected]>
Signed-off-by: Demonmasterlqx <[email protected]>

* Update source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-cpp.rst

Co-authored-by: Christophe Bedard <[email protected]>
Signed-off-by: Demonmasterlqx <[email protected]>

* codespell

Signed-off-by: Alejandro Hernandez Cordero <[email protected]>

* Title underline too short

Signed-off-by: Alejandro Hernandez Cordero <[email protected]>

* make tutorials visible

Signed-off-by: Alejandro Hernandez Cordero <[email protected]>

---------

Signed-off-by: Demonmasterlqx <[email protected]>
Signed-off-by: Katherine Scott <[email protected]>
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
Co-authored-by: kscottz <[email protected]>
Co-authored-by: Christophe Bedard <[email protected]>
Co-authored-by: Alejandro Hernandez Cordero <[email protected]>
(cherry picked from commit 228a7b2)

# Conflicts:
#	source/Tutorials/Intermediate/URDF/URDF-Main.rst

* resolve conflict.

Signed-off-by: Tomoya.Fujita <[email protected]>

---------

Signed-off-by: Tomoya.Fujita <[email protected]>
Co-authored-by: Demonmasterlqx <[email protected]>
Co-authored-by: Tomoya.Fujita <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-all backport at reviewers discretion; from rolling to all versions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants