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

Polish the ROS 1 -> 2 CMake instructions #4767

Merged
merged 17 commits into from
Sep 30, 2024

Conversation

sloretz
Copy link
Contributor

@sloretz sloretz commented Sep 22, 2024

This updates the CMake portion of the ROS 1 to ROS 2 guide, and fixes one bug in the C++ code

  • Included links to real examples in the core (Mostly tf2)
  • Updated section headings to CMakeLists.txt steps appear in the ToC
  • Used modern CMake targets instead of standard CMake variables
  • Used Active voice and second person perspective
  • Removed unnecessary code from example code in Unit tests section
  • Make the example package.xml start with format 2 since that's different from migrating from ROS 1 to ROS 2.

C++ bug fix: use ->publish( instead of .publish(

I have tried out all steps of the example part of the guide to make sure they work.

WIP. Progress so far:

* Use section headings to CMakeLists.txt steps appear in the TOC
* Use modern CMake targets instead of standard CMake variables
* Use Active voice and second person perspective
* Include links to real examples

Signed-off-by: Shane Loretz <[email protected]>
@sloretz sloretz self-assigned this Sep 22, 2024
Signed-off-by: Shane Loretz <[email protected]>
Signed-off-by: Shane Loretz <[email protected]>
Signed-off-by: Shane Loretz <[email protected]>
Copy link

github-actions bot commented Sep 26, 2024

HTML artifacts: https://github.com/ros2/ros2_documentation/actions/runs/11110850644/artifacts/1996752065.

To view the resulting site:

  1. Click on the above link to download the artifacts archive
  2. Extract it
  3. Open html-artifacts-4767/index.html in your favorite browser

@sloretz sloretz marked this pull request as ready for review September 29, 2024 23:39
@clalancette clalancette added the backport-all backport at reviewers discretion; from rolling to all versions label Sep 30, 2024
Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

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

I've got two pretty minor changes that I think we should make, but this otherwise is a great update.

sloretz and others added 2 commits September 30, 2024 10:03
Co-authored-by: Chris Lalancette <[email protected]>
Signed-off-by: Shane Loretz <[email protected]>
Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

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

This is a fantastic improvement to these docs. Thanks so much for spending the time on this @sloretz

@clalancette clalancette merged commit 9d6552c into rolling Sep 30, 2024
4 checks passed
@clalancette clalancette deleted the sloretz__polish_ros1_migration_cpp branch September 30, 2024 17:50
mergify bot pushed a commit that referenced this pull request Sep 30, 2024
* Polish the ROS 1 -> 2 CMake instructions

* Use section headings to CMakeLists.txt steps appear in the TOC
* Use modern CMake targets instead of standard CMake variables
* Use Active voice and second person perspective
* Include links to real examples

Signed-off-by: Shane Loretz <[email protected]>
Co-authored-by: Chris Lalancette <[email protected]>
(cherry picked from commit 9d6552c)
mergify bot pushed a commit that referenced this pull request Sep 30, 2024
* Polish the ROS 1 -> 2 CMake instructions

* Use section headings to CMakeLists.txt steps appear in the TOC
* Use modern CMake targets instead of standard CMake variables
* Use Active voice and second person perspective
* Include links to real examples

Signed-off-by: Shane Loretz <[email protected]>
Co-authored-by: Chris Lalancette <[email protected]>
(cherry picked from commit 9d6552c)

# Conflicts:
#	source/How-To-Guides/Migrating-from-ROS1/Migrating-CPP-Packages.rst
mergify bot pushed a commit that referenced this pull request Sep 30, 2024
* Polish the ROS 1 -> 2 CMake instructions

* Use section headings to CMakeLists.txt steps appear in the TOC
* Use modern CMake targets instead of standard CMake variables
* Use Active voice and second person perspective
* Include links to real examples

Signed-off-by: Shane Loretz <[email protected]>
Co-authored-by: Chris Lalancette <[email protected]>
(cherry picked from commit 9d6552c)

# Conflicts:
#	source/How-To-Guides/Migrating-from-ROS1/Migrating-CPP-Packages.rst
clalancette pushed a commit that referenced this pull request Sep 30, 2024
* Polish the ROS 1 -> 2 CMake instructions

* Use section headings to CMakeLists.txt steps appear in the TOC
* Use modern CMake targets instead of standard CMake variables
* Use Active voice and second person perspective
* Include links to real examples

Signed-off-by: Shane Loretz <[email protected]>
Co-authored-by: Chris Lalancette <[email protected]>
(cherry picked from commit 9d6552c)
clalancette pushed a commit that referenced this pull request Sep 30, 2024
* Polish the ROS 1 -> 2 CMake instructions

* Use section headings to CMakeLists.txt steps appear in the TOC
* Use modern CMake targets instead of standard CMake variables
* Use Active voice and second person perspective
* Include links to real examples

Signed-off-by: Shane Loretz <[email protected]>
Co-authored-by: Chris Lalancette <[email protected]>
(cherry picked from commit 9d6552c)
clalancette pushed a commit that referenced this pull request Sep 30, 2024
* Polish the ROS 1 -> 2 CMake instructions

* Use section headings to CMakeLists.txt steps appear in the TOC
* Use modern CMake targets instead of standard CMake variables
* Use Active voice and second person perspective
* Include links to real examples

Signed-off-by: Shane Loretz <[email protected]>
Co-authored-by: Chris Lalancette <[email protected]>
(cherry picked from commit 9d6552c)

Co-authored-by: Shane Loretz <[email protected]>
clalancette pushed a commit that referenced this pull request Sep 30, 2024
* Polish the ROS 1 -> 2 CMake instructions

* Use section headings to CMakeLists.txt steps appear in the TOC
* Use modern CMake targets instead of standard CMake variables
* Use Active voice and second person perspective
* Include links to real examples

Signed-off-by: Shane Loretz <[email protected]>
Co-authored-by: Chris Lalancette <[email protected]>
(cherry picked from commit 9d6552c)

Co-authored-by: Shane Loretz <[email protected]>
clalancette pushed a commit that referenced this pull request Sep 30, 2024
* Polish the ROS 1 -> 2 CMake instructions

* Use section headings to CMakeLists.txt steps appear in the TOC
* Use modern CMake targets instead of standard CMake variables
* Use Active voice and second person perspective
* Include links to real examples

Signed-off-by: Shane Loretz <[email protected]>
Co-authored-by: Chris Lalancette <[email protected]>
(cherry picked from commit 9d6552c)

Co-authored-by: Shane Loretz <[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.

3 participants