Ask Your Question
0

How to make use of actionfiles between two packages?

asked 2014-02-11 02:04:22 -0500

mortenpj gravatar image

updated 2014-04-20 14:09:31 -0500

ngrennan gravatar image

Hi,

I am trying to make use of actionlib between two packages in the same workspace, but when I "catkin_make" the workspace I get the following error:

workspace/src/skills/src/master.cpp:63:33: fatal error: ur5_proxy/ur5Action.h: No such file or directory

The ur5Action.h plus additional action files are created in another package called ur5_proxy, and is placed in a directory called workspace/devel/include/ur5_proxy

So my question is how do I make use of actionfiles created in the ur5_proxy package in the skills package? I think the problem concerns the CMakelist or the package.xml.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-02-11 03:41:43 -0500

joq gravatar image

Your target containing master.cpp needs to declare an explicit dependency on the messages:

add_dependencies(your_program ${catkin_EXPORTED_TARGETS})

See the catkin howto for details.

edit flag offensive delete link more
0

answered 2017-06-07 09:17:04 -0500

biglotusturtle gravatar image

updated 2017-06-07 14:09:48 -0500

I had this same problem and wanted to add that you also need a secondary depency. For example I have a target (your_program) which depends on action files generated from a secondary package (action_package). In the following scenario catkin_make requires:

add_executable(your_program src/your_program.cpp)
add_dependencies(your_program ${catkin_EXPORTED_TARGETS} action_package_generate_messages_cpp )

Otherwise the catkin_make will fail because it cannot find the headers for a particular action file. I am not sure if this problem is repeatable but I banged my head against the wall for a while so hopefully this will help someone.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-02-11 02:04:22 -0500

Seen: 152 times

Last updated: Jun 07 '17