@@ -18,15 +18,8 @@ set(RGL_TAG v${RGL_VERSION})
18
18
set (RGL_VERSION_METADATA_FILE ${CMAKE_CURRENT_BINARY_DIR} /RGL_VERSION)
19
19
set (ROS_DISTRO_METADATA_FILE ${CMAKE_CURRENT_BINARY_DIR} /ROS_DISTRO)
20
20
21
- # Determine RGL binary to download based on ROS distro
22
21
set (ROS_DISTRO $ENV{ROS_DISTRO} )
23
- if ($ENV{ROS_DISTRO} STREQUAL "humble" )
24
- set (RGL_LINUX_ZIP_FILENAME_BASE RGL-full-linux-x64-humble)
25
- elseif ($ENV{ROS_DISTRO} STREQUAL "jazzy" )
26
- set (RGL_LINUX_ZIP_FILENAME_BASE RGL-full-linux-x64-jazzy)
27
- else ()
28
- message (FATAL_ERROR "ROS not found or ROS distro not supported. Please use one of {humble, jazzy}." )
29
- endif ()
22
+ set (RGL_LINUX_ZIP_FILENAME_BASE RGL-core-linux-x64)
30
23
set (RGL_LINUX_ZIP_FILENAME ${RGL_LINUX_ZIP_FILENAME_BASE} .zip)
31
24
32
25
set (RGL_LINUX_ZIP_URL https://github.com/RobotecAI/RobotecGPULidar/releases/download/${RGL_TAG} /${RGL_LINUX_ZIP_FILENAME} )
@@ -53,13 +46,10 @@ if (NOT EXISTS ${RGL_DOWNLOAD_IN_PROGRESS_FILE})
53
46
if (EXISTS ${RGL_VERSION_METADATA_FILE} )
54
47
file (READ ${RGL_VERSION_METADATA_FILE} RGL_VERSION_METADATA)
55
48
endif ()
56
- if (EXISTS ${ROS_DISTRO_METADATA_FILE} )
57
- file (READ ${ROS_DISTRO_METADATA_FILE} ROS_DISTRO_METADATA)
58
- endif ()
59
49
60
50
# If metadata does not match, download RGL
61
- if ((NOT ${RGL_VERSION_METADATA} STREQUAL ${RGL_VERSION} ) OR ( NOT ${ROS_DISTRO_METADATA} STREQUAL ${ROS_DISTRO} ) )
62
- message ("Downloading RGL " ${RGL_VERSION} " for ROS " ${ROS_DISTRO} " ..." )
51
+ if ((NOT ${RGL_VERSION_METADATA} STREQUAL ${RGL_VERSION} ))
52
+ message ("Downloading RGL " ${RGL_VERSION} "..." )
63
53
64
54
# Download the RGL archive files
65
55
file (DOWNLOAD
@@ -77,19 +67,14 @@ if (NOT EXISTS ${RGL_DOWNLOAD_IN_PROGRESS_FILE})
77
67
# Remove the unwanted byproducts
78
68
file (REMOVE ${DEST_SO_DIR} /${RGL_LINUX_ZIP_FILENAME} )
79
69
80
- # Download API headers
70
+ # Download API header
81
71
file (DOWNLOAD
82
72
${RGL_SRC_ROOT_URL} /include /rgl/api/core.h
83
73
${DEST_API_DIR} /core.h
84
74
)
85
- file (DOWNLOAD
86
- ${RGL_SRC_ROOT_URL} /extensions/ros2/include /rgl/api/extensions/ros2.h
87
- ${DEST_API_DIR} /extensions/ros2.h
88
- )
89
75
90
76
# Save current metadata
91
77
file (WRITE ${RGL_VERSION_METADATA_FILE} ${RGL_VERSION} )
92
- file (WRITE ${ROS_DISTRO_METADATA_FILE} ${ROS_DISTRO} )
93
78
endif ()
94
79
95
80
# Remove the unwanted byproducts
0 commit comments