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

Thach Do's profile - activity

2016-08-18 22:20:54 -0500 answered a question Using the orocos/rtt rosparam service in c++

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.