Skip to content

Commit 7d70048

Browse files
authored
Merge humble (#286)
2 parents 08987e8 + a3e04cb commit 7d70048

File tree

23 files changed

+44
-99
lines changed

23 files changed

+44
-99
lines changed

.github/workflows/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ curl -X POST \
99
-d '{
1010
"ref": "carma-develop"
1111
}'
12-
```
12+
```

.github/workflows/auto-merge-workflow.yml

-14
This file was deleted.

.github/workflows/docker.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ jobs:
88
docker:
99
uses: usdot-fhwa-stol/actions/.github/workflows/docker.yml@main
1010
with:
11-
context: .
11+
tag_name_suffix: humble
12+
context: .

.github/workflows/dockerhub.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ jobs:
1818
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
1919
GH_PAT: ${{ secrets.GH_PAT }}
2020
with:
21-
context: .
21+
tag_name_suffix: humble
22+
remove_suffix: true
23+
context: .

Dockerfile

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG DOCKER_ORG=usdotfhwastoldev
2-
ARG DOCKER_TAG=develop
2+
ARG DOCKER_TAG=develop-humble
33
FROM ${DOCKER_ORG}/carma-base:${DOCKER_TAG} as base_image
44

55
FROM base_image AS build
@@ -11,7 +11,7 @@ ENV ROS2_PACKAGES=${ROS2_PACKAGES}
1111

1212
COPY --chown=carma . /home/carma/autoware.ai
1313
RUN /home/carma/autoware.ai/docker/checkout.bash -b ${GIT_BRANCH}
14-
RUN ./home/carma/autoware.ai/docker/install.sh
14+
RUN /home/carma/autoware.ai/docker/install.sh
1515

1616
FROM base_image
1717

@@ -30,4 +30,3 @@ LABEL org.label-schema.vcs-ref=${VCS_REF}
3030
LABEL org.label-schema.build-date=${BUILD_DATE}
3131

3232
COPY --chown=carma --from=build /opt/autoware.ai/ros/install /opt/autoware.ai/ros/install
33-
COPY --chown=carma --from=build /opt/autoware.ai/ros/install_ros2 /opt/autoware.ai/ros/install_ros2

common/autoware_lanelet2_ros_interface/include/autoware_lanelet2_ros2_interface/visualization/visualization.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void lineString2Marker(const lanelet::ConstLineString3d ls, visualization_msgs::
8080
*/
8181
void trafficLight2TriangleMarker(const lanelet::ConstLineString3d ls, visualization_msgs::msg::Marker* marker,
8282
const std::string ns, const std_msgs::msg::ColorRGBA cl,
83-
const rclcpp::Duration duration = rclcpp::Duration(0.0), const double scale = 1.0);
83+
const rclcpp::Duration duration = rclcpp::Duration::from_seconds(0.0), const double scale = 1.0);
8484

8585
/**
8686
* [laneletsBoundaryAsMarkerArray create marker array to visualize shape of
@@ -135,7 +135,7 @@ visualization_msgs::msg::MarkerArray lineStringsAsMarkerArray(const std::vector<
135135
*/
136136
visualization_msgs::msg::MarkerArray autowareTrafficLightsAsMarkerArray(
137137
const std::vector<lanelet::AutowareTrafficLightConstPtr> tl_reg_elems, const std_msgs::msg::ColorRGBA c,
138-
const rclcpp::Duration duration = rclcpp::Duration(0.0), const double scale = 1.0);
138+
const rclcpp::Duration duration = rclcpp::Duration::from_seconds(0.0), const double scale = 1.0);
139139

140140
/**
141141
* [trafficLightsAsTriangleMarkerArray creates marker array to visualize shape
@@ -147,7 +147,7 @@ visualization_msgs::msg::MarkerArray autowareTrafficLightsAsMarkerArray(
147147
*/
148148
visualization_msgs::msg::MarkerArray trafficLightsAsTriangleMarkerArray(
149149
const std::vector<lanelet::TrafficLightConstPtr> tl_reg_elems, const std_msgs::msg::ColorRGBA c,
150-
const rclcpp::Duration duration = rclcpp::Duration(0.0), const double scale = 1.0);
150+
const rclcpp::Duration duration = rclcpp::Duration::from_seconds(0.0), const double scale = 1.0);
151151

152152
} // namespace visualization
153153
} // namespace lanelet

