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

Suggest adding exec_depend on ros2launch for packages with launch files #1786

Conversation

christophebedard
Copy link
Member

This is a change suggested here after we realized that the launch frontends may not get built if your
package doesn't depend on them (almost none of the common CLI/launch packages do): ros2/launch#516 (comment)

I don't know if we have it documented anywhere, but we should recommend depending on ros2launch always, it seems. Otherwise important parts will not be included.

Note that the last line in this proposed change isn't currently valid. Depending on ros2launch will only ensure launch_xml/launch_yaml are built after this PR (or an equivalent PR) is merged: ros2/launch_ros#256

I couldn't really find a perfect place to put this note, but this seemed like an okay spot.

Signed-off-by: Christophe Bedard [email protected]

Copy link
Member

@audrow audrow left a comment

Choose a reason for hiding this comment

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

I think this is a good note to add. I agree it's not clear where to put it. What would you think about adding it at the end of the setup section in the creating launch files tutorial?

@audrow audrow self-assigned this Aug 4, 2021
@christophebedard
Copy link
Member Author

I think this is a good note to add. I agree it's not clear where to put it. What would you think about adding it at the end of the setup section in the creating launch files tutorial?

I don't really mind, but this tutorial mostly shows how to create a standalone launch file so it feels kind of rushed to mention this at the very beginning. There's a note that mentions having a launch file under a specific package here: https://docs.ros.org/en/rolling/Tutorials/Launch-Files/Creating-Launch-Files.html#ros2-launch. What do you think about putting this new note after that one?

@christophebedard christophebedard force-pushed the christophebedard/launch-mention-ros2launch-dependency branch from 5448d6b to 3b3b843 Compare November 23, 2021 18:49
@audrow
Copy link
Member

audrow commented Nov 23, 2021

https://docs.ros.org/en/rolling/Tutorials/Launch-Files/Creating-Launch-Files.html#ros2-launch. What do you think about putting this new note after that one?

Sorry to fall off. That sounds good to me. I think this spot is better because it comes into the user's awareness sooner than later.

@christophebedard
Copy link
Member Author

I moved it in 45e7e09 and added a link to the launch file formats guide in 6e5a7c8.

@audrow audrow merged commit 622a1a5 into ros2:rolling Nov 24, 2021
@audrow
Copy link
Member

audrow commented Nov 24, 2021

@Mergifyio backport galactic foxy

mergify bot pushed a commit that referenced this pull request Nov 24, 2021
…es (#1786)

* Suggest adding exec_dependency on ros2launch for packages with launch files

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

* Move note to 'Creating a launch file' tutorial

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

* Add link to launch file formats guide

Signed-off-by: Christophe Bedard <[email protected]>
(cherry picked from commit 622a1a5)
mergify bot pushed a commit that referenced this pull request Nov 24, 2021
…es (#1786)

* Suggest adding exec_dependency on ros2launch for packages with launch files

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

* Move note to 'Creating a launch file' tutorial

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

* Add link to launch file formats guide

Signed-off-by: Christophe Bedard <[email protected]>
(cherry picked from commit 622a1a5)
@mergify
Copy link
Contributor

mergify bot commented Nov 24, 2021

backport galactic foxy

✅ Backports have been created

@christophebedard christophebedard deleted the christophebedard/launch-mention-ros2launch-dependency branch November 24, 2021 17:31
audrow pushed a commit that referenced this pull request Nov 24, 2021
…es (#1786) (#2138)

* Suggest adding exec_dependency on ros2launch for packages with launch files

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

* Move note to 'Creating a launch file' tutorial

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

* Add link to launch file formats guide

Signed-off-by: Christophe Bedard <[email protected]>
(cherry picked from commit 622a1a5)

Co-authored-by: Christophe Bedard <[email protected]>
audrow pushed a commit that referenced this pull request Nov 24, 2021
…es (#1786) (#2139)

* Suggest adding exec_dependency on ros2launch for packages with launch files

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

* Move note to 'Creating a launch file' tutorial

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

* Add link to launch file formats guide

Signed-off-by: Christophe Bedard <[email protected]>
(cherry picked from commit 622a1a5)

Co-authored-by: Christophe Bedard <[email protected]>
@audrow
Copy link
Member

audrow commented Nov 24, 2021

Thanks for the PR, @christophebedard!

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