Service client C++ tutorial simple question
I have a question about the code:
if (client.call(srv))
{
ROS_INFO("Sum: %ld", (long int)srv.response.sum);
}
else
{
ROS_ERROR("Failed to call service add_two_ints");
return 1;
}
Why is there a return value of 1? Is a return value just always required when calling a service?
You removed the function around your snippet, so we can only guess what the return value means. Is it the return value of your program?