common/autoware_lanelet2_ros_interface/lib/autoware_lanelet2_ros2_interface/visualization.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ void lightAsMarker(lanelet::ConstPoint3d p, visualization_msgs::msg::Marker* mar
118118
marker->color.g = 1.0f;
119119
marker->color.b = 1.0f;
120120
}
121-
marker->lifetime = rclcpp::Duration(0.0);
121+
marker->lifetime = rclcpp::Duration::from_seconds(0.0);
122122
}
123123

124124
void laneletDirectionAsMarker(const lanelet::ConstLanelet ll, visualization_msgs::msg::Marker* marker, const int id,
@@ -152,7 +152,7 @@ void laneletDirectionAsMarker(const lanelet::ConstLanelet ll, visualization_msgs
152152
lanelet::ConstLineString3d center_ls = ll.centerline();
153153
float s = 1.0;
154154

155-
marker->lifetime = rclcpp::Duration(0.0);
155+
marker->lifetime = rclcpp::Duration::from_seconds(0.0);
156156

157157
marker->pose.position.x = 0.0; // p.x();
158158
marker->pose.position.y = 0.0; // p.y();
@@ -533,7 +533,7 @@ visualization_msgs::msg::MarkerArray visualization::laneletsAsTriangleMarkerArra
533533
marker.ns = ns;
534534
marker.id = 0;
535535
marker.type = visualization_msgs::msg::Marker::TRIANGLE_LIST;
536-
marker.lifetime = rclcpp::Duration(0.0);
536+
marker.lifetime = rclcpp::Duration::from_seconds(0.0);
537537
marker.pose.position.x = 0.0; // p.x();
538538
marker.pose.position.y = 0.0; // p.y();
539539
marker.pose.position.z = 0.0; // p.z();

common/lanelet2_extension/CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ find_path(PUGIXML_INCLUDE_DIRS
3333
PATH_SUFFIXES pugixml
3434
)
3535

36-
find_package(PROJ4 REQUIRED)
36+
find_package(PROJ REQUIRED)
3737
find_package(Boost REQUIRED)
3838

3939

@@ -132,7 +132,7 @@ if(${ROS_VERSION} EQUAL 2)
132132
include
133133
${GeographicLib_INCLUDE_DIRS}
134134
${PUGIXML_INCLUDE_DIRS}
135-
${PROJ4_INCLUDE_DIRS}
135+
${PROJ_INCLUDE_DIRS}
136136
${Boost_INCLUDE_DIRS}
137137
${${LOGGER_DEP}_INCLUDE_DIRS}
138138
${hardcoded_params_INCLUDE_DIRS}
@@ -150,7 +150,7 @@ if(${ROS_VERSION} EQUAL 2)
150150

151151
target_link_libraries(lanelet2_extension_lib
152152
${GeographicLib_LIBRARIES}
153-
${PROJ4_LIBRARIES}
153+
${PROJ_LIBRARIES}
154154
${Boost_LIBRARIES}
155155
${${LOGGER_DEP}_LIBRARIES}
156156
)

common/map_file_ros2/package.xml

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
<depend>lanelet2_extension</depend>
4242
<depend>carma_ros2_utils</depend>
4343
<depend>autoware_lanelet2_ros_interface</depend>
44+
<depend>pcl_conversions</depend>
4445

4546

4647
<test_depend>ament_lint_auto</test_depend>

core_perception/ekf_localizer/include/ekf_localizer/ekf_localizer.hpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
#include <tf2/LinearMath/Quaternion.h>
3333
#include <tf2_ros/transform_listener.h>
3434
#include <tf2_ros/transform_broadcaster.h>
35+
#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>
36+
#include <tf2_ros/buffer.h>
3537

3638
#include "amathutils_lib_ros2/kalman_filter.hpp"
3739
#include "amathutils_lib_ros2/time_delay_kalman_filter.hpp"
@@ -235,4 +237,4 @@ class EKFLocalizer: public carma_ros2_utils::CarmaLifecycleNode
235237
carma_ros2_utils::CallbackReturn handle_on_configure(const rclcpp_lifecycle::State &);
236238
};
237239

238-
} //namespace ekf_localizer
240+
} //namespace ekf_localizer

core_perception/lidar_localizer_ros2/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ ${PCL_LIBRARIES}
7272

7373
ament_auto_package(
7474
INSTALL_TO_SHARE launch
75-
)
75+
)

core_perception/lidar_localizer_ros2/include/ndt_matching.hpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,16 @@
3030
#include <std_msgs/msg/bool.hpp>
3131
#include <std_msgs/msg/float32.hpp>
3232
#include <std_msgs/msg/string.hpp>
33-
#include <velodyne_pointcloud/rawdata.hpp>
3433

