Closed wkentaro closed 9 years ago
With below patch in roseus
package.
It can see dependent packages in running, however can't see implicit dependencies.
If all packages are installed in src not with deb, this does work.
But if not so, it is not possible to generate all implicit dependent messages beforehand.
diff --git a/roseus/cmake/roseus.cmake b/roseus/cmake/roseus.cmake
index 75bfc67..3ee87bd 100644
--- a/roseus/cmake/roseus.cmake
+++ b/roseus/cmake/roseus.cmake
@@ -39,8 +39,8 @@ macro(generate_all_roseus_messages)
string(REGEX MATCH "catkin" need_catkin "$ENV{_}")
if(need_catkin OR ${target_pkg} STREQUAL "roseus") # do not run upstream message generation on buildfirm
get_cmake_property(_variables VARIABLES)
- foreach(_variable ${_variables})
- string(REGEX REPLACE "^(.*)_(MESSAGE|SERVICE)_FILES$" "\\1" _pkg ${_variable})
+ _catkin_package_xml(${CMAKE_CURRENT_BINARY_DIR}/roseus_generated)
+ foreach(_pkg ${${PROJECT_NAME}_RUN_DEPENDS})
if("${_pkg}_FOUND" AND NOT ${_pkg}_SOURCE_PREFIX AND NOT TARGET ${_pkg}_generate_messages_eus)
_list_append_unique(_${target_pkg}_generate_roseus_message_packages_all ${_pkg})
if(NOT EXISTS ${roseus_PREFIX}/share/roseus/ros/${_pkg})
Should be solved via https://github.com/jsk-ros-pkg/jsk_roseus/pull/335
This seems to happen because the dependent messages are not generated.
assigned to @wkentaro .