Commit 0d4d7305 authored by Mohamed Hassan's avatar Mohamed Hassan

Debug_5.2

parent ce2c6f6e
......@@ -25,12 +25,12 @@ void Timeactivity::run()
{
while(1)
{
ROS_INFO("############");
//ROS_INFO("############");
std::this_thread::sleep_for(std::chrono::milliseconds(DELAY));
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);
......@@ -75,7 +75,7 @@ void Timeactivity::run()
}
else
{
std::cout << "\rERROR: There is no handle!!" << std::endl;
//std::cout << "\rERROR: There is no handle!!" << std::endl;
}
}
......
......@@ -64,7 +64,7 @@ void callback(const timeClient::srv_info &msg)
{
std::string str = msg.srv_ns.substr(1);
timeServiceProxy::instanceID_ = std::stoi(str);
std::cout<<"\ncurrent_state: "<< msg.current_state;
std::cout<<"\ncurrent_state: "<< msg.current_state<<std::endl;
//std::cout<<"\nprevious_state: "<< msg.previous_state;
if(msg.current_state == "on") //First time to see the serviceat this time
{
......
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