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

Writing a Composable Node (C++) Tutorial #4106

Merged
merged 7 commits into from
Feb 16, 2024

Conversation

DLu
Copy link
Contributor

@DLu DLu commented Jan 15, 2024

New tutorial, brought to you by Vincent

vincent gif

Whitespaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaace
Copy link
Collaborator

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

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

@DLu overall, explanation looks good to me.

one question, can we use https://github.com/ros2/demos/tree/rolling/composition example for this explanation instead of VincentDriver.

precisely the examples like,

i think that would be easier to see the whole process and concrete example with that, since the same contents are used in https://docs.ros.org/en/rolling/Tutorials/Intermediate/Composition.html

source/Concepts/Intermediate/About-Composition.rst Outdated Show resolved Hide resolved
@@ -499,7 +499,7 @@ If not present, registration macros must be added to the project's CMake.
add_library(listener src/listener.cpp)
rclcpp_components_register_nodes(listener "composition::Listener")

For more information on composition, see `the tutorial <https://index.ros.org/doc/ros2/Tutorials/Composition/>`__
For more information on composition, see `the tutorial <../Tutorials/Intermediate/Writing-a-Composable-Node>`
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm on the fence about this one. I know the change targets rolling, but I think I'd prefer not to change the Dashing stuff at this point. So I'll suggest just removing this for now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I only found this because I found it via grep when looking for an existing tutorial. I'm not tied to it, but if someone else stumbles on this page and wants to follow through with this, then I figure the extra link will be helpful.

source/Tutorials/Intermediate/Composition.rst Outdated Show resolved Hide resolved
@audrow audrow added the more-information-needed Further information is required label Jan 25, 2024
@DLu
Copy link
Contributor Author

DLu commented Jan 31, 2024

@fujitatomoya I must admit I didn't know that code was in there. I've added links to the relevant files. Sure would be nice if someone else made a Python version of this tutorial.

@DLu DLu requested a review from clalancette January 31, 2024 20:29
@clalancette
Copy link
Contributor

@fujitatomoya I must admit I didn't know that code was in there. I've added links to the relevant files. Sure would be nice if someone else made a Python version of this tutorial.

Unfortunately that isn't possible at present, since we don't support composing in Python.

@DLu
Copy link
Contributor Author

DLu commented Feb 16, 2024

@clalancette Do we need anything else?

@clalancette clalancette added backport-all backport at reviewers discretion; from rolling to all versions and removed more-information-needed Further information is required labels Feb 16, 2024
Co-authored-by: Chris Lalancette <[email protected]>
Signed-off-by: David V. Lu!! <[email protected]>
@clalancette clalancette merged commit 0c79b0f into ros2:rolling Feb 16, 2024
3 checks passed
mergify bot pushed a commit that referenced this pull request Feb 16, 2024
* Writing a Composable Node (C++) Tutorial

* Add Package.xml note

* Add links to demos

Signed-off-by: David V. Lu!! <[email protected]>
Co-authored-by: Chris Lalancette <[email protected]>
(cherry picked from commit 0c79b0f)
mergify bot pushed a commit that referenced this pull request Feb 16, 2024
* Writing a Composable Node (C++) Tutorial

* Add Package.xml note

* Add links to demos

Signed-off-by: David V. Lu!! <[email protected]>
Co-authored-by: Chris Lalancette <[email protected]>
(cherry picked from commit 0c79b0f)
clalancette pushed a commit that referenced this pull request Feb 16, 2024
* Writing a Composable Node (C++) Tutorial

* Add Package.xml note

* Add links to demos

Signed-off-by: David V. Lu!! <[email protected]>
Co-authored-by: Chris Lalancette <[email protected]>
(cherry picked from commit 0c79b0f)

Co-authored-by: David V. Lu!! <[email protected]>
clalancette pushed a commit that referenced this pull request Feb 16, 2024
* Writing a Composable Node (C++) Tutorial

* Add Package.xml note

* Add links to demos

Signed-off-by: David V. Lu!! <[email protected]>
Co-authored-by: Chris Lalancette <[email protected]>
(cherry picked from commit 0c79b0f)

Co-authored-by: David V. Lu!! <[email protected]>
@DLu DLu deleted the how_to_make_a_node_a_component2 branch February 21, 2024 17:15
@DLu
Copy link
Contributor Author

DLu commented Feb 21, 2024

Thanks @clalancette !

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.

4 participants