Skip to content

Commit

Permalink
Add sick_tim
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias-Fischer committed Apr 21, 2021
1 parent bd97e94 commit 194cbc5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions patch/ros-noetic-sick-tim.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 36cee0a..4cf01f5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,6 +11,7 @@ find_package(catkin REQUIRED
)

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

find_package(Boost REQUIRED COMPONENTS system)
@@ -23,7 +24,7 @@ catkin_package(
LIBRARIES sick_tim_3xx
INCLUDE_DIRS include)

-include_directories(include ${catkin_INCLUDE_DIRS} ${libusb_INCLUDE_DIRS})
+include_directories(include ${catkin_INCLUDE_DIRS} ${libudev_INCLUDE_DIRS} ${libusb_INCLUDE_DIRS})

add_library(sick_tim_3xx
src/sick_tim_common.cpp
@@ -33,6 +34,7 @@ add_library(sick_tim_3xx
add_dependencies(sick_tim_3xx ${PROJECT_NAME}_gencfg ${catkin_EXPORTED_TARGETS})
target_link_libraries(sick_tim_3xx
${catkin_LIBRARIES}
+ ${libudev_LIBRARIES}
${libusb_LIBRARIES})

add_executable(sick_tim310s01
1 change: 1 addition & 0 deletions vinca_linux_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ packages_select_by_deps:
##
# TODO Linux
##
- sick_tim
- kobuki_core
- sainsmart_relay_usb
# - mqtt_bridge
Expand Down

0 comments on commit 194cbc5

Please sign in to comment.