-cmake_minimum_required(VERSION 2.8.3)
+cmake_minimum_required(VERSION 3.0.2)
project(bno055_driver)
## Compile as C++11, supported in ROS Kinetic and newer
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
- roscpp
+# bno055
eigen_conversions
geometry_msgs
+ roscpp
sensor_msgs
)
## System dependencies are found with CMake's conventions
# find_package(Boost REQUIRED COMPONENTS system)
-#find_package(bno055 REQUIRED)
find_package(Eigen3 REQUIRED)
add_library(bno055 STATIC IMPORTED) # or STATIC instead of SHARED
## Generate added messages and services with any dependencies listed here
# generate_messages(
# DEPENDENCIES
-# geometry_msgs
-# sensor_msgs
-# eigen_conversions
+# geometry_msgs# sensor_msgs
# )
################################################
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES bno055_driver
-# CATKIN_DEPENDS roscpp geometry_msgs sensor_msgs eigen_conversions
-# DEPENDS bno055 Eigen3
+# CATKIN_DEPENDS bno055 eigen_conversions geometry_msgs roscpp sensor_msgs
+# DEPENDS Eigen3
)
###########
include_directories(
# include
${catkin_INCLUDE_DIRS}
-# TODO: Check names of system library include directories (bno055, Eigen3)
-# ${bno055_INCLUDE_DIRS}
+# TODO: Check names of system library include directories (Eigen3)
${EIGEN3_INCLUDE_DIRS}
)
## Specify libraries to link a library or executable target against
target_link_libraries(bno055_node
${catkin_LIBRARIES}
-# ${bno055_LIBRARIES}
+# ${Eigen3_LIBRARIES}
bno055ifc
bno055
)
## Mark executable scripts (Python etc.) for installation
## in contrast to setup.py, you can choose the destination
-# install(PROGRAMS
+# catkin_install_python(PROGRAMS
# scripts/my_python_script
# DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
# )
-## Mark executables and/or libraries for installation
-# install(TARGETS ${PROJECT_NAME} ${PROJECT_NAME}_node
+## Mark executables for installation
+## See http://docs.ros.org/melodic/api/catkin/html/howto/format1/building_executables.html
+# install(TARGETS ${PROJECT_NAME}_node
+# RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
+# )
+
+## Mark libraries for installation
+## See http://docs.ros.org/melodic/api/catkin/html/howto/format1/building_libraries.html
+# install(TARGETS ${PROJECT_NAME}
# ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
# LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
-# RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
+# RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
# )
## Mark cpp header files for installation
<?xml version="1.0"?>
<package format="2">
<name>bno055_driver</name>
- <version>0.0.0</version>
+ <version>0.1.0</version>
<description>The bno055_driver package</description>
<!-- One maintainer tag required, multiple allowed, one person per tag -->
<!-- Authors do not have to be maintainers, but could be -->
<!-- Example: -->
<!-- <author email="jane.doe@example.com">Jane Doe</author> -->
- <author email="fetter@ece.ufrgs.br">Walter Fetter Lages</author>
+ <author email="fetter@ece.ufrgs.br">Walter Feter Lages</author>
<!-- The *depend tags are used to specify dependencies -->
<!-- Use doc_depend for packages you need only for building documentation: -->
<!-- <doc_depend>doxygen</doc_depend> -->
<buildtool_depend>catkin</buildtool_depend>
+ <build_depend>Eigen3</build_depend>
<build_depend>bno055</build_depend>
- <build_depend>roscpp</build_depend>
+ <build_depend>eigen_conversions</build_depend>
<build_depend>geometry_msgs</build_depend>
+ <build_depend>roscpp</build_depend>
<build_depend>sensor_msgs</build_depend>
- <build_depend>eigen_conversions</build_depend>
+ <build_export_depend>Eigen3</build_export_depend>
<build_export_depend>bno055</build_export_depend>
- <build_export_depend>roscpp</build_export_depend>
+ <build_export_depend>eigen_conversions</build_export_depend>
<build_export_depend>geometry_msgs</build_export_depend>
+ <build_export_depend>roscpp</build_export_depend>
<build_export_depend>sensor_msgs</build_export_depend>
- <build_export_depend>eigen_conversions</build_export_depend>
+ <exec_depend>Eigen3</exec_depend>
<exec_depend>bno055</exec_depend>
- <exec_depend>roscpp</exec_depend>
+ <exec_depend>eigen_conversions</exec_depend>
<exec_depend>geometry_msgs</exec_depend>
+ <exec_depend>roscpp</exec_depend>
<exec_depend>sensor_msgs</exec_depend>
- <exec_depend>eigen_conversions</exec_depend>
<!-- The export tag contains other, unspecified, tags -->