How to use services ?
According to this tutorial [ http://wiki.ros.org/ROS/Tutorials/Wri... ], I thought we could use a service like :
client = n.serviceClient<std_srvs::Empty>("/reset_positions");
ros::service::waitForService("/reset_positions");
std_srvs::Empty reset_srv;
client.call(reset_srv);
But execution is blocked on the waitForService instruction and return :
[ INFO] [1495007235.234008766]: waitForService: Service [/reset_positions] has not been advertised, waiting...
Is there something I missed to run this service ?