3534
#include <tf2_ros/static_transform_broadcaster.h>
3635
#include "tf2_ros/transform_broadcaster.h"
3736
#include <tf2_ros/transform_listener.h>
3837
#include <tf2_ros/buffer.h>
39-
#include "tf2_geometry_msgs/tf2_geometry_msgs.h"
38+
#include "tf2_geometry_msgs/tf2_geometry_msgs.hpp"
4039

4140
#include <geometry_msgs/msg/pose_stamped.hpp>
4241
#include <geometry_msgs/msg/vector3_stamped.hpp>
43-
#include <pcl/io/io.h>
42+
#include <pcl/common/io.h>
4443
#include <pcl/io/pcd_io.h>
4544
#include <pcl/point_types.h>
4645
#include <pcl_conversions/pcl_conversions.h>

core_perception/lidar_localizer_ros2/package.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<depend>tf2</depend>
4343
<depend>tf2_ros</depend>
4444
<depend>pcl</depend>
45-
<depend>velodyne_pointcloud</depend>
45+
<depend>tf2_geometry_msgs</depend>
4646

4747
<test_depend>ament_lint_auto</test_depend>
4848
<test_depend>ament_cmake_gtest</test_depend>

core_perception/ndt_cpu/CMakeLists.txt

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ find_package(ros_environment REQUIRED)
66
set(ROS_VERSION $ENV{ROS_VERSION})
77

88
find_package(PCL COMPONENTS REQUIRED)
9-
find_package(catkin REQUIRED)
109
find_package(Eigen3 QUIET)
1110

1211
if(NOT EIGEN3_FOUND)
@@ -21,7 +20,7 @@ else()
2120
endif()
2221

