Skip to content
KaymanJung edited this page Nov 30, 2015 · 5 revisions

#BTR Ball Detector Refer to https://github.com/beta-robots/btr-ros-pkg/wiki/btr_ball_detector

##1. Installation ###1.1 Install library Refer to https://github.com/beta-robots/btr-libs/wiki/ball_detector

###1.2 Install ros package Get source code

$ cd %YOUR_CATKIN_WORKSPACE_HOME%/src

$ git clone https://github.com/KaymanJung/ROBOTIS-OP.git

Edit a CMakeLists.txt (If you built the library in '/home/username'.)

## Specify additional locations of header files
include_directories(/home/username/ball_detector/src ${catkin_INCLUDE_DIRS})

## Declare a cpp executable
add_executable(btr_ball_detector_node ${SRCS} src/ball_detector_main.cpp)
add_dependencies(btr_ball_detector_node ${PROJECT_NAME}_EXPORTED_TARGETS)
target_link_libraries(btr_ball_detector_node /home/username/ball_detector/lib/libball_detector.so ${catkin_LIBRARIES})

Build package

$ cd %YOUR_CATKIN_WORKSPACE_HOME%/

$ catkin_make

##2. Running the package Run launch file for OP

roslaunch btr_ball_detector ball_detector_from_op.launch
Clone this wiki locally