Skip to content
Snippets Groups Projects
Commit 8a8bc15a authored by Olivier Stasse's avatar Olivier Stasse
Browse files

[cmake/ros] Fix problem with generation of catkin pc file.

Add proper dependence to the SoT packages.
parent 1fac8937
No related branches found
No related tags found
No related merge requests found
...@@ -56,17 +56,24 @@ set(PKG_CONFIG_ADDITIONAL_VARIABLES ...@@ -56,17 +56,24 @@ set(PKG_CONFIG_ADDITIONAL_VARIABLES
plugindir plugindir
) )
# Add dependency to SoT specific packages.
SET(SOT_PKGNAMES
sot-core
sot-dynamic
jrl-dynamics-urdf
dynamic_graph_bridge_msgs)
add_required_dependency(roscpp) add_required_dependency(roscpp)
add_required_dependency("realtime_tools >= 1.8") add_required_dependency("realtime_tools >= 1.8")
add_required_dependency(bullet) add_required_dependency(bullet)
add_required_dependency(jrl-mal)
add_required_dependency(dynamic-graph)
add_required_dependency(dynamic-graph-python)
add_required_dependency(sot-core)
add_required_dependency(sot-dynamic)
add_required_dependency(jrl-dynamics-urdf)
add_required_dependency(dynamic_graph_bridge_msgs)
foreach(sot_pkgname ${SOT_PKGNAMES})
add_required_dependency(${sot_pkgname})
pkg_check_modules(SOT_${sot_pkgname} REQUIRED ${sot_pkgname})
endforeach(sot_pkgname)
# Build ros_bridge library
add_library(ros_bridge add_library(ros_bridge
src/converter.hh src/converter.hh
include/dynamic_graph_bridge/ros_init.hh src/ros_init.cpp include/dynamic_graph_bridge/ros_init.hh src/ros_init.cpp
...@@ -115,6 +122,7 @@ endmacro() ...@@ -115,6 +122,7 @@ endmacro()
include(cmake/python.cmake) include(cmake/python.cmake)
# Build Sot Entities
compile_plugin(ros_publish) compile_plugin(ros_publish)
compile_plugin(ros_subscribe) compile_plugin(ros_subscribe)
compile_plugin(ros_time) compile_plugin(ros_time)
...@@ -169,7 +177,13 @@ add_subdirectory(src) ...@@ -169,7 +177,13 @@ add_subdirectory(src)
# Deal with the ROS part. # Deal with the ROS part.
add_service_files( FILES RunPythonFile.srv ) add_service_files( FILES RunPythonFile.srv )
generate_messages( DEPENDENCIES std_msgs ) generate_messages( DEPENDENCIES std_msgs )
catkin_package(CATKIN_DEPENDS message_runtime LIBRARIES ros_bridge ros_interpreter)
# This is necessary so that the pc file generated by catking is similar to the on
# done directly by jrl-cmake-modules
catkin_package(CATKIN_DEPENDS message_runtime roscpp realtime_tools bullet ${SOT_PKGNAMES}
LIBRARIES ros_bridge ros_interpreter
)
# Add libraries in pc file generated by cmake submodule # Add libraries in pc file generated by cmake submodule
PKG_CONFIG_APPEND_LIBS(ros_bridge ros_interpreter) PKG_CONFIG_APPEND_LIBS(ros_bridge ros_interpreter)
......
<package> <package format="2">
<name>dynamic_graph_bridge</name> <name>dynamic_graph_bridge</name>
<version>2.0.6</version> <version>2.0.8</version>
<description> <description>
ROS bindings for dynamic graph. ROS bindings for dynamic graph.
...@@ -18,22 +18,22 @@ ...@@ -18,22 +18,22 @@
<buildtool_depend>catkin</buildtool_depend> <buildtool_depend>catkin</buildtool_depend>
<build_depend>std_msgs</build_depend> <depend>std_msgs</depend>
<build_depend>std_srvs</build_depend> <depend>std_srvs</depend>
<build_depend>roscpp</build_depend> <depend>roscpp</depend>
<build_depend>geometry_msgs</build_depend> <depend>geometry_msgs</depend>
<build_depend>sensor_msgs</build_depend> <depend>sensor_msgs</depend>
<build_depend>tf</build_depend> <depend>tf</depend>
<build_depend>realtime_tools</build_depend> <depend>realtime_tools</depend>
<build_depend>message_generation</build_depend> <depend>message_generation</depend>
<depend>message_runtime</depend>
<run_depend>std_msgs</run_depend> <depend>bullet</depend>
<run_depend>std_srvs</run_depend> <depend>jrl-mal</depend>
<run_depend>roscpp</run_depend> <depend>dynamic-graph</depend>
<run_depend>geometry_msgs</run_depend> <depend>dynamic-graph-python</depend>
<run_depend>sensor_msgs</run_depend> <depend>sot-core</depend>
<run_depend>tf</run_depend> <depend>sot-dynamic</depend>
<run_depend>realtime_tools</run_depend> <depend>jrl-dynamics-urdf</depend>
<run_depend>message_runtime</run_depend> <depend>dynamic_graph_bridge_msgs</depend>
</package> </package>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment