Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You don't need to find it. It is going to be created during compiling. To do that add the following line in your cmakelists

add_executable(add_two_ints_server src/add_two_ints_server.cpp)
target_link_libraries(add_two_ints_server ${catkin_LIBRARIES})
add_dependencies(add_two_ints_server beginner_tutorials_gencpp)    // <= you need this line

from here.

Of course it is mandatory to create at first your srv file in the project folder as described here.

You don't need to find it. It is going to be created during compiling. To do that add the following line in your cmakelists

add_executable(add_two_ints_server src/add_two_ints_server.cpp)
target_link_libraries(add_two_ints_server ${catkin_LIBRARIES})
add_dependencies(add_two_ints_server beginner_tutorials_gencpp)    // <= you need this line

from here.

Of course it is mandatory to create at first your srv file in the project folder as described here.

In the right order:

  1. create the srv file and add it into your cmakelists;
  2. add the above line as at the beginning suggested;
  3. compile with catkin_make;

You don't need to find it. It is going to be created during compiling. To do that add the following line in your cmakelists

add_executable(add_two_ints_server src/add_two_ints_server.cpp)
target_link_libraries(add_two_ints_server ${catkin_LIBRARIES})
add_dependencies(add_two_ints_server beginner_tutorials_gencpp)    // <= you need this line

from here.

Of course it is mandatory to create at first your srv file in the project folder as described here.

In the right order:

  1. create the srv file and add it into your cmakelists;
  2. add the above line as at the beginning suggested;suggested (to tell the compiler to generate the needed .h file at first);
  3. compile with catkin_make;