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

Revision history [back]

click to hide/show revision 1
initial version

Well, I have finally managed to get the example to build. To do so:

  1. copy the TwoInts.h file from roscpp_tutorials to the include folder of your tutorial project.
  2. rename the namespace for the TwoInts.h file to your project name and go through and change every recurrance. i.e. since my project was under beginner_tutorials, change every roscpp_tutorials::TwoInt to beginner_tutorials::TwoInt
  3. in your add_two_ints_server.cpp and add_two_ints_client.cpp files, make sure the include refers to where you put the TwoInts.h (also, make sure its not 'AddTwoInts.h' like the tutorial)
  4. When you go to use TwoInts in your client and server file, make sure it refers to your namespace (for me it was beginner_tutorials::TwoInt).