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

How I can use generated headers (like from messages) from one package in another?

asked 2013-01-10 22:18:45 -0500

mifritscher gravatar image

updated 2013-01-10 22:37:19 -0500

KruseT gravatar image

I'm using groovy + catkin. How can I include the devel/include<package_name>, which contains e.g. the generated header-files from the messages in another package?

find_package(package_name REQUIRED)

and

include_directories(include
  ${catkin_INCLUDE_DIRS}
  ${Boost_INCLUDE_DIRS}
  ${merlin_messages_INCLUDE_DIRS}
)

doesn't seem to be enough, I suppose that this include only the headers which come from this package, but not the automatically generated one?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-01-10 22:38:44 -0500

KruseT gravatar image

The code you posted is sufficient for finding headers, as message headers are generated to the same location that your others headers go to.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-01-10 22:18:45 -0500

Seen: 143 times

Last updated: Jan 10 '13