Port to melodic.
authorWalter Fetter Lages <w.fetter@ieee.org>
Fri, 10 May 2019 07:56:32 +0000 (04:56 -0300)
committerWalter Fetter Lages <w.fetter@ieee.org>
Fri, 10 May 2019 07:56:32 +0000 (04:56 -0300)
CMakeLists.txt
package.xml

index fc6271e..bc12257 100644 (file)
@@ -2,24 +2,24 @@ cmake_minimum_required(VERSION 2.8.3)
 project(linearizing_controllers)
 
 ## Compile as C++11, supported in ROS Kinetic and newer
-add_compile_options(-std=c++11)
+add_compile_options(-std=c++11)
 
 ## 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
+  arc_odometry
   controller_interface
   effort_controllers
-  roscpp
   geometry_msgs
+  linearizing_controllers_msgs
+  roscpp
   tf
-  arc_odometry
 )
-find_package(cmake_modules REQUIRED)
 
 ## System dependencies are found with CMake's conventions
 # find_package(Boost REQUIRED COMPONENTS system)
-find_package(Eigen REQUIRED)
+find_package(Eigen3 REQUIRED)
 
 
 ## Uncomment this if the package has a setup.py. This macro ensures
@@ -37,10 +37,10 @@ find_package(Eigen REQUIRED)
 ##   your messages/services/actions (e.g. std_msgs, actionlib_msgs, ...).
 ## * In the file package.xml:
 ##   * add a build_depend tag for "message_generation"
-##   * add a build_depend and a run_depend tag for each package in MSG_DEP_SET
+##   * add a build_depend and a exec_depend tag for each package in MSG_DEP_SET
 ##   * If MSG_DEP_SET isn't empty the following dependency has been pulled in
 ##     but can be declared for certainty nonetheless:
-##     * add a run_depend tag for "message_runtime"
+##     * add a exec_depend tag for "message_runtime"
 ## * In this file (CMakeLists.txt):
 ##   * add "message_generation" and every package in MSG_DEP_SET to
 ##     find_package(catkin REQUIRED COMPONENTS ...)
@@ -75,7 +75,7 @@ find_package(Eigen REQUIRED)
 ## Generate added messages and services with any dependencies listed here
 # generate_messages(
 #   DEPENDENCIES
-#   std_msgs  # Or other packages containing msgs
+#   geometry_msgs#   linearizing_controllers_msgs
 # )
 
 ################################################
@@ -85,7 +85,7 @@ find_package(Eigen REQUIRED)
 ## To declare and build dynamic reconfigure parameters within this
 ## package, follow these steps:
 ## * In the file package.xml:
-##   * add a build_depend and a run_depend tag for "dynamic_reconfigure"
+##   * add a build_depend and a exec_depend tag for "dynamic_reconfigure"
 ## * In this file (CMakeLists.txt):
 ##   * add "dynamic_reconfigure" to
 ##     find_package(catkin REQUIRED COMPONENTS ...)
@@ -103,15 +103,15 @@ find_package(Eigen REQUIRED)
 ###################################
 ## 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
+## INCLUDE_DIRS: uncomment this if your 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
   LIBRARIES linearizing_controllers
-  CATKIN_DEPENDS controller_interface effort_controllers geometry_msgs roscpp tf arc_odometry
-  DEPENDS Eigen
+  CATKIN_DEPENDS arc_odometry controller_interface effort_controllers geometry_msgs linearizing_controllers_msgs roscpp tf
+  DEPENDS EIGEN3
 )
 
 ###########