2322
if(${ROS_VERSION} EQUAL 1)
24-
23+
find_package(catkin REQUIRED)
2524
catkin_package(
2625
INCLUDE_DIRS include
2726
LIBRARIES ndt_cpu #The exported libraries from the project
@@ -135,4 +134,4 @@ else() #ROS2
135134

136135
ament_auto_package()
137136

138-
endif()
137+
endif()

docker/checkout.bash

-3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,3 @@ cd "${dir}"/autoware.ai
4343
git clone --depth=1 https://github.com/usdot-fhwa-stol/carma-msgs.git --branch "$BRANCH"
4444
git clone --depth=1 https://github.com/usdot-fhwa-stol/carma-utils.git --branch "$BRANCH"
4545
git clone --depth=1 https://github.com/usdot-fhwa-stol/autoware.auto.git --branch "$BRANCH"
46-
# TODO(CAR-6023): Should this external dependencies be moved into install.sh
47-
# Required to build pacmod_msgs
48-
git clone https://github.com/astuff/astuff_sensor_msgs.git "${dir}"/src/astuff_sensor_msgs -b 3.0.1

docker/install.sh

+2-43
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
# License for the specific language governing permissions and limitations under
1515
# the License.
1616

17-
18-
###
19-
# ROS 1 Build
20-
###
21-
# Source environment variables
2217
if [[ ! -z "$ROS1_PACKAGES$ROS2_PACKAGES" ]]; then
2318
echo "Sourcing previous build for incremental build start point..."
2419
source /opt/autoware.ai/ros/install/setup.bash
@@ -30,57 +25,21 @@ fi
3025
# Enter source directory
3126
cd /home/carma/autoware.ai
3227

33-
# Build with CUDA
34-
echo "ROS 1 Build with CUDA"
3528
sudo mkdir /opt/autoware.ai # Create install directory
3629
sudo chown carma /opt/autoware.ai # Set owner to expose permissions for build
3730
sudo chgrp carma /opt/autoware.ai # Set group to expose permissions for build
3831

39-
if [[ ! -z "$ROS1_PACKAGES$ROS2_PACKAGES" ]]; then
40-
if [[ ! -z "$ROS1_PACKAGES" ]]; then
41-
echo "Incrementally building ROS1 packages: $ROS1_PACKAGES"
42-
AUTOWARE_COMPILE_WITH_CUDA=1 colcon build --build-base build_ros1 --install-base /opt/autoware.ai/ros/install --cmake-args -DCMAKE_BUILD_TYPE=Release -DCMAKE_LIBRARY_PATH=/usr/local/cuda/lib64/stubs -DCMAKE_CXX_FLAGS=-Wall -DCMAKE_C_FLAGS=-Wall --packages-above $ROS1_PACKAGES --allow-overriding $ROS1_PACKAGES
43-
else
44-
echo "Build type is incremental but no ROS1 packages specified, skipping ROS1 build..."
45-
fi
46-
else
47-
echo "Building all ROS1 Autoware.AI Components"
48-
AUTOWARE_COMPILE_WITH_CUDA=1 colcon build --build-base build_ros1 --install-base /opt/autoware.ai/ros/install --cmake-args -DCMAKE_BUILD_TYPE=Release -DCMAKE_LIBRARY_PATH=/usr/local/cuda/lib64/stubs -DCMAKE_CXX_FLAGS=-Wall -DCMAKE_C_FLAGS=-Wall
49-
fi
50-
51-
# Get the exit code from the ROS1 build so we can skip the ROS2 build if the ROS1 build failed
52-
status=$?
53-
54-
if [[ $status -ne 0 ]]; then
55-
echo "Autoware.ai build failed."
56-
exit $status
57-
fi
58-
echo "Build of ROS1 Autoware.AI Components Complete"
59-
60-
61-
###
62-
# ROS 2 Build
63-
###
64-
source /opt/ros/foxy/setup.bash
65-
if [[ ! -z "$ROS1_PACKAGES$ROS2_PACKAGES" ]]; then
66-
echo "Sourcing previous build for incremental build start point..."
67-
source /opt/autoware.ai/ros/install_ros2/setup.bash
68-
else
69-
echo "Sourcing base image for full build..."
70-
source /home/carma/catkin/setup.bash
71-
fi
72-
7332
echo "ROS 2 Build"
7433
if [[ ! -z "$ROS1_PACKAGES$ROS2_PACKAGES" ]]; then
7534
if [[ ! -z "$ROS2_PACKAGES" ]]; then
7635
echo "Incrementally building ROS2 packages: $ROS1_PACKAGES"
7736
# Build with CUDA compile option
78-
AUTOWARE_COMPILE_WITH_CUDA=1 colcon build --install-base /opt/autoware.ai/ros/install_ros2 --build-base build_ros2 --cmake-args -DCMAKE_BUILD_TYPE=Release --packages-above $ROS2_PACKAGES --allow-overriding $ROS2_PACKAGES
37+
AUTOWARE_COMPILE_WITH_CUDA=1 colcon build --install-base /opt/autoware.ai/ros/install --build-base build --cmake-args -DCMAKE_BUILD_TYPE=Release --packages-above $ROS2_PACKAGES --allow-overriding $ROS2_PACKAGES --packages-ignore parking_planner parking_planner_nodes
7938
else
8039
echo "Build type is incremental but no ROS2 packages specified, skipping ROS2 build..."
8140
fi
8241
else
8342
echo "Building all ROS2 Autoware.AI Components"
8443
# Build with CUDA compile option
85-
AUTOWARE_COMPILE_WITH_CUDA=1 colcon build --install-base /opt/autoware.ai/ros/install_ros2 --build-base build_ros2 --cmake-args -DCMAKE_BUILD_TYPE=Release
44+
AUTOWARE_COMPILE_WITH_CUDA=1 colcon build --install-base /opt/autoware.ai/ros/install --build-base build --cmake-args -DCMAKE_BUILD_TYPE=Release --packages-ignore parking_planner parking_planner_nodes
8645
fi

jsk_recognition/jsk_recognition_utils/cmake/FindCython.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# if it is a local installation.
2727
find_package( PythonInterp )
2828
if( PYTHONINTERP_FOUND )
29-
get_filename_component( _python_path ${PYTHON_EXECUTABLE} PATH )
29+
get_filename_component( _python_path ${Python3_EXECUTABLE} PATH )
3030
find_program( CYTHON_EXECUTABLE
3131
NAMES cython cython.bat cython3
3232
HINTS ${_python_path}

mrt_cmake_modules/cmake/Modules/CatkinMockForConan.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ conan_define_targets()
77
target_link_libraries(${PROJECT_NAME}::auto_deps_export INTERFACE ${CONAN_TARGETS})
88
if(CONAN_USER_PYTHON_DEV_CONFIG_python_exec)
99
set(PYTHON_VERSION ${CONAN_USER_PYTHON_DEV_CONFIG_python_version})
10-
set(PYTHON_EXECUTABLE ${CONAN_USER_PYTHON_DEV_CONFIG_python_exec})
10+
set(Python3_EXECUTABLE ${CONAN_USER_PYTHON_DEV_CONFIG_python_exec})
1111
endif()
1212

1313
set(CATKIN_DEVEL_PREFIX ${CMAKE_CURRENT_BINARY_DIR})

mrt_cmake_modules/cmake/Modules/FindBoostPython.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
# BoostPython_INCLUDE_DIRS - the include directory for boost+python
66
# BoostPython_LIBRARIES - the needed libs for boost+python
77

8-
if(PYTHON_VERSION)
9-
set(_python_version ${PYTHON_VERSION})
8+
if(Python3_VERSION)
9+
set(_python_version ${Python3_VERSION})
1010
else()
1111
set(_python_version 2.7)
1212
endif()

mrt_cmake_modules/cmake/Modules/GatherDeps.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/package.xml"
1212
#variable set. This is used, because the python script is calling some ros tools to distinguish
1313
#between catkin and non catkin packages.
1414
set(_gather_cmd
15-
${MRT_CMAKE_ENV} ${PYTHON_EXECUTABLE} ${MRT_CMAKE_MODULES_ROOT_PATH}/scripts/generate_cmake_dependency_file.py
15+
${MRT_CMAKE_ENV} ${Python3_EXECUTABLE} ${MRT_CMAKE_MODULES_ROOT_PATH}/scripts/generate_cmake_dependency_file.py
1616
"${CMAKE_CURRENT_SOURCE_DIR}/package.xml" "${MRT_CMAKE_MODULES_ROOT_PATH}/yaml/cmake.yaml"
1717
"${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/auto_dep_vars.cmake")
1818
execute_process(

mrt_cmake_modules/cmake/Modules/MrtTesting.cmake

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function(mrt_init_testing)
4545
endif()
4646
if(NOT TARGET init_tests)
4747
set(pre_test_cmd
48-
${PYTHON_EXECUTABLE}
48+
${Python3_EXECUTABLE}
4949
${MRT_CMAKE_MODULES_ROOT_PATH}/scripts/init_coverage.py
5050
${PROJECT_NAME}
5151
${CMAKE_BINARY_DIR}
@@ -61,7 +61,7 @@ function(mrt_init_testing)
6161
set(show_result "--show")
6262
endif()
6363
set(post_test_cmd
64-
${PYTHON_EXECUTABLE}
64+
${Python3_EXECUTABLE}
6565
${MRT_CMAKE_MODULES_ROOT_PATH}/scripts/eval_coverage.py
6666
${CMAKE_SOURCE_DIR}
6767
${CMAKE_BINARY_DIR}
@@ -115,7 +115,7 @@ function(_mrt_run_test target_name working_dir result_xml_path)
115115

116116
set(run_test_cmd
117117
${CATKIN_ENV}
118-
${PYTHON_EXECUTABLE}
118+
${Python3_EXECUTABLE}
119119
${MRT_CMAKE_MODULES_ROOT_PATH}/scripts/run_test.py
120120
${result_xml_path}
121121
${working_dir_arg}
@@ -205,7 +205,7 @@ function(mrt_add_rostest target launch_file)
205205
message(FATAL_ERROR "rostest not found! Aborting...")
206206
endif()
207207
set(cmd
208-
"${PYTHON_EXECUTABLE} ${ROSTEST_EXE} --pkgdir=${PROJECT_SOURCE_DIR} --package=${PROJECT_NAME} --results-filename ${test_name}.xml --results-base-dir \"${MRT_TEST_RESULTS_DIR}\" ${CMAKE_CURRENT_LIST_DIR}/${launch_file}"
208+
"${Python3_EXECUTABLE} ${ROSTEST_EXE} --pkgdir=${PROJECT_SOURCE_DIR} --package=${PROJECT_NAME} --results-filename ${test_name}.xml --results-base-dir \"${MRT_TEST_RESULTS_DIR}\" ${CMAKE_CURRENT_LIST_DIR}/${launch_file}"
209209
)
210210
if(MRT_ENABLE_COVERAGE)
211211
set(coverage_arg COVERAGE_DIR ${MRT_COVERAGE_DIR}/${target})

mrt_cmake_modules/cmake/Templates/python_api_install.py.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import os
44
import sys
55
import subprocess
66

7-
python_interpreter = "@PYTHON_EXECUTABLE@"
7+
python_interpreter = "@Python3_EXECUTABLE@"
88
if not python_interpreter:
99
python_interpreter = "python"
1010

0 commit comments

Comments
 (0)