Building an action server and action client located in two separate packages
Hi,
I have implemented an action server and an action client for my application. They are located in two different packages and I sometimes encounter an issue when running catkin_make
: if I delete my /build
and /devel
folders the first catkin_make
always fails (always because of the action messages not found during the compilation) but if I run catkin_make
again there are no issues anymore. I suspect that the first time all the action messages are created but not correctly linked with my libraries so they are not found and the second time it's working since they have already been created.
So I'm aware this issue comes from my CMakeList.txt
and package.xml
configurations, I've followed the different actionlib tutorials where this configuration is detailled but it's always when the server and client are located in the same package.
I don't want you to correct my configuration, I want to correctly understand how it should be done, so my questions are :
- Do I need to put the
/action
folder containing the action message in both packages ? (I've currently created only one folder inside the package containing the action server) - If not, what is the proper way to link the auto generated action message header files to the other package ?
- What is the minimum required configuration for my
CMakeList.txt
andpackage.xml
for my package containing the action server ? - Same question for the other package containing the action server ?