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

Revision history [back]

In my case, I used a simpler method to require the service.


// Within TaskContext class
if (this->loadService("rosparam"))
{
OperationCaller<bool(void)> storeProperties = this->provides("rosparam")->getOperation("storeProperties");
}
 

The benefit is that my code can try to load the service more than one time if it fails at the beginning.