@@ -121,10 +121,10 @@ catkin_package(
 ## Specify additional locations of header files
 ## Your package locations should be listed before other locations
 include_directories(
- include
 include
   ${catkin_INCLUDE_DIRS}
-# TODO: Check names of system library include directories (Eigen)
-  ${Eigen_INCLUDE_DIRS}
+# TODO: Check names of system library include directories (Eigen3)
+  ${EIGEN3_INCLUDE_DIRS}
 )
 
 ## Declare a C++ library
@@ -156,7 +156,7 @@ add_dependencies(${PROJECT_NAME} ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EX
 ## Specify libraries to link a library or executable target against
 target_link_libraries(${PROJECT_NAME}
    ${catkin_LIBRARIES}
-   ${Eigen_LIBRARIES}
+#   ${Eigen3_LIBRARIES}
 )
 
 #############
@@ -174,7 +174,7 @@ target_link_libraries(${PROJECT_NAME}
 # )
 
 ## Mark executables and/or libraries for installation
-install(TARGETS ${PROJECT_NAME} ${PROJECT_NAME}
+install(TARGETS ${PROJECT_NAME}
    ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
    LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
    RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
index c742c04..5ed34fb 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
-<package>
+<package format="2">
   <name>linearizing_controllers</name>
-  <version>0.0.0</version>
+  <version>0.0.1</version>
   <description>The linearizing_controllers package</description>
 
   <!-- One maintainer tag required, multiple allowed, one person per tag -->
   <author email="fetter@ece.ufrgs.br">Walter Fetter Lages</author>
 
 
-  <!-- The *_depend tags are used to specify dependencies -->
+  <!-- The *depend tags are used to specify dependencies -->
   <!-- Dependencies can be catkin packages or system dependencies -->
   <!-- Examples: -->
+  <!-- Use depend as a shortcut for packages that are both build and exec dependencies -->
+  <!--   <depend>roscpp</depend> -->
+  <!--   Note that this is equivalent to the following: -->
+  <!--   <build_depend>roscpp</build_depend> -->
+  <!--   <exec_depend>roscpp</exec_depend> -->
   <!-- Use build_depend for packages you need at compile time: -->
   <!--   <build_depend>message_generation</build_depend> -->
+  <!-- Use build_export_depend for packages you need in order to build against this package: -->
+  <!--   <build_export_depend>message_generation</build_export_depend> -->
   <!-- Use buildtool_depend for build tool packages: -->
   <!--   <buildtool_depend>catkin</buildtool_depend> -->
-  <!-- Use run_depend for packages you need at runtime: -->
-  <!--   <run_depend>message_runtime</run_depend> -->
+  <!-- Use exec_depend for packages you need at runtime: -->
+  <!--   <exec_depend>message_runtime</exec_depend> -->
   <!-- Use test_depend for packages you need only for testing: -->
   <!--   <test_depend>gtest</test_depend> -->
+  <!-- Use doc_depend for packages you need only for building documentation: -->
+  <!--   <doc_depend>doxygen</doc_depend> -->
   <buildtool_depend>catkin</buildtool_depend>
-  <build_depend>Eigen</build_depend>
+  <build_depend>Eigen3</build_depend>
+  <build_depend>arc_odometry</build_depend>
   <build_depend>controller_interface</build_depend>
   <build_depend>effort_controllers</build_depend>
   <build_depend>geometry_msgs</build_depend>
-  <build_depend>tf</build_depend>
-  <build_depend>arc_odometry</build_depend>
   <build_depend>linearizing_controllers_msgs</build_depend>
   <build_depend>roscpp</build_depend>
-  <run_depend>Eigen</run_depend>
-  <run_depend>controller_interface</run_depend>
-  <run_depend>effort_controllers</run_depend>
-  <run_depend>geometry_msgs</run_depend>
-  <run_depend>tf</run_depend>
-  <run_depend>arc_odometry</run_depend>
-  <run_depend>linearizing_controllers_msgs</run_depend>
-  <run_depend>roscpp</run_depend>
+  <build_depend>tf</build_depend>
+  <build_export_depend>Eigen3</build_export_depend>
+  <build_export_depend>arc_odometry</build_export_depend>
+  <build_export_depend>controller_interface</build_export_depend>
+  <build_export_depend>effort_controllers</build_export_depend>
+  <build_export_depend>geometry_msgs</build_export_depend>
+  <build_export_depend>linearizing_controllers_msgs</build_export_depend>
+  <build_export_depend>roscpp</build_export_depend>
+  <build_export_depend>tf</build_export_depend>
+  <exec_depend>Eigen3</exec_depend>
+  <exec_depend>arc_odometry</exec_depend>
+  <exec_depend>controller_interface</exec_depend>
+  <exec_depend>effort_controllers</exec_depend>
+  <exec_depend>geometry_msgs</exec_depend>
+  <exec_depend>linearizing_controllers_msgs</exec_depend>
+  <exec_depend>roscpp</exec_depend>
+  <exec_depend>tf</exec_depend>
 
 
   <!-- The export tag contains other, unspecified, tags -->
   <export>
     <!-- Other tools can request additional information be placed here -->
-    <controller_interface plugin="${prefix}/linearizing_controllers_plugins.xml"/>
+
+       <controller_interface plugin="${prefix}/linearizing_controllers_plugins.xml" />
+
   </export>
 </package>