ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Can't Find My Include

asked 2011-11-15 03:09:04 -0600

Constantin S gravatar image

updated 2011-11-15 07:02:29 -0600

tfoote gravatar image

Hello all, I have two packages: OpenRAVEROSInterp and myTestROS.

OpenRAVEROSInterp is a little package I developed which connects OpenRAVE and ROS. It works well and uses a file named ROSRobot.h which contains subscriptions/services to interact with robots in OpenRAVE. It is stored in

rospackages/OpenRAVEROSInterp/include/OpenRAVEROSInterp/ROSRobot.h

My other package myTestROS is attempting to use ROSRobot.h (just for fun). It's manifest.xml has

 <depend package="OpenRAVEROSInterp"/> 

When I run rosmake, I get...

 ...workspace/rospackages/myTestROS/src/TestClass.cpp:36:40: error: OpenRAVEROSInterp/ROSRobot.h: No such file or directory 

Where line 36 is:

#include <OpenRAVEROSInterp/ROSRobot.h>

Could anyone off any suggestions? Thank you.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2011-11-15 03:21:57 -0600

Mac gravatar image

You'll need to set some export tags in your package's manifest.xml. See the wikipage on manifests.

edit flag offensive delete link more

Comments

How come when you <depend package="tf">, you can $include<tf/tflistener.h> . What's the difference with my package?
Constantin S gravatar image Constantin S  ( 2011-11-15 03:32:35 -0600 )edit
Is OpenRAVEROSInterp in your $ROS_PACKAGE_PATH? Can you `roscd` to it?
joq gravatar image joq  ( 2011-11-15 05:19:18 -0600 )edit
@Constantin S This works for tf because it uses the export tags like @Mac said.
tfoote gravatar image tfoote  ( 2011-11-15 07:01:50 -0600 )edit
@joq Yes I can roscd to it. @tfoote Interesting, I thought he meant I had to add export flags to myTestROS. I am interested as to why this is so, I figured the rosmake system would be able to handle includes from other packages. I will examine the wiki page. Thank you all for your patience!
Constantin S gravatar image Constantin S  ( 2011-11-16 01:46:20 -0600 )edit

Question Tools

Stats

Asked: 2011-11-15 03:09:04 -0600

Seen: 400 times

Last updated: Nov 15 '11