[ros-users] actionlib over multiple packages

Blaise Gassend blaise at willowgarage.com
Thu Sep 9 20:43:31 UTC 2010


Is your trtl_msgs package exporting its inculdes in manifest.xml?

  <export>
        <cpp cflags="-I${prefix}/msg/cpp -I${prefix}/srv/cpp
-I${prefix}/include"
  </export>
(Taylor as needed)

On Thu, Sep 9, 2010 at 1:40 PM, Axelrod, Benjamin <baxelrod at irobot.com> wrote:
> I am trying to learn how to use actionlib.  I would like my client and
> server to use the actionlib generated messages from another package.  I
> believe this should be possible, but I get a compilation error when
> compiling the client or server.
>
>
>
> Specifics:
>
> I took the turtle_actionlib tutorial and split it into 3 packages:
> trtl_msgs, trtl_client, and trtl_server.  trtl_msgs contains no code and
> only has the .action files.  I modified the CMake file accordingly and this
> rosmakes fine.  (The .msg files get generated properly including the .h
> files and .py files.)  When I try to rosmake the client, I get this error:
>
>
>
> /home/baxelrod/ros-tutorials/ros_pkg_tutorials/trtl_client/src/shape_client.cpp:4:35:
> error: trtl_msgs/ShapeAction.h: No such file or directory
>
>
>
> I have double checked that trtl_msgs is listed as a dependency in the
> trtl_client manifest.  And I can see that the trtl_msgs/ShapeAction.h file
> does exist.  I don’t know why it is not being found.
>
>
>
> Platform info:
>
> Linux version 2.6.28-19-server (buildd at rothera) (gcc version 4.3.3 (Ubuntu
> 4.3.3-5ubuntu4) ) #62-Ubuntu SMP Wed Jul 28 02:58:24 UTC 2010
>
> ROS version: Boxturtle
>
>
>
> I have attached my (very simple) sample code.  Is this a limitation of
> actionlib, or am I missing something obvious?
>
>
>
> Thanks,
>
> -Ben
>
>
>
> --
>
> Ben Axelrod
>
> Research Scientist
>
> iRobot Corporation
>
> 8 Crosby Drive, Mail Stop 8-1
>
> Bedford, MA 01730
>
> (781) 430-3315 (Tel)
>
> (781) 960-2628 (Fax)
>
> baxelrod at irobot.com
>
>
>
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
>



More information about the ros-users mailing list