我正在尝试使用自己依赖的ROS软件包(my_pkg)创建一个debian,该软件包依赖于另一个仅包含msgs和srvs(my_msgs_pkg)的软件包。
我正在关注this tutorial,但是在运行fakeroot debian/rules binary
时遇到错误,我得到了错误提示:
CMake Error at
/opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83
(find_package): Could not find a package configuration file provided
by "my_msgs_pkg" with any of the following names:
my_msgs_pkgConfig.cmake
my_msgs_pkg-config.cmake
Add the installation prefix of "my_msgs_pkg" to CMAKE_PREFIX_PATH or
set "my_msgs_pkg_DIR" to a directory containing one of the above
files. If "my_msgs_pkg" provides a separate development package or
SDK, be sure it has been installed. Call Stack (most recent call
first): CMakeLists.txt:6 (find_package)
- Configuring incomplete, errors occurred!
这是my_msgs_pkg CMakeLists.txt:
cmake_minimum_required(VERSION 2.8.3)
project(my_msgs_pkg)
set(CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS}")
find_package(catkin REQUIRED COMPONENTS
std_msgs
sensor_msgs
geometry_msgs
visualization_msgs
message_generation
nav_msgs
)
add_message_files(
DIRECTORY msg/Telemetry
FILES
TelemetryRawData.msg
TelemetryLogData.msg
)
add_service_files(
DIRECTORY srv/State
FILES
StateSrv.srv
StateUpdateSrv.srv
)
这是my_pkg CMakeLists.txt:
cmake_minimum_required(VERSION 2.8.3)
project(my_pkg)
set(CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS}")
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
geometry_msgs
my_msgs_pkg
nodelet
tf
)
catkin_python_setup()
catkin_package(
CATKIN_DEPENDS message_runtime std_msgs my_msgs_pkg
)
include_directories(
${catkin_INCLUDE_DIRS}
include/
)
###########
## Build ##
###########
add_library(my_pkg_nodelet
src/my_pkg_nodelet.cpp
)
target_link_libraries( my_pkg_nodelet
${catkin_LIBRARIES}
${roscpp_LIBRARIES}
)
# Install library
install(TARGETS my_pkg_nodelet
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
# Install header files
install(DIRECTORY src/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
)
# Install launch files
install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
)
# Install xml files
install(FILES nodelet_plugins.xml
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
我在做什么错了?