Commit e24249f0 authored by Mohamed Ahmed's avatar Mohamed Ahmed

Debug_1

parent 1d79b174
......@@ -30,7 +30,7 @@ void Timeactivity::run()
if (nullptr != m_proxy)
{
//ROS_INFO("**************");
ROS_INFO("**************");
std::chrono::time_point<std::chrono::system_clock> deadline
= std::chrono::system_clock::now() + std::chrono::milliseconds(DEADLINE);
......@@ -67,11 +67,15 @@ void Timeactivity::run()
{
std::cout << currentTime << " From service instance: " << INSTANCE_COLOR_40 << "40" << END_COLOR << std::endl;
}
else if(serviceInstances_ == 60)
{
std::cout << currentTime << " From service instance: " << INSTANCE_COLOR_40 << "60" << END_COLOR << std::endl;
}
}
else
{
//std::cout << "\rERROR: There is no handle!!" << std::endl;
std::cout << "\rERROR: There is no handle!!" << std::endl;
}
}
......
......@@ -58,7 +58,7 @@ ara::com::FindServiceHandle timeServiceProxy::StartFindService( ara::com::FindSe
void initialize_startingRosHandler()
{
ros::NodeHandle global_rosHandler;
timeServiceProxy::srvInfoSubscriber = global_rosHandler.subscribe("/timeService_info",5, callback);
timeServiceProxy::srvInfoSubscriber = global_rosHandler.subscribe("/service_info",5, callback);
}
void callback(const timeClient::srv_info &msg)
......@@ -71,7 +71,7 @@ void callback(const timeClient::srv_info &msg)
{
for(int i=0; i<timeServiceProxy::handlesVec.size();i++){
auto temp = timeServiceProxy::handlesVec[i].GetInstanceId();
//ROS_INFO("Srv_ID_%i: %i", i, temp);
ROS_INFO("Srv_ID_%i: %i", i, temp);
if(timeServiceProxy::handlesVec[i].GetInstanceId() == timeServiceProxy::instanceID_)
return;
}
......
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