Skip to content

Commit

Permalink
Fix compilation with ROS2 Galactic Geochelone (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgburr authored Jul 22, 2024
1 parent 12decc9 commit c35c6ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ add_executable(sbp-to-ros
DEPENDENCIES std_msgs
)

if(${FOUND_ROS2_DISTRO} STREQUAL "foxy")
if((${FOUND_ROS2_DISTRO} STREQUAL "foxy") OR (${FOUND_ROS2_DISTRO} STREQUAL "galactic"))
rosidl_target_interfaces(sbp-to-ros ${PROJECT_NAME} "rosidl_typesupport_cpp")
else()
rosidl_get_typesupport_target(cpp_typesupport_target ${PROJECT_NAME} "rosidl_typesupport_cpp")
Expand Down Expand Up @@ -148,7 +148,7 @@ if(BUILD_TESTING)
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
)

if(${FOUND_ROS2_DISTRO} STREQUAL "foxy")
if((${FOUND_ROS2_DISTRO} STREQUAL "foxy") OR (${FOUND_ROS2_DISTRO} STREQUAL "galactic"))
rosidl_target_interfaces(${PROJECT_NAME}_test ${PROJECT_NAME} "rosidl_typesupport_cpp")
else()
rosidl_get_typesupport_target(cpp_typesupport_target ${PROJECT_NAME} "rosidl_typesupport_cpp")
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ ROS 2 driver for Swift Navigation's GNSS/INS receivers and Starling Positioning
- [Technical Support](#technical-support)

# Features
- Designed for ROS 2 Humble but also works with ROS 2 Foxy
- Developed and tested on Ubuntu 22.04 (ROS 2 Humble) and Ubuntu 20.04 (ROS 2 Foxy) platforms
- Designed for ROS 2 Humble but also works with ROS 2 Foxy and Galactic
- Developed and tested on Ubuntu 22.04 (ROS 2 Humble) and Ubuntu 20.04 (ROS 2 Foxy/Galactic) platforms
- Supports Swift Navigation receivers and Starling Positioning Engine in Swift Binary Protocol (SBP)
- TCP Client and Serial communication interfaces
- SBP file playback
Expand Down

0 comments on commit c35c6ef

Please sign in to comment.