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

The first errors messages are often the most important. In your errors the important ones seem to be:

/home/javier/catkin_ws/src/beginner_tutorials/src/get_element_server.cpp:7:7: error: ‘beginner_tutorials::GetElement::Response’ has no member named ‘result’

and

/home/javier/catkin_ws/src/beginner_tutorials/src/get_element_server.cpp:8:33: error: ‘beginner_tutorials::GetElement::Request’ has no member named ‘name’

these errors are repeated several more times in various different contexts within your code.

These errors seem odd, because as listed these fields are present in your service definition.

I would start by checking:

  • You list your service definition file as GetElement.h; this should be GetElement.srv
  • You should confirm that C++ headers are being generated from your service definition. They should be automatically generated in the devel/include/path/to/package/GetElement.h file in your catkin workspace.
  • Check that you're including the service definition from the correct package