Commit e92bf3f5 authored by Olivier Stasse's avatar Olivier Stasse

Adapt display controller interface to kinetic or indigo interface.

parent afa10640
......@@ -74,7 +74,8 @@ namespace sot_controller
void RCSotController::
displayClaimedResources(ClaimedResources & claimed_resources)
{
std::vector<hardware_interface::InterfaceResources>::iterator it_claim;
#ifdef CONTROLLER_INTERFACE_KINETIC
ClaimedResources::iterator it_claim;
ROS_INFO_STREAM("Size of claimed resources: "<< claimed_resources.size());
for (it_claim = claimed_resources.begin();
it_claim != claimed_resources.end();
......@@ -93,6 +94,17 @@ namespace sot_controller
}
}
#else
std::set<std::string >::iterator it_claim;
ROS_INFO_STREAM("Size of claimed resources: "<< claimed_resources.size());
for (it_claim = claimed_resources.begin();
it_claim != claimed_resources.end();
++it_claim)
{
std::string aclaim = *it_claim;
ROS_INFO_STREAM("Claimed by RCSotController: " << aclaim);
}
#endif
}
bool RCSotController::
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment