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

Does it support ROS2 Foxy version? #3036

Closed
LHZ-code opened this issue Mar 7, 2024 · 3 comments
Closed

Does it support ROS2 Foxy version? #3036

LHZ-code opened this issue Mar 7, 2024 · 3 comments
Labels

Comments

@LHZ-code
Copy link

LHZ-code commented Mar 7, 2024

why???
if("$ENV{ROS_DISTRO}" STREQUAL "humble")
message(STATUS "Build for ROS2 Humble")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHUMBLE")
set(SOURCES "${SOURCES}" src/ros_param_backend.cpp)
elseif("$ENV{ROS_DISTRO}" STREQUAL "iron")
message(STATUS "Build for ROS2 Iron")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DIRON")
set(SOURCES "${SOURCES}" src/ros_param_backend.cpp)
elseif("$ENV{ROS_DISTRO}" STREQUAL "rolling")
message(STATUS "Build for ROS2 Rolling")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DROLLING")
set(SOURCES "${SOURCES}" src/ros_param_backend.cpp)
else()

colcon build
Starting >>> realsense2_camera_msgs
Finished <<< realsense2_camera_msgs [2.35s]
Starting >>> realsense2_camera
Starting >>> realsense2_description
Finished <<< realsense2_description [1.43s]
--- stderr: realsense2_camera
CMake Error at CMakeLists.txt:167 (message):
Unsupported ROS Distribution: foxy

make: *** [Makefile:742:cmake_check_build_system] 错误 1

Failed <<< realsense2_camera [2.64s, exited with code 2]

Summary: 2 packages finished [12.3s]
1 package failed: realsense2_camera
1 package had stderr output: realsense2_camera

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Mar 7, 2024

Hi @LHZ-code The 4.54.1 version of the RealSense ROS2 wrapper only supports Humble and Iron.

If you need to use Foxy then a possible option that you could investigate is to build an older forked version of 4.54.1 that was created by RealSense ROS users before Foxy support was removed from the official version of the 4.54.1 wrapper. #2852 (comment) has more information about this.

@MartyG-RealSense
Copy link
Collaborator

Hi @LHZ-code Do you require further assistance with this case, please? Thanks!

@MartyG-RealSense
Copy link
Collaborator

Case closed due to no further comments received.

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

No branches or pull requests

2 participants