[ros-users] rosmake doesn't wait for rosbuild_gensrv to comp…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: User discussions
Date:  
To: ros-users
Subject: [ros-users] rosmake doesn't wait for rosbuild_gensrv to complete
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 ()</author>
  <license>LGPL</license>
  <depend package="owd"/>
  <depend package="std_msgs"/>
</package>
-------------------------------------------------------


Thanks,

Mike