[ros-users] rosmake doesn't wait for rosbuild_gensrv to complete
Mike Vande Weghe
vandeweg at cmu.edu
Mon Apr 18 15:50:05 UTC 2011
I've noticed that for a package that defines a single ROS service and
that builds a single shared library, the compilation fails the first
time through because the header file for the service has not yet been
completed. When I do a second rosmake the compilation succeeds. Do
service generation and code compilation happen in parallel, and if so is
there a way to order them?
My CMakeLists.txt looks like this:
-------------------------------------------------------
cmake_minimum_required(VERSION 2.4.6)
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
rosbuild_init()
rosbuild_gensrv()
add_library(mytraj SHARED MyTraj.cpp)
-------------------------------------------------------
and my manifest.xml looks like this:
-------------------------------------------------------
<package>
<description brief="OpenWAM sample Trajectory plugin">
A ROS package that builds a Trajectory plugin to be
dynamically loaded into OWD at runtime.
</description>
<author>Mike Vande Weghe (vandeweg at cmu.edu)</author>
<license>LGPL</license>
<depend package="owd"/>
<depend package="std_msgs"/>
</package>
-------------------------------------------------------
Thanks,
Mike
More information about the ros-users
mailing list