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

ROS2 Humble upgrade code only - not integration tested #166

Open
wants to merge 67 commits into
base: develop-humble
Choose a base branch
from

Conversation

MishkaMN
Copy link
Contributor

@MishkaMN MishkaMN commented Dec 23, 2024

PR Details

Description

This is upgrade to Humble for ROS2 ssc-wrapper. Main changes are:

  • Separated the dockerfile into ROS1 (noetic) and ROS2 (humble). Thus splitting the dependency code as well from each dockerfiles
  • Added binary files from Hexagon (autonomoustuff) from CARMASensitive because it is not available in public repo list. They emailed it to us
  • Removed unnecessary git clones for ROS2 because all of the required packages are available as Humble deb file.
  • Removed dependency from autoware.ai because previously we separated all that carma-ssc-interface-wrapper needs from autoware.ai
  • Now this PR makes it generate 2 different images with following tags:
  • usdotfhwastoldev/carma-ssc-interface-wrapper:develop-humble
  • usdotfhwastoldev/carma-ssc-interface-wrapper:develop-noetic

Related GitHub Issue

NA

Related Jira Key

ARC-199

Motivation and Context

Upgrade to Humble

How Has This Been Tested?

For now it is only whether if the Docker image builds or not.
Next story will be integration testing in Lexus.

Types of changes

  • Defect fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that cause existing functionality to change)

Checklist:

  • I have added any new packages to the sonar-scanner.properties file
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@MishkaMN MishkaMN requested a review from adev4a January 10, 2025 21:00
@MishkaMN MishkaMN self-assigned this Jan 10, 2025
@MishkaMN MishkaMN added the enhancement New feature or request label Jan 10, 2025
@MishkaMN MishkaMN changed the title initial humble change ROS2 Humble upgrade code only - not integration tested Jan 12, 2025
@MishkaMN
Copy link
Contributor Author

I wasn't able to fix the Sonar scan. I'll have Sai take a look at this as it seems to have exist on develop too. Considering how the code hasn't changed in a while it is pretty low priority fix anyways. https://usdot-carma.atlassian.net/browse/CAR-6098

ssc_interface_wrapper_ros2/package.xml Outdated Show resolved Hide resolved
.github/workflows/docker-humble.yml Outdated Show resolved Hide resolved
docker/install.sh Outdated Show resolved Hide resolved
humble/Dockerfile Outdated Show resolved Hide resolved
std::bind(&Converter::callback_from_ssc_module_states, this, std_ph::_1));
// TO DO: The output from callback_from_ssc_feedbacks and callback_for_twist_update needs to be kept synchronized
// This was being done in autoware.ai using message_filters https://github.com/usdot-fhwa-stol/autoware.ai/blob/1cb4e74b810111369a6bbe49b0e64e07767454c0/drivers/as/nodes/ssc_interface/ssc_interface.h#L58
// This was being done in autoware using message_filters https://github.com/usdot-fhwa-stol/autoware.ai/blob/1cb4e74b810111369a6bbe49b0e64e07767454c0/drivers/as/nodes/ssc_interface/ssc_interface.h#L58
Copy link
Contributor

@adev4a adev4a Jan 16, 2025

Choose a reason for hiding this comment

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

Message filters humble version should support synchronization using message_filters. The current synchronization is done with a workaround using flags

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay I removed the TODO comment

Copy link
Contributor

Choose a reason for hiding this comment

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

For this one, we should be implementing the change suggested in the todo comments. We can probably just take the implementation from autoware which was updated here for foxy since message_filters wasn't supporting the required function on that release. https://github.com/usdot-fhwa-stol/autoware.ai/blob/1cb4e74b810111369a6bbe49b0e64e07767454c0/drivers/as/nodes/ssc_interface/ssc_interface.h#L58

humble/Dockerfile Show resolved Hide resolved
humble/Dockerfile Outdated Show resolved Hide resolved
@MishkaMN MishkaMN requested a review from adev4a January 17, 2025 19:33
@@ -1,20 +1,20 @@
version: 2
# Copyright (C) 2018-2022 LEIDOS.
#
# Copyright (C) 2025 LEIDOS.
Copy link
Contributor

Choose a reason for hiding this comment

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

The copyright should be 2018-2022

@@ -1,6 +1,6 @@
#!/bin/bash

# Copyright (C) 2022 LEIDOS.
# Copyright (C) 2025 LEIDOS.
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be 2022-2025

std::bind(&Converter::callback_from_ssc_module_states, this, std_ph::_1));
// TO DO: The output from callback_from_ssc_feedbacks and callback_for_twist_update needs to be kept synchronized
// This was being done in autoware.ai using message_filters https://github.com/usdot-fhwa-stol/autoware.ai/blob/1cb4e74b810111369a6bbe49b0e64e07767454c0/drivers/as/nodes/ssc_interface/ssc_interface.h#L58
// This was being done in autoware using message_filters https://github.com/usdot-fhwa-stol/autoware.ai/blob/1cb4e74b810111369a6bbe49b0e64e07767454c0/drivers/as/nodes/ssc_interface/ssc_interface.h#L58
Copy link
Contributor

Choose a reason for hiding this comment

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

For this one, we should be implementing the change suggested in the todo comments. We can probably just take the implementation from autoware which was updated here for foxy since message_filters wasn't supporting the required function on that release. https://github.com/usdot-fhwa-stol/autoware.ai/blob/1cb4e74b810111369a6bbe49b0e64e07767454c0/drivers/as/nodes/ssc_interface/ssc_interface.h#L58

@@ -1,4 +1,4 @@
# Copyright (C) 2018-2022 LEIDOS.
# Copyright (C) 2025 LEIDOS.
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be 2018-2025

@@ -1,18 +1,19 @@
#!/bin/bash

# Copyright (C) 2018-2022 LEIDOS.
#
# Copyright (C) 2025 LEIDOS.
Copy link
Contributor

Choose a reason for hiding this comment

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

2018-2025

@@ -1,13 +1,13 @@
#!/bin/bash

# Copyright (C) 2022 LEIDOS.
Copy link
Contributor

Choose a reason for hiding this comment

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

Also 2018-2025

@@ -1,20 +1,20 @@
#!/bin/bash

# Copyright (C) 2018-2021 LEIDOS.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think same comment for all files here to update copyright year

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants