Skip to content

Commit

Permalink
Add spacenav-node
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias-Fischer committed Mar 31, 2021
1 parent 7c77ed7 commit 6627203
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
20 changes: 20 additions & 0 deletions patch/ros-noetic-spacenav-node.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1b1ef70..1c37fbb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,9 +11,13 @@ catkin_package(DEPENDS geometry_msgs sensor_msgs)

roslint_cpp()

+find_library(SPNAV_LIBRARY
+ NAMES spnav
+)
+
include_directories(${catkin_INCLUDE_DIRS})
add_executable(spacenav_node src/spacenav_node.cpp)
-target_link_libraries (spacenav_node spnav X11 ${catkin_LIBRARIES})
+target_link_libraries (spacenav_node ${SPNAV_LIBRARY} X11 ${catkin_LIBRARIES})

if(CATKIN_ENABLE_TESTING)
roslint_add_test()

3 changes: 2 additions & 1 deletion vinca_linux_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ packages_select_by_deps:
# TODO Linux
##
# - pybind11_catkin # Needs to be patched to use conda-forge's pybind11
- hebi_cpp_api
- spacenav_node

##
# DONE Linux
##
- hebi_cpp_api
- panda_moveit_config
- apriltag
- apriltag_ros
Expand Down

0 comments on commit 6627203

Please sign in to comment.