Skip to content

Commit

Permalink
Update ros-humble-ublox-dgnss-node.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias-Fischer authored Jan 20, 2024
1 parent 498e20c commit dfaf3fd
Showing 1 changed file with 13 additions and 18 deletions.
31 changes: 13 additions & 18 deletions patch/ros-humble-ublox-dgnss-node.patch
Original file line number Diff line number Diff line change
@@ -1,30 +1,25 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7e849fe..427c5cf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,6 +26,7 @@ find_package(ublox_ubx_msgs REQUIRED)
find_package(ublox_ubx_interfaces REQUIRED)
diff --git a/ublox_dgnss_node/CMakeLists.txt b/ublox_dgnss_node/CMakeLists.txt
index c136270..21d6703 100644
--- a/ublox_dgnss_node/CMakeLists.txt
+++ b/ublox_dgnss_node/CMakeLists.txt
@@ -30,6 +30,7 @@ find_package(ublox_ubx_interfaces REQUIRED)
find_package(rtcm_msgs REQUIRED)

find_package(PkgConfig REQUIRED)
+pkg_check_modules(libudev REQUIRED libudev)
pkg_check_modules(libusb REQUIRED libusb-1.0)

include_directories(include SYSTEM)
@@ -45,11 +46,14 @@ ament_target_dependencies(ublox_dgnss_components
std_msgs
@@ -50,10 +51,8 @@ ament_target_dependencies(ublox_dgnss_components
ublox_ubx_msgs
ublox_ubx_interfaces
rtcm_msgs
-)
-
-target_link_libraries(ublox_dgnss_components
- usb-1.0
+ libusb
+ libudev
)

-target_link_libraries(ublox_dgnss_components
- usb-1.0
-)
+# target_link_libraries(ublox_dgnss_components
+# ${libusb_LIBRARIES}
+# ${libudev_LIBRARIES}
+# )

rclcpp_components_register_node(ublox_dgnss_components PLUGIN "ublox_dgnss::UbloxDGNSSNode" EXECUTABLE ublox_dgnss_node)

rclcpp_components_register_node(ublox_dgnss_components

0 comments on commit dfaf3fd

Please sign in to comment.