Primo commit Completo
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
set(jog_msgs_MESSAGE_FILES "msg/JogFrame.msg;msg/JogJoint.msg")
|
||||
set(jog_msgs_SERVICE_FILES "")
|
||||
@@ -0,0 +1,4 @@
|
||||
# generated from genmsg/cmake/pkg-msg-paths.cmake.installspace.in
|
||||
|
||||
_prepend_path("${jog_msgs_DIR}/.." "msg" jog_msgs_MSG_INCLUDE_DIRS UNIQUE)
|
||||
set(jog_msgs_MSG_DEPENDENCIES std_msgs;geometry_msgs)
|
||||
@@ -0,0 +1,8 @@
|
||||
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/install
|
||||
|
||||
Name: jog_msgs
|
||||
Description: Description of jog_msgs
|
||||
Version: 0.0.0
|
||||
Cflags: -I/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/install/include
|
||||
Libs: -L/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/install/lib
|
||||
Requires: message_runtime std_msgs geometry_msgs
|
||||
@@ -0,0 +1,14 @@
|
||||
# generated from catkin/cmake/template/pkgConfig-version.cmake.in
|
||||
set(PACKAGE_VERSION "0.0.0")
|
||||
|
||||
set(PACKAGE_VERSION_EXACT False)
|
||||
set(PACKAGE_VERSION_COMPATIBLE False)
|
||||
|
||||
if("${PACKAGE_FIND_VERSION}" VERSION_EQUAL "${PACKAGE_VERSION}")
|
||||
set(PACKAGE_VERSION_EXACT True)
|
||||
set(PACKAGE_VERSION_COMPATIBLE True)
|
||||
endif()
|
||||
|
||||
if("${PACKAGE_FIND_VERSION}" VERSION_LESS "${PACKAGE_VERSION}")
|
||||
set(PACKAGE_VERSION_COMPATIBLE True)
|
||||
endif()
|
||||
@@ -0,0 +1,200 @@
|
||||
# generated from catkin/cmake/template/pkgConfig.cmake.in
|
||||
|
||||
# append elements to a list and remove existing duplicates from the list
|
||||
# copied from catkin/cmake/list_append_deduplicate.cmake to keep pkgConfig
|
||||
# self contained
|
||||
macro(_list_append_deduplicate listname)
|
||||
if(NOT "${ARGN}" STREQUAL "")
|
||||
if(${listname})
|
||||
list(REMOVE_ITEM ${listname} ${ARGN})
|
||||
endif()
|
||||
list(APPEND ${listname} ${ARGN})
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
# append elements to a list if they are not already in the list
|
||||
# copied from catkin/cmake/list_append_unique.cmake to keep pkgConfig
|
||||
# self contained
|
||||
macro(_list_append_unique listname)
|
||||
foreach(_item ${ARGN})
|
||||
list(FIND ${listname} ${_item} _index)
|
||||
if(_index EQUAL -1)
|
||||
list(APPEND ${listname} ${_item})
|
||||
endif()
|
||||
endforeach()
|
||||
endmacro()
|
||||
|
||||
# pack a list of libraries with optional build configuration keywords
|
||||
# copied from catkin/cmake/catkin_libraries.cmake to keep pkgConfig
|
||||
# self contained
|
||||
macro(_pack_libraries_with_build_configuration VAR)
|
||||
set(${VAR} "")
|
||||
set(_argn ${ARGN})
|
||||
list(LENGTH _argn _count)
|
||||
set(_index 0)
|
||||
while(${_index} LESS ${_count})
|
||||
list(GET _argn ${_index} lib)
|
||||
if("${lib}" MATCHES "^(debug|optimized|general)$")
|
||||
math(EXPR _index "${_index} + 1")
|
||||
if(${_index} EQUAL ${_count})
|
||||
message(FATAL_ERROR "_pack_libraries_with_build_configuration() the list of libraries '${ARGN}' ends with '${lib}' which is a build configuration keyword and must be followed by a library")
|
||||
endif()
|
||||
list(GET _argn ${_index} library)
|
||||
list(APPEND ${VAR} "${lib}${CATKIN_BUILD_CONFIGURATION_KEYWORD_SEPARATOR}${library}")
|
||||
else()
|
||||
list(APPEND ${VAR} "${lib}")
|
||||
endif()
|
||||
math(EXPR _index "${_index} + 1")
|
||||
endwhile()
|
||||
endmacro()
|
||||
|
||||
# unpack a list of libraries with optional build configuration keyword prefixes
|
||||
# copied from catkin/cmake/catkin_libraries.cmake to keep pkgConfig
|
||||
# self contained
|
||||
macro(_unpack_libraries_with_build_configuration VAR)
|
||||
set(${VAR} "")
|
||||
foreach(lib ${ARGN})
|
||||
string(REGEX REPLACE "^(debug|optimized|general)${CATKIN_BUILD_CONFIGURATION_KEYWORD_SEPARATOR}(.+)$" "\\1;\\2" lib "${lib}")
|
||||
list(APPEND ${VAR} "${lib}")
|
||||
endforeach()
|
||||
endmacro()
|
||||
|
||||
|
||||
if(jog_msgs_CONFIG_INCLUDED)
|
||||
return()
|
||||
endif()
|
||||
set(jog_msgs_CONFIG_INCLUDED TRUE)
|
||||
|
||||
# set variables for source/devel/install prefixes
|
||||
if("FALSE" STREQUAL "TRUE")
|
||||
set(jog_msgs_SOURCE_PREFIX /home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src/jog_arm/jog_msgs)
|
||||
set(jog_msgs_DEVEL_PREFIX /home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel)
|
||||
set(jog_msgs_INSTALL_PREFIX "")
|
||||
set(jog_msgs_PREFIX ${jog_msgs_DEVEL_PREFIX})
|
||||
else()
|
||||
set(jog_msgs_SOURCE_PREFIX "")
|
||||
set(jog_msgs_DEVEL_PREFIX "")
|
||||
set(jog_msgs_INSTALL_PREFIX /home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/install)
|
||||
set(jog_msgs_PREFIX ${jog_msgs_INSTALL_PREFIX})
|
||||
endif()
|
||||
|
||||
# warn when using a deprecated package
|
||||
if(NOT "" STREQUAL "")
|
||||
set(_msg "WARNING: package 'jog_msgs' is deprecated")
|
||||
# append custom deprecation text if available
|
||||
if(NOT "" STREQUAL "TRUE")
|
||||
set(_msg "${_msg} ()")
|
||||
endif()
|
||||
message("${_msg}")
|
||||
endif()
|
||||
|
||||
# flag project as catkin-based to distinguish if a find_package()-ed project is a catkin project
|
||||
set(jog_msgs_FOUND_CATKIN_PROJECT TRUE)
|
||||
|
||||
if(NOT "include " STREQUAL " ")
|
||||
set(jog_msgs_INCLUDE_DIRS "")
|
||||
set(_include_dirs "include")
|
||||
if(NOT " " STREQUAL " ")
|
||||
set(_report "Check the issue tracker '' and consider creating a ticket if the problem has not been reported yet.")
|
||||
elseif(NOT " " STREQUAL " ")
|
||||
set(_report "Check the website '' for information and consider reporting the problem.")
|
||||
else()
|
||||
set(_report "Report the problem to the maintainer 'Tokyo Opensource Robotics Kyokai(TORK) Developer Team <dev@opensource-robotics.tokyo.jp>' and request to fix the problem.")
|
||||
endif()
|
||||
foreach(idir ${_include_dirs})
|
||||
if(IS_ABSOLUTE ${idir} AND IS_DIRECTORY ${idir})
|
||||
set(include ${idir})
|
||||
elseif("${idir} " STREQUAL "include ")
|
||||
get_filename_component(include "${jog_msgs_DIR}/../../../include" ABSOLUTE)
|
||||
if(NOT IS_DIRECTORY ${include})
|
||||
message(FATAL_ERROR "Project 'jog_msgs' specifies '${idir}' as an include dir, which is not found. It does not exist in '${include}'. ${_report}")
|
||||
endif()
|
||||
else()
|
||||
message(FATAL_ERROR "Project 'jog_msgs' specifies '${idir}' as an include dir, which is not found. It does neither exist as an absolute directory nor in '/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/install/${idir}'. ${_report}")
|
||||
endif()
|
||||
_list_append_unique(jog_msgs_INCLUDE_DIRS ${include})
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
set(libraries "")
|
||||
foreach(library ${libraries})
|
||||
# keep build configuration keywords, target names and absolute libraries as-is
|
||||
if("${library}" MATCHES "^(debug|optimized|general)$")
|
||||
list(APPEND jog_msgs_LIBRARIES ${library})
|
||||
elseif(${library} MATCHES "^-l")
|
||||
list(APPEND jog_msgs_LIBRARIES ${library})
|
||||
elseif(TARGET ${library})
|
||||
list(APPEND jog_msgs_LIBRARIES ${library})
|
||||
elseif(IS_ABSOLUTE ${library})
|
||||
list(APPEND jog_msgs_LIBRARIES ${library})
|
||||
else()
|
||||
set(lib_path "")
|
||||
set(lib "${library}-NOTFOUND")
|
||||
# since the path where the library is found is returned we have to iterate over the paths manually
|
||||
foreach(path /home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/install/lib;/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/lib;/opt/ros/kinetic/lib)
|
||||
find_library(lib ${library}
|
||||
PATHS ${path}
|
||||
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
|
||||
if(lib)
|
||||
set(lib_path ${path})
|
||||
break()
|
||||
endif()
|
||||
endforeach()
|
||||
if(lib)
|
||||
_list_append_unique(jog_msgs_LIBRARY_DIRS ${lib_path})
|
||||
list(APPEND jog_msgs_LIBRARIES ${lib})
|
||||
else()
|
||||
# as a fall back for non-catkin libraries try to search globally
|
||||
find_library(lib ${library})
|
||||
if(NOT lib)
|
||||
message(FATAL_ERROR "Project '${PROJECT_NAME}' tried to find library '${library}'. The library is neither a target nor built/installed properly. Did you compile project 'jog_msgs'? Did you find_package() it before the subdirectory containing its code is included?")
|
||||
endif()
|
||||
list(APPEND jog_msgs_LIBRARIES ${lib})
|
||||
endif()
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
set(jog_msgs_EXPORTED_TARGETS "jog_msgs_generate_messages_cpp;jog_msgs_generate_messages_eus;jog_msgs_generate_messages_lisp;jog_msgs_generate_messages_nodejs;jog_msgs_generate_messages_py")
|
||||
# create dummy targets for exported code generation targets to make life of users easier
|
||||
foreach(t ${jog_msgs_EXPORTED_TARGETS})
|
||||
if(NOT TARGET ${t})
|
||||
add_custom_target(${t})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
set(depends "message_runtime;std_msgs;geometry_msgs")
|
||||
foreach(depend ${depends})
|
||||
string(REPLACE " " ";" depend_list ${depend})
|
||||
# the package name of the dependency must be kept in a unique variable so that it is not overwritten in recursive calls
|
||||
list(GET depend_list 0 jog_msgs_dep)
|
||||
list(LENGTH depend_list count)
|
||||
if(${count} EQUAL 1)
|
||||
# simple dependencies must only be find_package()-ed once
|
||||
if(NOT ${jog_msgs_dep}_FOUND)
|
||||
find_package(${jog_msgs_dep} REQUIRED NO_MODULE)
|
||||
endif()
|
||||
else()
|
||||
# dependencies with components must be find_package()-ed again
|
||||
list(REMOVE_AT depend_list 0)
|
||||
find_package(${jog_msgs_dep} REQUIRED NO_MODULE ${depend_list})
|
||||
endif()
|
||||
_list_append_unique(jog_msgs_INCLUDE_DIRS ${${jog_msgs_dep}_INCLUDE_DIRS})
|
||||
|
||||
# merge build configuration keywords with library names to correctly deduplicate
|
||||
_pack_libraries_with_build_configuration(jog_msgs_LIBRARIES ${jog_msgs_LIBRARIES})
|
||||
_pack_libraries_with_build_configuration(_libraries ${${jog_msgs_dep}_LIBRARIES})
|
||||
_list_append_deduplicate(jog_msgs_LIBRARIES ${_libraries})
|
||||
# undo build configuration keyword merging after deduplication
|
||||
_unpack_libraries_with_build_configuration(jog_msgs_LIBRARIES ${jog_msgs_LIBRARIES})
|
||||
|
||||
_list_append_unique(jog_msgs_LIBRARY_DIRS ${${jog_msgs_dep}_LIBRARY_DIRS})
|
||||
list(APPEND jog_msgs_EXPORTED_TARGETS ${${jog_msgs_dep}_EXPORTED_TARGETS})
|
||||
endforeach()
|
||||
|
||||
set(pkg_cfg_extras "jog_msgs-msg-extras.cmake")
|
||||
foreach(extra ${pkg_cfg_extras})
|
||||
if(NOT IS_ABSOLUTE ${extra})
|
||||
set(extra ${jog_msgs_DIR}/${extra})
|
||||
endif()
|
||||
include(${extra})
|
||||
endforeach()
|
||||
@@ -0,0 +1,2 @@
|
||||
set(jog_msgs_MESSAGE_FILES "/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src/jog_arm/jog_msgs/msg/JogFrame.msg;/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src/jog_arm/jog_msgs/msg/JogJoint.msg")
|
||||
set(jog_msgs_SERVICE_FILES "")
|
||||
@@ -0,0 +1,2 @@
|
||||
set(jog_msgs_MESSAGE_FILES "msg/JogFrame.msg;msg/JogJoint.msg")
|
||||
set(jog_msgs_SERVICE_FILES "")
|
||||
@@ -0,0 +1 @@
|
||||
set(ORDERED_PATHS "/opt/ros/kinetic/lib")
|
||||
16
build/jog_arm/jog_msgs/catkin_generated/package.cmake
Normal file
16
build/jog_arm/jog_msgs/catkin_generated/package.cmake
Normal file
@@ -0,0 +1,16 @@
|
||||
set(_CATKIN_CURRENT_PACKAGE "jog_msgs")
|
||||
set(jog_msgs_VERSION "0.0.0")
|
||||
set(jog_msgs_MAINTAINER "Tokyo Opensource Robotics Kyokai(TORK) Developer Team <dev@opensource-robotics.tokyo.jp>")
|
||||
set(jog_msgs_PACKAGE_FORMAT "2")
|
||||
set(jog_msgs_BUILD_DEPENDS "message_generation" "std_msgs" "geometry_msgs")
|
||||
set(jog_msgs_BUILD_EXPORT_DEPENDS "std_msgs" "geometry_msgs")
|
||||
set(jog_msgs_BUILDTOOL_DEPENDS "catkin")
|
||||
set(jog_msgs_BUILDTOOL_EXPORT_DEPENDS )
|
||||
set(jog_msgs_EXEC_DEPENDS "message_runtime" "std_msgs" "geometry_msgs")
|
||||
set(jog_msgs_RUN_DEPENDS "message_runtime" "std_msgs" "geometry_msgs")
|
||||
set(jog_msgs_TEST_DEPENDS )
|
||||
set(jog_msgs_DOC_DEPENDS )
|
||||
set(jog_msgs_URL_WEBSITE "")
|
||||
set(jog_msgs_URL_BUGTRACKER "")
|
||||
set(jog_msgs_URL_REPOSITORY "")
|
||||
set(jog_msgs_DEPRECATED "")
|
||||
@@ -0,0 +1,8 @@
|
||||
# generated from catkin/cmake/template/pkg.context.pc.in
|
||||
CATKIN_PACKAGE_PREFIX = ""
|
||||
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/include".split(';') if "/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/include" != "" else []
|
||||
PROJECT_CATKIN_DEPENDS = "message_runtime;std_msgs;geometry_msgs".replace(';', ' ')
|
||||
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
|
||||
PROJECT_NAME = "jog_msgs"
|
||||
PROJECT_SPACE_DIR = "/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel"
|
||||
PROJECT_VERSION = "0.0.0"
|
||||
@@ -0,0 +1,8 @@
|
||||
# generated from catkin/cmake/template/pkg.context.pc.in
|
||||
CATKIN_PACKAGE_PREFIX = ""
|
||||
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/install/include".split(';') if "/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/install/include" != "" else []
|
||||
PROJECT_CATKIN_DEPENDS = "message_runtime;std_msgs;geometry_msgs".replace(';', ' ')
|
||||
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
|
||||
PROJECT_NAME = "jog_msgs"
|
||||
PROJECT_SPACE_DIR = "/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/install"
|
||||
PROJECT_VERSION = "0.0.0"
|
||||
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0"?>
|
||||
<package format="2">
|
||||
<name>jog_msgs</name>
|
||||
<version>0.0.0</version>
|
||||
<description>The jog_msgs package</description>
|
||||
|
||||
<maintainer email="dev@opensource-robotics.tokyo.jp">Tokyo Opensource Robotics Kyokai(TORK) Developer Team</maintainer>
|
||||
|
||||
<license>Apache License 2.0</license>
|
||||
|
||||
<!-- <url type="website">http://wiki.ros.org/jog_msgs</url> -->
|
||||
<author email="ryosuke.tajima@opensource-robotics.tokyo.jp">Ryosuke Tajima</author>
|
||||
|
||||
<buildtool_depend>catkin</buildtool_depend>
|
||||
<build_depend>message_generation</build_depend>
|
||||
<depend>std_msgs</depend>
|
||||
<depend>geometry_msgs</depend>
|
||||
<exec_depend>message_runtime</exec_depend>
|
||||
|
||||
<export>
|
||||
<architecture_independent/>
|
||||
</export>
|
||||
</package>
|
||||
@@ -0,0 +1,166 @@
|
||||
# generated from genmsg/cmake/pkg-genmsg.cmake.em
|
||||
|
||||
@{
|
||||
import os
|
||||
import sys
|
||||
|
||||
import genmsg
|
||||
import genmsg.base
|
||||
genmsg.base.log_verbose('GENMSG_VERBOSE' in os.environ)
|
||||
import genmsg.deps
|
||||
import genmsg.gentools
|
||||
|
||||
# split incoming variables
|
||||
messages = messages_str.split(';') if messages_str != '' else []
|
||||
services = services_str.split(';') if services_str != '' else []
|
||||
dependencies = dependencies_str.split(';') if dependencies_str != '' else []
|
||||
dep_search_paths = dep_include_paths_str.split(';') if dep_include_paths_str != '' else []
|
||||
|
||||
dep_search_paths_dict = {}
|
||||
dep_search_paths_tuple_list = []
|
||||
is_even = True
|
||||
for val in dep_search_paths:
|
||||
if is_even:
|
||||
dep_search_paths_dict.setdefault(val, [])
|
||||
val_prev = val
|
||||
is_even = False
|
||||
else:
|
||||
dep_search_paths_dict[val_prev].append(val)
|
||||
dep_search_paths_tuple_list.append((val_prev, val))
|
||||
is_even = True
|
||||
dep_search_paths = dep_search_paths_dict
|
||||
|
||||
if not messages and not services:
|
||||
print('message(WARNING "Invoking generate_messages() without having added any message or service file before.\nYou should either add add_message_files() and/or add_service_files() calls or remove the invocation of generate_messages().")')
|
||||
|
||||
msg_deps = {}
|
||||
msg_dep_types = {}
|
||||
for m in messages:
|
||||
try:
|
||||
_deps = genmsg.deps.find_msg_dependencies_with_type(pkg_name, m, dep_search_paths)
|
||||
msg_deps[m] = [d[1] for d in _deps]
|
||||
msg_dep_types[m] = [d[0] for d in _deps]
|
||||
except genmsg.MsgNotFound as e:
|
||||
print('message(FATAL_ERROR "Could not find messages which \'%s\' depends on. Did you forget to specify generate_messages(DEPENDENCIES ...)?\n%s")' % (m, str(e).replace('"', '\\"')))
|
||||
|
||||
srv_deps = {}
|
||||
srv_dep_types = {}
|
||||
for s in services:
|
||||
try:
|
||||
_deps = genmsg.deps.find_srv_dependencies_with_type(pkg_name, s, dep_search_paths)
|
||||
srv_deps[s] = [d[1] for d in _deps]
|
||||
srv_dep_types[s] = [d[0] for d in _deps]
|
||||
except genmsg.MsgNotFound as e:
|
||||
print('message(FATAL_ERROR "Could not find messages which \'%s\' depends on. Did you forget to specify generate_messages(DEPENDENCIES ...)?\n%s")' % (s, str(e).replace('"', '\\"')))
|
||||
|
||||
}@
|
||||
message(STATUS "@(pkg_name): @(len(messages)) messages, @(len(services)) services")
|
||||
|
||||
set(MSG_I_FLAGS "@(';'.join(["-I%s:%s" % (dep, dir) for dep, dir in dep_search_paths_tuple_list]))")
|
||||
|
||||
# Find all generators
|
||||
@[if langs]@
|
||||
@[for l in langs.split(';')]@
|
||||
find_package(@l REQUIRED)
|
||||
@[end for]@
|
||||
@[end if]@
|
||||
|
||||
add_custom_target(@(pkg_name)_generate_messages ALL)
|
||||
|
||||
# verify that message/service dependencies have not changed since configure
|
||||
@{all_deps = dict(list(msg_deps.items()) + list(srv_deps.items()))}
|
||||
@{all_dep_types = dict(list(msg_dep_types.items()) + list(srv_dep_types.items()))}
|
||||
@[for f in all_deps.keys()]@
|
||||
@{dep_types = ':'.join(all_dep_types[f]).replace('\\','/')}
|
||||
get_filename_component(_filename "@(f)" NAME_WE)
|
||||
add_custom_target(_@(pkg_name)_generate_messages_check_deps_${_filename}
|
||||
COMMAND ${CATKIN_ENV} ${PYTHON_EXECUTABLE} ${GENMSG_CHECK_DEPS_SCRIPT} "@(pkg_name)" "@(f)" "@(dep_types)"
|
||||
)
|
||||
@[end for]@# messages and services
|
||||
|
||||
#
|
||||
# langs = @langs
|
||||
#
|
||||
|
||||
@[if langs]@
|
||||
@[for l in langs.split(';')]@
|
||||
### Section generating for lang: @l
|
||||
### Generating Messages
|
||||
@[for m in msg_deps.keys()]@
|
||||
_generate_msg_@(l[3:])(@pkg_name
|
||||
"@m"
|
||||
"${MSG_I_FLAGS}"
|
||||
"@(';'.join(msg_deps[m]).replace("\\","/"))"
|
||||
${CATKIN_DEVEL_PREFIX}/${@(l)_INSTALL_DIR}/@pkg_name
|
||||
)
|
||||
@[end for]@# messages
|
||||
|
||||
### Generating Services
|
||||
@[for s in srv_deps.keys()]@
|
||||
_generate_srv_@(l[3:])(@pkg_name
|
||||
"@s"
|
||||
"${MSG_I_FLAGS}"
|
||||
"@(';'.join(srv_deps[s]).replace("\\","/"))"
|
||||
${CATKIN_DEVEL_PREFIX}/${@(l)_INSTALL_DIR}/@pkg_name
|
||||
)
|
||||
@[end for]@# services
|
||||
|
||||
### Generating Module File
|
||||
_generate_module_@(l[3:])(@pkg_name
|
||||
${CATKIN_DEVEL_PREFIX}/${@(l)_INSTALL_DIR}/@pkg_name
|
||||
"${ALL_GEN_OUTPUT_FILES_@(l[3:])}"
|
||||
)
|
||||
|
||||
add_custom_target(@(pkg_name)_generate_messages_@(l[3:])
|
||||
DEPENDS ${ALL_GEN_OUTPUT_FILES_@(l[3:])}
|
||||
)
|
||||
add_dependencies(@(pkg_name)_generate_messages @(pkg_name)_generate_messages_@(l[3:]))
|
||||
|
||||
# add dependencies to all check dependencies targets
|
||||
@[for f in all_deps.keys()]@
|
||||
get_filename_component(_filename "@(f)" NAME_WE)
|
||||
add_dependencies(@(pkg_name)_generate_messages_@(l[3:]) _@(pkg_name)_generate_messages_check_deps_${_filename})
|
||||
@[end for]@# messages and services
|
||||
|
||||
# target for backward compatibility
|
||||
add_custom_target(@(pkg_name)_@(l))
|
||||
add_dependencies(@(pkg_name)_@(l) @(pkg_name)_generate_messages_@(l[3:]))
|
||||
|
||||
# register target for catkin_package(EXPORTED_TARGETS)
|
||||
list(APPEND ${PROJECT_NAME}_EXPORTED_TARGETS @(pkg_name)_generate_messages_@(l[3:]))
|
||||
|
||||
@[end for]@# langs
|
||||
@[end if]@
|
||||
|
||||
@[if langs]@
|
||||
@[for l in langs.split(';')]@
|
||||
|
||||
if(@(l)_INSTALL_DIR AND EXISTS ${CATKIN_DEVEL_PREFIX}/${@(l)_INSTALL_DIR}/@pkg_name)
|
||||
@[if l == 'genpy']@
|
||||
install(CODE "execute_process(COMMAND \"@(PYTHON_EXECUTABLE)\" -m compileall \"${CATKIN_DEVEL_PREFIX}/${@(l)_INSTALL_DIR}/@pkg_name\")")
|
||||
@[end if]@
|
||||
# install generated code
|
||||
install(
|
||||
DIRECTORY ${CATKIN_DEVEL_PREFIX}/${@(l)_INSTALL_DIR}/@pkg_name
|
||||
DESTINATION ${@(l)_INSTALL_DIR}
|
||||
@[if l == 'genpy' and package_has_static_sources]@
|
||||
# skip all init files
|
||||
PATTERN "__init__.py" EXCLUDE
|
||||
PATTERN "__init__.pyc" EXCLUDE
|
||||
)
|
||||
# install init files which are not in the root folder of the generated code
|
||||
install(
|
||||
DIRECTORY ${CATKIN_DEVEL_PREFIX}/${@(l)_INSTALL_DIR}/@pkg_name
|
||||
DESTINATION ${@(l)_INSTALL_DIR}
|
||||
FILES_MATCHING
|
||||
REGEX "${CATKIN_DEVEL_PREFIX}/${@(l)_INSTALL_DIR}/@(pkg_name)/.+/__init__.pyc?$"
|
||||
@[end if]@
|
||||
)
|
||||
endif()
|
||||
@[for d in dependencies]@
|
||||
if(TARGET @(d)_generate_messages_@(l[3:]))
|
||||
add_dependencies(@(pkg_name)_generate_messages_@(l[3:]) @(d)_generate_messages_@(l[3:]))
|
||||
endif()
|
||||
@[end for]@# dependencies
|
||||
@[end for]@# langs
|
||||
@[end if]@
|
||||
@@ -0,0 +1,8 @@
|
||||
prefix=@PROJECT_SPACE_DIR
|
||||
|
||||
Name: @(CATKIN_PACKAGE_PREFIX + PROJECT_NAME)
|
||||
Description: Description of @PROJECT_NAME
|
||||
Version: @PROJECT_VERSION
|
||||
Cflags: @(' '.join(['-I%s' % include for include in PROJECT_PKG_CONFIG_INCLUDE_DIRS]))
|
||||
Libs: -L@PROJECT_SPACE_DIR/lib @(' '.join(PKG_CONFIG_LIBRARIES_WITH_PREFIX))
|
||||
Requires: @(PROJECT_CATKIN_DEPENDS)
|
||||
Reference in New Issue
Block a user