Skip to content

Commit

Permalink
Updated implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
warp1337 committed Jun 16, 2016
1 parent 3aae7a0 commit e25eabd
Show file tree
Hide file tree
Showing 2 changed files with 156 additions and 217 deletions.
88 changes: 7 additions & 81 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,86 +1,23 @@
cmake_minimum_required(VERSION 2.8.3)
project(ros_aruco)
PROJECT(ros_aruco)

## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS roscpp tf std_msgs sensor_msgs geometry_msgs message_generation genmsg cv_bridge image_transport)
FIND_PACKAGE(catkin REQUIRED COMPONENTS roscpp tf std_msgs sensor_msgs geometry_msgs message_generation genmsg cv_bridge image_transport)

## TODO: Make this configurable via variable
SET(CMAKE_MODULE_PATH ${ARUCO_PATH}/lib/cmake )
SET(ARUCO_INCLUDE_DIRS ${ARUCO_PATH}/include/aruco )
SET(CMAKE_MODULE_PATH ${ARUCO_PATH}/lib/cmake)
SET(ARUCO_INCLUDE_DIRS ${ARUCO_PATH}/include/aruco)

## System dependencies are found with CMake's conventions
find_package(aruco REQUIRED )
find_package(OpenCV REQUIRED )
FIND_PACKAGE(aruco REQUIRED)
FIND_PACKAGE(OpenCV REQUIRED)

INCLUDE(FindPkgConfig)

SET(ROS_BUILD_TYPE Release)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11 -march=core-avx-i -O2")

## Uncomment this if the package has a setup.py. This macro ensures
## modules and global scripts declared therein get installed
## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html
# catkin_python_setup()

#######################################
## Declare ROS messages and services ##
#######################################

## generate actions:
# add_action_files(
# DIRECTORY action
# FILES register_access.action
# )


## Generate messages in the 'msg' folder
# add_message_files(
# FILES
# joint_state.msg
# device_info.msg
# device_state.msg
# bus_state.msg
# health_state.msg
# smoothmotion_joint_target.msg
# )

## Generate services in the 'srv' folder
# add_service_files(
# FILES
# register_access.srv
# server_state.srv
# )



## Generate added messages and services with any dependencies listed here
# generate_messages(
# DEPENDENCIES
# std_msgs
# xsc3
# )

###################################
## catkin specific configuration ##
###################################
## The catkin_package macro generates cmake config files for your package
## Declare things to be passed to dependent projects
## INCLUDE_DIRS: uncomment this if you package contains header files
## LIBRARIES: libraries you create in this project that dependent projects also need
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
# catkin_package(
# INCLUDE_DIRS include
# CATKIN_DEPENDS message_runtime actionlib_msgs
# DEPENDS system_lib
# )

###########
## Build ##
###########

## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(
Expand All @@ -91,9 +28,7 @@ include_directories(
add_executable(ros_aruco
src/ros_aruco.cpp
)

## Add cmake target dependencies of the executable/library
## as an example, message headers may need to be generated before nodes

add_dependencies(ros_aruco ${catkin_EXPORTED_TARGETS})

target_link_libraries(ros_aruco
Expand All @@ -114,12 +49,3 @@ target_link_libraries(ros_aruco
#############

# TODO

## Add gtest based cpp test target and link libraries
# catkin_add_gtest(${PROJECT_NAME}-test test/test_xsc3.cpp)
# if(TARGET ${PROJECT_NAME}-test)
# target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME})
# endif()

## Add folders to be run by python nosetests
# catkin_add_nosetests(test)
Loading

0 comments on commit e25eabd

Please sign in to comment.