Commit bb879a41 authored by Mohamed Ahmed's avatar Mohamed Ahmed

Handling sudden shut down of the service instance

parent a16dd8a3
/home/mohamed/Yono_Drive/adaptive_timeclient/devel/./cmake.lock 20
/home/mohamed/Yono_Drive/adaptive_timeclient/devel/./cmake.lock 26
/home/mohamed/adaptive_timeclient/devel/./cmake.lock 10
[ 0%] Built target std_msgs_generate_messages_py
[ 0%] Built target _timeClient_generate_messages_check_deps_time_srv
[ 0%] Built target _timeClient_generate_messages_check_deps_event_data
[ 0%] Built target _timeClient_generate_messages_check_deps_time_srv
[ 0%] Built target _timeClient_generate_messages_check_deps_time
[ 0%] Built target _timeClient_generate_messages_check_deps_subscription
[ 0%] Built target std_msgs_generate_messages_lisp
[ 0%] Built target std_msgs_generate_messages_nodejs
[ 0%] Built target std_msgs_generate_messages_eus
[ 0%] Built target _timeClient_generate_messages_check_deps_srv_info
[ 0%] Built target std_msgs_generate_messages_cpp
[ 13%] Built target timeClient_generate_messages_nodejs
[ 32%] Built target timeClient_generate_messages_py
[ 45%] Built target timeClient_generate_messages_lisp
[ 62%] Built target timeClient_generate_messages_eus
[ 75%] Built target timeClient_generate_messages_cpp
[ 0%] Built target _timeClient_generate_messages_check_deps_srv_info
[ 0%] Built target std_msgs_generate_messages_eus
[ 13%] Built target timeClient_generate_messages_lisp
[ 27%] Built target timeClient_generate_messages_nodejs
[ 45%] Built target timeClient_generate_messages_py
[ 59%] Built target timeClient_generate_messages_cpp
Scanning dependencies of target timeClient
[ 75%] Built target timeClient_generate_messages_eus
[ 75%] Built target timeClient_generate_messages
[ 78%] Building CXX object timeClient/src/CMakeFiles/timeClient.dir/getTime.cpp.o
In file included from /opt/ros/melodic/include/ros/ros.h:40:0,
......@@ -35,10 +35,10 @@ In file included from /opt/ros/melodic/include/ros/ros.h:40:0,
/opt/ros/melodic/include/rosconsole/macros_generated.h:110:23: note: in expansion of macro ‘ROS_LOG’
#define ROS_INFO(...) ROS_LOG(::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
^~~~~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:24:13: note: in expansion of macro ‘ROS_INFO’
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:21:13: note: in expansion of macro ‘ROS_INFO’
ROS_INFO("ID_: %i\nHours: %i\nMinutes: %i\nSeconds: %i", srv.request.srv_id, srv.response.hours,srv.response.minutes,srv.response.seconds);
^
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:37:1: warning: control reaches end of non-void function [-Wreturn-type]
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:35:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
[ 81%] Linking CXX executable /home/mohamed/Yono_Drive/adaptive_timeclient/devel/.private/timeClient/lib/timeClient/timeClient
......
[ 0%] Built target std_msgs_generate_messages_py
[ 0%] Built target _timeClient_generate_messages_check_deps_event_data
[ 0%] Built target _timeClient_generate_messages_check_deps_time
[ 0%] Built target _timeClient_generate_messages_check_deps_time_srv
[ 0%] Built target _timeClient_generate_messages_check_deps_subscription
[ 0%] Built target std_msgs_generate_messages_lisp
[ 0%] Built target std_msgs_generate_messages_nodejs
[ 0%] Built target _timeClient_generate_messages_check_deps_srv_info
[ 0%] Built target std_msgs_generate_messages_eus
[ 0%] Built target std_msgs_generate_messages_cpp
[ 13%] Built target timeClient_generate_messages_lisp
[ 32%] Built target timeClient_generate_messages_py
[ 45%] Built target timeClient_generate_messages_nodejs
[ 62%] Built target timeClient_generate_messages_eus
[ 75%] Built target timeClient_generate_messages_cpp
Scanning dependencies of target timeClient
[ 75%] Built target timeClient_generate_messages
[ 78%] Building CXX object timeClient/src/CMakeFiles/timeClient.dir/getTime.cpp.o
In file included from /opt/ros/melodic/include/ros/ros.h:40:0,
from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/../inc/getTime.hpp:9,
from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:1:
......@@ -35,11 +17,9 @@ In file included from /opt/ros/melodic/include/ros/ros.h:40:0,
/opt/ros/melodic/include/rosconsole/macros_generated.h:110:23: note: in expansion of macro ‘ROS_LOG’
#define ROS_INFO(...) ROS_LOG(::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
^~~~~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:23:9: note: in expansion of macro ‘ROS_INFO’
ROS_INFO("ID_: %i\nHours: %i\nMinutes: %i\nSeconds: %i", srv.request.srv_id, srv.response.hours,srv.response.minutes,srv.response.seconds);
^
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:36:1: warning: control reaches end of non-void function [-Wreturn-type]
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:21:13: note: in expansion of macro ‘ROS_INFO’
ROS_INFO("ID_: %i\nHours: %i\nMinutes: %i\nSeconds: %i", srv.request.srv_id, srv.response.hours,srv.response.minutes,srv.response.seconds);
^
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:35:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
[ 81%] Linking CXX executable /home/mohamed/Yono_Drive/adaptive_timeclient/devel/.private/timeClient/lib/timeClient/timeClient
[100%] Built target timeClient
[ 0%] Built target std_msgs_generate_messages_py
[ 0%] Built target _timeClient_generate_messages_check_deps_time
[ 0%] Built target _timeClient_generate_messages_check_deps_event_data
[ 0%] Built target _timeClient_generate_messages_check_deps_time_srv
[ 0%] Built target std_msgs_generate_messages_lisp
[ 0%] Built target _timeClient_generate_messages_check_deps_subscription
[ 0%] Built target std_msgs_generate_messages_nodejs
[ 0%] Built target std_msgs_generate_messages_cpp
[ 0%] Built target _timeClient_generate_messages_check_deps_srv_info
[ 0%] Built target std_msgs_generate_messages_eus
[ 37%] Built target timeClient_generate_messages_nodejs
[ 43%] Built target timeClient_generate_messages_py
[ 45%] Built target timeClient_generate_messages_lisp
[ 59%] Built target timeClient_generate_messages_cpp
Scanning dependencies of target timeClient
[ 75%] Built target timeClient_generate_messages_eus
[ 75%] Built target timeClient_generate_messages
[ 78%] Building CXX object timeClient/src/CMakeFiles/timeClient.dir/timeClient_activity.cpp.o
[ 81%] Linking CXX executable /home/mohamed/Yono_Drive/adaptive_timeclient/devel/.private/timeClient/lib/timeClient/timeClient
[100%] Built target timeClient
[ 0%] Built target std_msgs_generate_messages_py
[ 0%] Built target _timeClient_generate_messages_check_deps_time
[ 0%] Built target _timeClient_generate_messages_check_deps_time_srv
[ 0%] Built target _timeClient_generate_messages_check_deps_event_data
[ 0%] Built target std_msgs_generate_messages_lisp
[ 0%] Built target _timeClient_generate_messages_check_deps_subscription
[ 0%] Built target std_msgs_generate_messages_nodejs
[ 0%] Built target std_msgs_generate_messages_cpp
[ 0%] Built target _timeClient_generate_messages_check_deps_srv_info
[ 0%] Built target std_msgs_generate_messages_eus
[ 40%] Built target timeClient_generate_messages_nodejs
[ 40%] Built target timeClient_generate_messages_cpp
[ 40%] Built target timeClient_generate_messages_lisp
[ 59%] Built target timeClient_generate_messages_py
Scanning dependencies of target timeClient
[ 75%] Built target timeClient_generate_messages_eus
[ 78%] Building CXX object timeClient/src/CMakeFiles/timeClient.dir/timeClient_activity.cpp.o
[ 78%] Built target timeClient_generate_messages
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeClient_activity.cpp: In member function ‘void Timeactivity::run()’:
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeClient_activity.cpp:71:83: error: ‘endl’ was not declared in this scope
std::cout<<"Size_1:"<<proxy::timeServiceProxy::handlesVec.size()<<endl;
^~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeClient_activity.cpp:71:83: note: suggested alternative:
In file included from /usr/include/c++/7/iterator:64:0,
from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/../inc/ara/core/string_view.h:44,
from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/../inc/ara/com/instance_identifier.h:51,
from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/../inc/timeservice_proxy.hpp:7,
from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/../inc/timeClient_activity.hpp:4,
from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeClient_activity.cpp:4:
/usr/include/c++/7/ostream:590:5: note:  ‘std::endl’
endl(basic_ostream<_CharT, _Traits>& __os)
^~~~
timeClient/src/CMakeFiles/timeClient.dir/build.make:230: recipe for target 'timeClient/src/CMakeFiles/timeClient.dir/timeClient_activity.cpp.o' failed
make[2]: *** [timeClient/src/CMakeFiles/timeClient.dir/timeClient_activity.cpp.o] Error 1
CMakeFiles/Makefile2:1474: recipe for target 'timeClient/src/CMakeFiles/timeClient.dir/all' failed
make[1]: *** [timeClient/src/CMakeFiles/timeClient.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeClient_activity.cpp: In member function ‘void Timeactivity::run()’:
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeClient_activity.cpp:71:83: error: ‘endl’ was not declared in this scope
std::cout<<"Size_1:"<<proxy::timeServiceProxy::handlesVec.size()<<endl;
^~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeClient_activity.cpp:71:83: note: suggested alternative:
In file included from /usr/include/c++/7/iterator:64:0,
from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/../inc/ara/core/string_view.h:44,
from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/../inc/ara/com/instance_identifier.h:51,
from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/../inc/timeservice_proxy.hpp:7,
from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/../inc/timeClient_activity.hpp:4,
from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeClient_activity.cpp:4:
/usr/include/c++/7/ostream:590:5: note:  ‘std::endl’
endl(basic_ostream<_CharT, _Traits>& __os)
^~~~
make[2]: *** [timeClient/src/CMakeFiles/timeClient.dir/timeClient_activity.cpp.o] Error 1
make[1]: *** [timeClient/src/CMakeFiles/timeClient.dir/all] Error 2
make: *** [all] Error 2
[ 0%] Built target std_msgs_generate_messages_py
[ 0%] Built target _timeClient_generate_messages_check_deps_event_data
[ 0%] Built target _timeClient_generate_messages_check_deps_time_srv
[ 0%] Built target _timeClient_generate_messages_check_deps_time
[ 0%] Built target _timeClient_generate_messages_check_deps_time_srv
[ 0%] Built target _timeClient_generate_messages_check_deps_event_data
[ 0%] Built target std_msgs_generate_messages_lisp
[ 0%] Built target _timeClient_generate_messages_check_deps_subscription
[ 0%] Built target std_msgs_generate_messages_nodejs
[ 0%] Built target std_msgs_generate_messages_eus
[ 0%] Built target _timeClient_generate_messages_check_deps_srv_info
[ 0%] Built target std_msgs_generate_messages_cpp
[ 0%] Built target std_msgs_generate_messages_eus
[ 13%] Built target timeClient_generate_messages_lisp
[ 43%] Built target timeClient_generate_messages_nodejs
[ 43%] Built target timeClient_generate_messages_eus
[ 62%] Built target timeClient_generate_messages_py
[ 75%] Built target timeClient_generate_messages_cpp
[ 32%] Built target timeClient_generate_messages_py
[ 59%] Built target timeClient_generate_messages_cpp
[ 59%] Built target timeClient_generate_messages_nodejs
Scanning dependencies of target timeClient
[ 75%] Built target timeClient_generate_messages_eus
[ 75%] Built target timeClient_generate_messages
[ 78%] Building CXX object timeClient/src/CMakeFiles/timeClient.dir/timeClient_activity.cpp.o
[ 81%] Linking CXX executable /home/mohamed/Yono_Drive/adaptive_timeclient/devel/.private/timeClient/lib/timeClient/timeClient
......
[ 0%] Built target std_msgs_generate_messages_py
[ 0%] Built target _timeClient_generate_messages_check_deps_time
[ 0%] Built target _timeClient_generate_messages_check_deps_event_data
[ 0%] Built target _timeClient_generate_messages_check_deps_time
[ 0%] Built target _timeClient_generate_messages_check_deps_time_srv
[ 0%] Built target _timeClient_generate_messages_check_deps_subscription
[ 0%] Built target std_msgs_generate_messages_lisp
[ 0%] Built target std_msgs_generate_messages_nodejs
[ 0%] Built target std_msgs_generate_messages_cpp
[ 0%] Built target _timeClient_generate_messages_check_deps_srv_info
[ 0%] Built target std_msgs_generate_messages_cpp
[ 0%] Built target std_msgs_generate_messages_eus
[ 27%] Built target timeClient_generate_messages_lisp
[ 32%] Built target timeClient_generate_messages_py
[ 18%] Built target timeClient_generate_messages_py
[ 32%] Built target timeClient_generate_messages_lisp
[ 45%] Built target timeClient_generate_messages_nodejs
[ 59%] Built target timeClient_generate_messages_cpp
[ 75%] Built target timeClient_generate_messages_eus
Scanning dependencies of target timeClient
[ 75%] Built target timeClient_generate_messages
[ 78%] Building CXX object timeClient/src/CMakeFiles/timeClient.dir/timeClient_activity.cpp.o
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeClient_activity.cpp: In member function ‘void Timeactivity::run()’:
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeClient_activity.cpp:67:41: error: ‘e’ was not declared in this scope
std::cout << "Error" << e.what() << '\n';
^
timeClient/src/CMakeFiles/timeClient.dir/build.make:230: recipe for target 'timeClient/src/CMakeFiles/timeClient.dir/timeClient_activity.cpp.o' failed
make[2]: *** [timeClient/src/CMakeFiles/timeClient.dir/timeClient_activity.cpp.o] Error 1
CMakeFiles/Makefile2:1474: recipe for target 'timeClient/src/CMakeFiles/timeClient.dir/all' failed
make[1]: *** [timeClient/src/CMakeFiles/timeClient.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
[ 81%] Linking CXX executable /home/mohamed/Yono_Drive/adaptive_timeclient/devel/.private/timeClient/lib/timeClient/timeClient
[100%] Built target timeClient
[ 0%] Built target std_msgs_generate_messages_py
[ 0%] Built target _timeClient_generate_messages_check_deps_time_srv
[ 0%] Built target _timeClient_generate_messages_check_deps_time
[ 0%] Built target _timeClient_generate_messages_check_deps_time_srv
[ 0%] Built target _timeClient_generate_messages_check_deps_event_data
[ 0%] Built target _timeClient_generate_messages_check_deps_subscription
[ 0%] Built target std_msgs_generate_messages_lisp
......@@ -8,23 +8,23 @@
[ 0%] Built target std_msgs_generate_messages_cpp
[ 0%] Built target _timeClient_generate_messages_check_deps_srv_info
[ 0%] Built target std_msgs_generate_messages_eus
[ 29%] Built target timeClient_generate_messages_lisp
[ 45%] Built target timeClient_generate_messages_nodejs
[ 32%] Built target timeClient_generate_messages_py
[ 13%] Built target timeClient_generate_messages_nodejs
[ 27%] Built target timeClient_generate_messages_lisp
[ 45%] Built target timeClient_generate_messages_py
[ 59%] Built target timeClient_generate_messages_cpp
Scanning dependencies of target timeClient
[ 75%] Built target timeClient_generate_messages_eus
Scanning dependencies of target timeClient
[ 75%] Built target timeClient_generate_messages
[ 78%] Building CXX object timeClient/src/CMakeFiles/timeClient.dir/timeservice_proxy.cpp.o
[ 78%] Built target timeClient_generate_messages
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp: In static member function ‘static ara::com::FindServiceHandle proxy::timeServiceProxy::StartFindService(ara::com::FindServiceHandler<proxy::timeServiceProxy::HandleType>, ara::com::InstanceIdentifier)’:
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp:58:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp: In function ‘void callback(const srv_info&)’:
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp:74:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp:76:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<timeServiceProxy::handlesVec.size();i++){
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp:75:22: warning: variable ‘temp’ set but not used [-Wunused-but-set-variable]
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp:77:22: warning: variable ‘temp’ set but not used [-Wunused-but-set-variable]
auto temp = timeServiceProxy::handlesVec[i].GetInstanceId();
^~~~
[ 81%] Linking CXX executable /home/mohamed/Yono_Drive/adaptive_timeclient/devel/.private/timeClient/lib/timeClient/timeClient
......
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp: In static member function ‘static ara::com::FindServiceHandle proxy::timeServiceProxy::StartFindService(ara::com::FindServiceHandler<proxy::timeServiceProxy::HandleType>, ara::com::InstanceIdentifier)’:
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp:58:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp: In function ‘void callback(const srv_info&)’:
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp:76:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<timeServiceProxy::handlesVec.size();i++){
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp:77:22: warning: variable ‘temp’ set but not used [-Wunused-but-set-variable]
auto temp = timeServiceProxy::handlesVec[i].GetInstanceId();
^~~~
[ 0%] Built target std_msgs_generate_messages_py
[ 0%] Built target _timeClient_generate_messages_check_deps_time
[ 0%] Built target _timeClient_generate_messages_check_deps_time_srv
[ 0%] Built target _timeClient_generate_messages_check_deps_time
[ 0%] Built target _timeClient_generate_messages_check_deps_event_data
[ 0%] Built target std_msgs_generate_messages_lisp
[ 0%] Built target _timeClient_generate_messages_check_deps_subscription
[ 0%] Built target std_msgs_generate_messages_nodejs
[ 0%] Built target std_msgs_generate_messages_lisp
[ 0%] Built target _timeClient_generate_messages_check_deps_srv_info
[ 0%] Built target std_msgs_generate_messages_cpp
[ 0%] Built target std_msgs_generate_messages_eus
[ 27%] Built target timeClient_generate_messages_lisp
[ 27%] Built target timeClient_generate_messages_nodejs
[ 45%] Built target timeClient_generate_messages_py
[ 18%] Built target timeClient_generate_messages_py
[ 32%] Built target timeClient_generate_messages_lisp
[ 45%] Built target timeClient_generate_messages_nodejs
[ 59%] Built target timeClient_generate_messages_cpp
[ 75%] Built target timeClient_generate_messages_eus
Scanning dependencies of target timeClient
[ 75%] Built target timeClient_generate_messages_eus
[ 75%] Built target timeClient_generate_messages
[ 78%] Building CXX object timeClient/src/CMakeFiles/timeClient.dir/getTime.cpp.o
[ 78%] Building CXX object timeClient/src/CMakeFiles/timeClient.dir/main_timeClient.cpp.o
[ 81%] Building CXX object timeClient/src/CMakeFiles/timeClient.dir/WatchappProxy.cpp.o
[ 83%] Building CXX object timeClient/src/CMakeFiles/timeClient.dir/timeservice_proxy.cpp.o
[ 86%] Building CXX object timeClient/src/CMakeFiles/timeClient.dir/getTime.cpp.o
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp: In static member function ‘static ara::com::FindServiceHandle proxy::timeServiceProxy::StartFindService(ara::com::FindServiceHandler<proxy::timeServiceProxy::HandleType>, ara::com::InstanceIdentifier)’:
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp:58:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp: In function ‘void callback(const srv_info&)’:
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp:76:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<timeServiceProxy::handlesVec.size();i++){
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp:77:22: warning: variable ‘temp’ set but not used [-Wunused-but-set-variable]
auto temp = timeServiceProxy::handlesVec[i].GetInstanceId();
^~~~
In file included from /opt/ros/melodic/include/ros/ros.h:40:0,
from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/../inc/getTime.hpp:9,
from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:1:
......@@ -35,28 +49,12 @@ In file included from /opt/ros/melodic/include/ros/ros.h:40:0,
/opt/ros/melodic/include/rosconsole/macros_generated.h:110:23: note: in expansion of macro ‘ROS_LOG’
#define ROS_INFO(...) ROS_LOG(::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
^~~~~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:23:9: note: in expansion of macro ‘ROS_INFO’
ROS_INFO("ID_: %i\nHours: %i\nMinutes: %i\nSeconds: %i", srv.request.srv_id, srv.response.hours,srv.response.minutes,srv.response.seconds);
^
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:32:9: error: ‘cout’ was not declared in this scope
cout<<"\n###########**************\n"
^~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:32:9: note: suggested alternative:
In file included from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/../inc/ara/core/string_view.h:45:0,
from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/../inc/ara/core/error_code.h:43,
from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/../inc/ara/core/future_error_domain.h:43,
from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/../inc/ara/core/future.h:55,
from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/../inc/getTime.hpp:5,
from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:1:
/usr/include/c++/7/iostream:61:18: note:  ‘std::cout’
extern ostream cout; /// Linked to standard output
^~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:21:13: note: in expansion of macro ‘ROS_INFO’
ROS_INFO("ID_: %i\nHours: %i\nMinutes: %i\nSeconds: %i", srv.request.srv_id, srv.response.hours,srv.response.minutes,srv.response.seconds);
^
[ 89%] Building CXX object timeClient/src/CMakeFiles/timeClient.dir/timeClient_activity.cpp.o
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:36:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
timeClient/src/CMakeFiles/timeClient.dir/build.make:182: recipe for target 'timeClient/src/CMakeFiles/timeClient.dir/getTime.cpp.o' failed
make[2]: *** [timeClient/src/CMakeFiles/timeClient.dir/getTime.cpp.o] Error 1
CMakeFiles/Makefile2:1474: recipe for target 'timeClient/src/CMakeFiles/timeClient.dir/all' failed
make[1]: *** [timeClient/src/CMakeFiles/timeClient.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
[ 91%] Linking CXX executable /home/mohamed/Yono_Drive/adaptive_timeclient/devel/.private/timeClient/lib/timeClient/timeClient
[100%] Built target timeClient
[ 0%] Built target std_msgs_generate_messages_py
[ 0%] Built target _timeClient_generate_messages_check_deps_event_data
[ 0%] Built target _timeClient_generate_messages_check_deps_time_srv
[ 0%] Built target _timeClient_generate_messages_check_deps_time
[ 0%] Built target std_msgs_generate_messages_lisp
[ 0%] Built target std_msgs_generate_messages_nodejs
[ 0%] Built target _timeClient_generate_messages_check_deps_subscription
[ 0%] Built target std_msgs_generate_messages_cpp
[ 0%] Built target _timeClient_generate_messages_check_deps_srv_info
[ 0%] Built target std_msgs_generate_messages_eus
[ 13%] Built target timeClient_generate_messages_nodejs
[ 27%] Built target timeClient_generate_messages_lisp
[ 45%] Built target timeClient_generate_messages_py
[ 59%] Built target timeClient_generate_messages_cpp
[ 75%] Built target timeClient_generate_messages_eus
Scanning dependencies of target timeClient
[ 75%] Built target timeClient_generate_messages
[ 78%] Building CXX object timeClient/src/CMakeFiles/timeClient.dir/getTime.cpp.o
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp: In static member function ‘static ara::com::FindServiceHandle proxy::timeServiceProxy::StartFindService(ara::com::FindServiceHandler<proxy::timeServiceProxy::HandleType>, ara::com::InstanceIdentifier)’:
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp:58:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp: In function ‘void callback(const srv_info&)’:
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp:76:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<timeServiceProxy::handlesVec.size();i++){
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp:77:22: warning: variable ‘temp’ set but not used [-Wunused-but-set-variable]
auto temp = timeServiceProxy::handlesVec[i].GetInstanceId();
^~~~
In file included from /opt/ros/melodic/include/ros/ros.h:40:0,
from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/../inc/getTime.hpp:9,
from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:1:
......@@ -35,28 +28,9 @@ In file included from /opt/ros/melodic/include/ros/ros.h:40:0,
/opt/ros/melodic/include/rosconsole/macros_generated.h:110:23: note: in expansion of macro ‘ROS_LOG’
#define ROS_INFO(...) ROS_LOG(::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
^~~~~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:23:9: note: in expansion of macro ‘ROS_INFO’
ROS_INFO("ID_: %i\nHours: %i\nMinutes: %i\nSeconds: %i", srv.request.srv_id, srv.response.hours,srv.response.minutes,srv.response.seconds);
^
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:32:9: error: ‘cout’ was not declared in this scope
cout<<"\n###########**************\n";
^~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:32:9: note: suggested alternative:
In file included from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/../inc/ara/core/string_view.h:45:0,
from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/../inc/ara/core/error_code.h:43,
from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/../inc/ara/core/future_error_domain.h:43,
from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/../inc/ara/core/future.h:55,
from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/../inc/getTime.hpp:5,
from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:1:
/usr/include/c++/7/iostream:61:18: note:  ‘std::cout’
extern ostream cout; /// Linked to standard output
^~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:21:13: note: in expansion of macro ‘ROS_INFO’
ROS_INFO("ID_: %i\nHours: %i\nMinutes: %i\nSeconds: %i", srv.request.srv_id, srv.response.hours,srv.response.minutes,srv.response.seconds);
^
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:36:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
timeClient/src/CMakeFiles/timeClient.dir/build.make:182: recipe for target 'timeClient/src/CMakeFiles/timeClient.dir/getTime.cpp.o' failed
make[2]: *** [timeClient/src/CMakeFiles/timeClient.dir/getTime.cpp.o] Error 1
CMakeFiles/Makefile2:1474: recipe for target 'timeClient/src/CMakeFiles/timeClient.dir/all' failed
make[1]: *** [timeClient/src/CMakeFiles/timeClient.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
[ 0%] Built target std_msgs_generate_messages_py
[ 0%] Built target _timeClient_generate_messages_check_deps_time_srv
[ 0%] Built target _timeClient_generate_messages_check_deps_event_data
[ 0%] Built target _timeClient_generate_messages_check_deps_time
[ 0%] Built target std_msgs_generate_messages_nodejs
[ 0%] Built target _timeClient_generate_messages_check_deps_event_data
[ 0%] Built target std_msgs_generate_messages_lisp
[ 0%] Built target _timeClient_generate_messages_check_deps_subscription
[ 0%] Built target std_msgs_generate_messages_nodejs
[ 0%] Built target _timeClient_generate_messages_check_deps_srv_info
[ 0%] Built target std_msgs_generate_messages_cpp
[ 0%] Built target std_msgs_generate_messages_eus
[ 18%] Built target timeClient_generate_messages_py
[ 32%] Built target timeClient_generate_messages_lisp
[ 45%] Built target timeClient_generate_messages_nodejs
[ 45%] Built target timeClient_generate_messages_lisp
[ 59%] Built target timeClient_generate_messages_cpp
Scanning dependencies of target timeClient
[ 75%] Built target timeClient_generate_messages_eus
[ 75%] Built target timeClient_generate_messages
[ 78%] Building CXX object timeClient/src/CMakeFiles/timeClient.dir/WatchappProxy.cpp.o
[ 81%] Building CXX object timeClient/src/CMakeFiles/timeClient.dir/timeservice_proxy.cpp.o
[ 83%] Building CXX object timeClient/src/CMakeFiles/timeClient.dir/getTime.cpp.o
[ 86%] Building CXX object timeClient/src/CMakeFiles/timeClient.dir/main_timeClient.cpp.o
[ 78%] Building CXX object timeClient/src/CMakeFiles/timeClient.dir/main_timeClient.cpp.o
[ 81%] Building CXX object timeClient/src/CMakeFiles/timeClient.dir/WatchappProxy.cpp.o
[ 83%] Building CXX object timeClient/src/CMakeFiles/timeClient.dir/timeservice_proxy.cpp.o
[ 86%] Building CXX object timeClient/src/CMakeFiles/timeClient.dir/getTime.cpp.o
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp: In static member function ‘static ara::com::FindServiceHandle proxy::timeServiceProxy::StartFindService(ara::com::FindServiceHandler<proxy::timeServiceProxy::HandleType>, ara::com::InstanceIdentifier)’:
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp:58:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp: In function ‘void callback(const srv_info&)’:
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp:76:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<timeServiceProxy::handlesVec.size();i++){
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp:77:22: warning: variable ‘temp’ set but not used [-Wunused-but-set-variable]
auto temp = timeServiceProxy::handlesVec[i].GetInstanceId();
^~~~
In file included from /opt/ros/melodic/include/ros/ros.h:40:0,
from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/../inc/getTime.hpp:9,
from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:1:
......@@ -38,23 +49,12 @@ In file included from /opt/ros/melodic/include/ros/ros.h:40:0,
/opt/ros/melodic/include/rosconsole/macros_generated.h:110:23: note: in expansion of macro ‘ROS_LOG’
#define ROS_INFO(...) ROS_LOG(::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
^~~~~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:20:9: note: in expansion of macro ‘ROS_INFO’
ROS_INFO("ID_: %i\nHours: %i\nMinutes: %i\nSeconds: %i", srv.request.srv_id, srv.response.hours,srv.response.minutes,srv.response.seconds);
^
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp: In static member function ‘static ara::com::FindServiceHandle proxy::timeServiceProxy::StartFindService(ara::com::FindServiceHandler<proxy::timeServiceProxy::HandleType>, ara::com::InstanceIdentifier)’:
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp:58:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp: In function ‘void callback(const srv_info&)’:
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp:74:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<timeServiceProxy::handlesVec.size();i++){
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp:75:22: warning: variable ‘temp’ set but not used [-Wunused-but-set-variable]
auto temp = timeServiceProxy::handlesVec[i].GetInstanceId();
^~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:29:1: warning: control reaches end of non-void function [-Wreturn-type]
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:21:13: note: in expansion of macro ‘ROS_INFO’
ROS_INFO("ID_: %i\nHours: %i\nMinutes: %i\nSeconds: %i", srv.request.srv_id, srv.response.hours,srv.response.minutes,srv.response.seconds);
^
[ 89%] Building CXX object timeClient/src/CMakeFiles/timeClient.dir/timeClient_activity.cpp.o
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:36:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
[ 89%] Building CXX object timeClient/src/CMakeFiles/timeClient.dir/timeClient_activity.cpp.o
[ 91%] Linking CXX executable /home/mohamed/Yono_Drive/adaptive_timeclient/devel/.private/timeClient/lib/timeClient/timeClient
[100%] Built target timeClient
......@@ -2,5 +2,71 @@
"python.autoComplete.extraPaths": [
"/home/mohamed/Yono_Drive/adaptive_timeclient/devel/lib/python2.7/dist-packages",
"/opt/ros/melodic/lib/python2.7/dist-packages"
]
],
"files.associations": {
"cctype": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"csignal": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"array": "cpp",
"atomic": "cpp",
"strstream": "cpp",
"*.tcc": "cpp",
"bitset": "cpp",
"chrono": "cpp",
"complex": "cpp",
"condition_variable": "cpp",
"cstdint": "cpp",
"deque": "cpp",
"list": "cpp",
"unordered_map": "cpp",
"unordered_set": "cpp",
"vector": "cpp",
"exception": "cpp",