Primo commit Completo
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
set(ur_msgs_MESSAGE_FILES "msg/Analog.msg;msg/Digital.msg;msg/IOStates.msg;msg/RobotStateRTMsg.msg;msg/MasterboardDataMsg.msg;msg/RobotModeDataMsg.msg;msg/ToolDataMsg.msg")
|
||||
set(ur_msgs_SERVICE_FILES "srv/SetPayload.srv;srv/SetIO.srv")
|
||||
@@ -0,0 +1,4 @@
|
||||
# generated from genmsg/cmake/pkg-msg-paths.cmake.installspace.in
|
||||
|
||||
_prepend_path("${ur_msgs_DIR}/.." "msg" ur_msgs_MSG_INCLUDE_DIRS UNIQUE)
|
||||
set(ur_msgs_MSG_DEPENDENCIES std_msgs)
|
||||
@@ -0,0 +1,8 @@
|
||||
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/install
|
||||
|
||||
Name: ur_msgs
|
||||
Description: Description of ur_msgs
|
||||
Version: 1.2.5
|
||||
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
|
||||
@@ -0,0 +1,14 @@
|
||||
# generated from catkin/cmake/template/pkgConfig-version.cmake.in
|
||||
set(PACKAGE_VERSION "1.2.5")
|
||||
|
||||
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(ur_msgs_CONFIG_INCLUDED)
|
||||
return()
|
||||
endif()
|
||||
set(ur_msgs_CONFIG_INCLUDED TRUE)
|
||||
|
||||
# set variables for source/devel/install prefixes
|
||||
if("FALSE" STREQUAL "TRUE")
|
||||
set(ur_msgs_SOURCE_PREFIX /home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src/universal_robot/ur_msgs)
|
||||
set(ur_msgs_DEVEL_PREFIX /home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel)
|
||||
set(ur_msgs_INSTALL_PREFIX "")
|
||||
set(ur_msgs_PREFIX ${ur_msgs_DEVEL_PREFIX})
|
||||
else()
|
||||
set(ur_msgs_SOURCE_PREFIX "")
|
||||
set(ur_msgs_DEVEL_PREFIX "")
|
||||
set(ur_msgs_INSTALL_PREFIX /home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/install)
|
||||
set(ur_msgs_PREFIX ${ur_msgs_INSTALL_PREFIX})
|
||||
endif()
|
||||
|
||||
# warn when using a deprecated package
|
||||
if(NOT "" STREQUAL "")
|
||||
set(_msg "WARNING: package 'ur_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(ur_msgs_FOUND_CATKIN_PROJECT TRUE)
|
||||
|
||||
if(NOT "include " STREQUAL " ")
|
||||
set(ur_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 'G.A. vd. Hoorn <g.a.vanderhoorn@tudelft.nl>, Miguel Prada Sarasola <miguel.prada@tecnalia.com>, Nadia Hammoudeh Garcia <nhg@ipa.fhg.de>' 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 "${ur_msgs_DIR}/../../../include" ABSOLUTE)
|
||||
if(NOT IS_DIRECTORY ${include})
|
||||
message(FATAL_ERROR "Project 'ur_msgs' specifies '${idir}' as an include dir, which is not found. It does not exist in '${include}'. ${_report}")
|
||||
endif()
|
||||
else()
|
||||
message(FATAL_ERROR "Project 'ur_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(ur_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 ur_msgs_LIBRARIES ${library})
|
||||
elseif(${library} MATCHES "^-l")
|
||||
list(APPEND ur_msgs_LIBRARIES ${library})
|
||||
elseif(TARGET ${library})
|
||||
list(APPEND ur_msgs_LIBRARIES ${library})
|
||||
elseif(IS_ABSOLUTE ${library})
|
||||
list(APPEND ur_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(ur_msgs_LIBRARY_DIRS ${lib_path})
|
||||
list(APPEND ur_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 'ur_msgs'? Did you find_package() it before the subdirectory containing its code is included?")
|
||||
endif()
|
||||
list(APPEND ur_msgs_LIBRARIES ${lib})
|
||||
endif()
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
set(ur_msgs_EXPORTED_TARGETS "ur_msgs_generate_messages_cpp;ur_msgs_generate_messages_eus;ur_msgs_generate_messages_lisp;ur_msgs_generate_messages_nodejs;ur_msgs_generate_messages_py")
|
||||
# create dummy targets for exported code generation targets to make life of users easier
|
||||
foreach(t ${ur_msgs_EXPORTED_TARGETS})
|
||||
if(NOT TARGET ${t})
|
||||
add_custom_target(${t})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
set(depends "message_runtime;std_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 ur_msgs_dep)
|
||||
list(LENGTH depend_list count)
|
||||
if(${count} EQUAL 1)
|
||||
# simple dependencies must only be find_package()-ed once
|
||||
if(NOT ${ur_msgs_dep}_FOUND)
|
||||
find_package(${ur_msgs_dep} REQUIRED NO_MODULE)
|
||||
endif()
|
||||
else()
|
||||
# dependencies with components must be find_package()-ed again
|
||||
list(REMOVE_AT depend_list 0)
|
||||
find_package(${ur_msgs_dep} REQUIRED NO_MODULE ${depend_list})
|
||||
endif()
|
||||
_list_append_unique(ur_msgs_INCLUDE_DIRS ${${ur_msgs_dep}_INCLUDE_DIRS})
|
||||
|
||||
# merge build configuration keywords with library names to correctly deduplicate
|
||||
_pack_libraries_with_build_configuration(ur_msgs_LIBRARIES ${ur_msgs_LIBRARIES})
|
||||
_pack_libraries_with_build_configuration(_libraries ${${ur_msgs_dep}_LIBRARIES})
|
||||
_list_append_deduplicate(ur_msgs_LIBRARIES ${_libraries})
|
||||
# undo build configuration keyword merging after deduplication
|
||||
_unpack_libraries_with_build_configuration(ur_msgs_LIBRARIES ${ur_msgs_LIBRARIES})
|
||||
|
||||
_list_append_unique(ur_msgs_LIBRARY_DIRS ${${ur_msgs_dep}_LIBRARY_DIRS})
|
||||
list(APPEND ur_msgs_EXPORTED_TARGETS ${${ur_msgs_dep}_EXPORTED_TARGETS})
|
||||
endforeach()
|
||||
|
||||
set(pkg_cfg_extras "ur_msgs-msg-extras.cmake")
|
||||
foreach(extra ${pkg_cfg_extras})
|
||||
if(NOT IS_ABSOLUTE ${extra})
|
||||
set(extra ${ur_msgs_DIR}/${extra})
|
||||
endif()
|
||||
include(${extra})
|
||||
endforeach()
|
||||
@@ -0,0 +1 @@
|
||||
set(ORDERED_PATHS "/opt/ros/kinetic/lib")
|
||||
16
build/universal_robot/ur_msgs/catkin_generated/package.cmake
Normal file
16
build/universal_robot/ur_msgs/catkin_generated/package.cmake
Normal file
@@ -0,0 +1,16 @@
|
||||
set(_CATKIN_CURRENT_PACKAGE "ur_msgs")
|
||||
set(ur_msgs_VERSION "1.2.5")
|
||||
set(ur_msgs_MAINTAINER "G.A. vd. Hoorn <g.a.vanderhoorn@tudelft.nl>, Miguel Prada Sarasola <miguel.prada@tecnalia.com>, Nadia Hammoudeh Garcia <nhg@ipa.fhg.de>")
|
||||
set(ur_msgs_PACKAGE_FORMAT "1")
|
||||
set(ur_msgs_BUILD_DEPENDS "message_generation" "std_msgs")
|
||||
set(ur_msgs_BUILD_EXPORT_DEPENDS "message_runtime" "std_msgs")
|
||||
set(ur_msgs_BUILDTOOL_DEPENDS "catkin")
|
||||
set(ur_msgs_BUILDTOOL_EXPORT_DEPENDS )
|
||||
set(ur_msgs_EXEC_DEPENDS "message_runtime" "std_msgs")
|
||||
set(ur_msgs_RUN_DEPENDS "message_runtime" "std_msgs")
|
||||
set(ur_msgs_TEST_DEPENDS )
|
||||
set(ur_msgs_DOC_DEPENDS )
|
||||
set(ur_msgs_URL_WEBSITE "")
|
||||
set(ur_msgs_URL_BUGTRACKER "")
|
||||
set(ur_msgs_URL_REPOSITORY "")
|
||||
set(ur_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".replace(';', ' ')
|
||||
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
|
||||
PROJECT_NAME = "ur_msgs"
|
||||
PROJECT_SPACE_DIR = "/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel"
|
||||
PROJECT_VERSION = "1.2.5"
|
||||
@@ -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".replace(';', ' ')
|
||||
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
|
||||
PROJECT_NAME = "ur_msgs"
|
||||
PROJECT_SPACE_DIR = "/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/install"
|
||||
PROJECT_VERSION = "1.2.5"
|
||||
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0"?>
|
||||
<package>
|
||||
<name>ur_msgs</name>
|
||||
<version>1.2.5</version>
|
||||
<description>The ur_msgs package</description>
|
||||
|
||||
<author>Andrew Glusiec</author>
|
||||
<author>Felix Messmer</author>
|
||||
<maintainer email="g.a.vanderhoorn@tudelft.nl">G.A. vd. Hoorn</maintainer>
|
||||
<maintainer email="miguel.prada@tecnalia.com">Miguel Prada Sarasola</maintainer>
|
||||
<maintainer email="nhg@ipa.fhg.de">Nadia Hammoudeh Garcia</maintainer>
|
||||
|
||||
<license>BSD</license>
|
||||
|
||||
<buildtool_depend>catkin</buildtool_depend>
|
||||
<build_depend>message_generation</build_depend>
|
||||
<build_depend>std_msgs</build_depend>
|
||||
<run_depend>message_runtime</run_depend>
|
||||
<run_depend>std_msgs</run_depend>
|
||||
|
||||
<export>
|
||||
</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)
|
||||
@@ -0,0 +1,2 @@
|
||||
set(ur_msgs_MESSAGE_FILES "/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src/universal_robot/ur_msgs/msg/Analog.msg;/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src/universal_robot/ur_msgs/msg/Digital.msg;/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src/universal_robot/ur_msgs/msg/IOStates.msg;/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src/universal_robot/ur_msgs/msg/RobotStateRTMsg.msg;/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src/universal_robot/ur_msgs/msg/MasterboardDataMsg.msg;/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src/universal_robot/ur_msgs/msg/RobotModeDataMsg.msg;/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src/universal_robot/ur_msgs/msg/ToolDataMsg.msg")
|
||||
set(ur_msgs_SERVICE_FILES "/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src/universal_robot/ur_msgs/srv/SetPayload.srv;/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src/universal_robot/ur_msgs/srv/SetIO.srv")
|
||||
@@ -0,0 +1,2 @@
|
||||
set(ur_msgs_MESSAGE_FILES "msg/Analog.msg;msg/Digital.msg;msg/IOStates.msg;msg/RobotStateRTMsg.msg;msg/MasterboardDataMsg.msg;msg/RobotModeDataMsg.msg;msg/ToolDataMsg.msg")
|
||||
set(ur_msgs_SERVICE_FILES "srv/SetPayload.srv;srv/SetIO.srv")
|
||||
Reference in New Issue
Block a user