From: Walter Fetter Lages Date: Sun, 25 Nov 2018 20:50:06 +0000 (-0200) Subject: Update package to format 2. X-Git-Url: http://git.ece.ufrgs.br/?a=commitdiff_plain;h=263b9a11a3db3d55e54801d0f5b75a05e9ab264b;p=gazebo_ros_electrical.git Update package to format 2. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a3f59c..6b38f0c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,7 @@ add_compile_options(-std=c++11) find_package(catkin REQUIRED COMPONENTS angles control_toolbox -# gazebo + electrical_interface gazebo_ros_control hardware_interface joint_limits_interface @@ -18,7 +18,6 @@ find_package(catkin REQUIRED COMPONENTS roscpp transmission_interface urdf - electrical_interface ) ## System dependencies are found with CMake's conventions @@ -41,10 +40,10 @@ find_package(gazebo 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 ...) @@ -89,7 +88,7 @@ find_package(gazebo 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 ...) @@ -107,16 +106,15 @@ find_package(gazebo 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 ${PROJECT_NAME} - CATKIN_DEPENDS angles control_toolbox hardware_interface joint_limits_interface pluginlib roscpp transmission_interface urdf electrical_interface - # gazebo -# DEPENDS system_lib + LIBRARIES gazebo_ros_electrical + CATKIN_DEPENDS angles control_toolbox electrical_interface gazebo_ros_control hardware_interface joint_limits_interface pluginlib roscpp transmission_interface urdf + DEPENDS GAZEBO ) ########### @@ -126,8 +124,9 @@ 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 (gazebo) ${GAZEBO_INCLUDE_DIRS} ) @@ -159,6 +158,7 @@ add_library(${PROJECT_NAME} ## Specify libraries to link a library or executable target against target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} + ${GAZEBO_LIBRARIES} ) ############# @@ -190,9 +190,10 @@ install(DIRECTORY include/${PROJECT_NAME}/ ) ## Mark other files for installation (e.g. launch and bag files, etc.) -install(FILES gazebo_ros_electrical_plugins.xml +install(FILES # # myfile1 # # myfile2 + gazebo_ros_electrical_plugins.xml DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} ) diff --git a/package.xml b/package.xml index 9c26011..eb98c61 100644 --- a/package.xml +++ b/package.xml @@ -1,5 +1,5 @@ - + gazebo_ros_electrical 0.1.0 The gazebo_ros_electrical package @@ -29,20 +29,30 @@ Walter Fetter Lages - + + + + + + + + - - + + + + catkin angles control_toolbox + electrical_interface gazebo gazebo_ros_control hardware_interface @@ -51,18 +61,28 @@ roscpp transmission_interface urdf - electrical_interface - angles - control_toolbox - gazebo - gazebo_ros_control - hardware_interface - joint_limits_interface - pluginlib - roscpp - transmission_interface - urdf - electrical_interface + angles + control_toolbox + electrical_interface + gazebo + gazebo_ros_control + hardware_interface + joint_limits_interface + pluginlib + roscpp + transmission_interface + urdf + angles + control_toolbox + electrical_interface + gazebo + gazebo_ros_control + hardware_interface + joint_limits_interface + pluginlib + roscpp + transmission_interface + urdf