Skip to content

Commit

Permalink
Merge pull request #21 from ipa-bnm/feature/direct_sdh_connection
Browse files Browse the repository at this point in the history
added ros node for direct sdax communication
  • Loading branch information
floweisshardt committed Mar 16, 2018
2 parents 0dbdc4e + d8c0909 commit aa5dfc1
Show file tree
Hide file tree
Showing 2 changed files with 523 additions and 2 deletions.
16 changes: 14 additions & 2 deletions cob_hand_bridge/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ find_package(catkin REQUIRED COMPONENTS
std_srvs
)

find_package(Boost REQUIRED COMPONENTS thread)
find_package(Boost REQUIRED COMPONENTS chrono system thread)

add_message_files(
FILES
Expand Down Expand Up @@ -44,12 +44,24 @@ catkin_package(
include_directories(
${Boost_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS}
client
client/src
client/pigpio
)

add_executable(${PROJECT_NAME}_node src/cob_hand_bridge_node.cpp)
target_link_libraries(${PROJECT_NAME}_node ${Boost_LIBRARIES} ${catkin_LIBRARIES})
add_dependencies(${PROJECT_NAME}_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})

add_library(cob_hand_pigpio STATIC client/pigpio/pigpio.c client/pigpio/command.c)
target_compile_definitions(cob_hand_pigpio PRIVATE DISABLE_SER_CHECK_INITED)

add_executable(cob_hand_node src/cob_hand_node.cpp)
target_link_libraries(cob_hand_node cob_hand_pigpio ${Boost_LIBRARIES} ${catkin_LIBRARIES})
add_dependencies(cob_hand_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})



### INSTALL ###
install(TARGETS ${PROJECT_NAME}_node
install(TARGETS ${PROJECT_NAME}_node cob_hand_node
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
Loading

0 comments on commit aa5dfc1

Please sign in to comment.