Commit a16dd8a3 authored by Mohamed Ahmed's avatar Mohamed Ahmed

Handling sudden shut down of the service instance

parent 09fdeb9d
/home/mohamed/Yono_Drive/adaptive_timeclient/devel/./cmake.lock 14
/home/mohamed/Yono_Drive/adaptive_timeclient/devel/./cmake.lock 20
/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
[ 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_subscription
[ 0%] Built target std_msgs_generate_messages_nodejs
[ 0%] Built target std_msgs_generate_messages_lisp
[ 0%] Built target std_msgs_generate_messages_cpp
[ 0%] Built target std_msgs_generate_messages_eus
[ 0%] Built target _timeClient_generate_messages_check_deps_srv_info
[ 27%] Built target timeClient_generate_messages_lisp
[ 27%] Built target timeClient_generate_messages_nodejs
[ 40%] Built target timeClient_generate_messages_cpp
[ 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::serviceAvailabilityCallback(ara::com::ServiceHandleContainer<proxy::timeServiceProxy::HandleType>, ara::com::FindServiceHandle)’:
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeClient_activity.cpp:111:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i<handles.size();i++){
~^~~~~~~~~~~~~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeClient_activity.cpp:138:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1; i<handles.size();i++){
~^~~~~~~~~~~~~~~
[ 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 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 std_msgs_generate_messages_eus
[ 0%] Built target _timeClient_generate_messages_check_deps_srv_info
[ 56%] Built target timeClient_generate_messages_lisp
[ 56%] Built target timeClient_generate_messages_nodejs
[ 59%] Built target timeClient_generate_messages_cpp
[ 59%] Built target timeClient_generate_messages_py
Scanning dependencies of target timeClient
[ 75%] Built target timeClient_generate_messages_eus
[ 81%] 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
[ 83%] Built target timeClient_generate_messages
[ 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: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/timeservice_proxy.cpp:87:35: error: invalid use of non-static data member ‘proxy::timeServiceProxy::getTime’
else if(timeServiceProxy::getTime.is_srv_running == false | (msg.current_state == "off" && timeServiceProxy::handlesVec.size()>0)) //Last time to see the service at this time
^~~~~~~
In file included from /home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeservice_proxy.cpp:3:0:
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/../inc/timeservice_proxy.hpp:148:22: note: declared here
methods::getTime getTime;
^~~~~~~
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:
......@@ -56,17 +17,26 @@ 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:22:9: note: in expansion of macro ‘ROS_INFO’
/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);
^
[ 89%] Building CXX object timeClient/src/CMakeFiles/timeClient.dir/timeClient_activity.cpp.o
timeClient/src/CMakeFiles/timeClient.dir/build.make:158: recipe for target 'timeClient/src/CMakeFiles/timeClient.dir/timeservice_proxy.cpp.o' failed
make[2]: *** [timeClient/src/CMakeFiles/timeClient.dir/timeservice_proxy.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:34:1: warning: control reaches end of non-void function [-Wreturn-type]
/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:35:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
CMakeFiles/Makefile2:1474: recipe for target 'timeClient/src/CMakeFiles/timeClient.dir/all' failed
CMakeFiles/timeClient.dir/getTime.cpp.o:(.bss+0x0): multiple definition of `methods::getTime::current_service_state'
CMakeFiles/timeClient.dir/timeservice_proxy.cpp.o:(.bss+0x58): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [/home/mohamed/Yono_Drive/adaptive_timeclient/devel/.private/timeClient/lib/timeClient/timeClient] Error 1
make[1]: *** [timeClient/src/CMakeFiles/timeClient.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
......@@ -2,26 +2,30 @@
[ 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_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_cpp
[ 0%] Built target _timeClient_generate_messages_check_deps_srv_info
[ 0%] Built target std_msgs_generate_messages_eus
[ 18%] Built target timeClient_generate_messages_py
[ 32%] Built target timeClient_generate_messages_lisp
[ 29%] Built target timeClient_generate_messages_lisp
[ 45%] Built target timeClient_generate_messages_nodejs
[ 32%] 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/timeClient_activity.cpp.o
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeClient_activity.cpp: In member function ‘void Timeactivity::serviceAvailabilityCallback(ara::com::ServiceHandleContainer<proxy::timeServiceProxy::HandleType>, ara::com::FindServiceHandle)’:
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeClient_activity.cpp:111:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1; i<handles.size();i++){
~^~~~~~~~~~~~~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeClient_activity.cpp:137:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1; i<handles.size();i++){
~^~~~~~~~~~~~~~~
[ 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]
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();
^~~~
[ 81%] Linking CXX executable /home/mohamed/Yono_Drive/adaptive_timeclient/devel/.private/timeClient/lib/timeClient/timeClient
[100%] Built target 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: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();
^~~~
[ 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 _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
[ 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
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:
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp: In member function ‘ara::core::Future<timeService::getTimeOutput> methods::getTime::operator()()’:
/opt/ros/melodic/include/ros/console.h:348:176: warning: format ‘%i’ expects argument of type ‘int’, but argument 8 has type ‘timeClient::time_srvRequest_<std::allocator<void> >::_srv_id_type {aka std::__cxx11::basic_string<char>}’ [-Wformat=]
::ros::console::print(filter, __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, __FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__)
^
/opt/ros/melodic/include/ros/console.h:351:5: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER’
ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(NULL, __VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:387:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION’
ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:572:35: note: in expansion of macro ‘ROS_LOG_COND’
#define ROS_LOG(level, name, ...) ROS_LOG_COND(true, level, name, __VA_ARGS__)
^~~~~~~~~~~~
/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: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
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:
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp: In member function ‘ara::core::Future<timeService::getTimeOutput> methods::getTime::operator()()’:
/opt/ros/melodic/include/ros/console.h:348:176: warning: format ‘%i’ expects argument of type ‘int’, but argument 8 has type ‘timeClient::time_srvRequest_<std::allocator<void> >::_srv_id_type {aka std::__cxx11::basic_string<char>}’ [-Wformat=]
::ros::console::print(filter, __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, __FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__)
^
/opt/ros/melodic/include/ros/console.h:351:5: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER’
ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(NULL, __VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:387:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION’
ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:572:35: note: in expansion of macro ‘ROS_LOG_COND’
#define ROS_LOG(level, name, ...) ROS_LOG_COND(true, level, name, __VA_ARGS__)
^~~~~~~~~~~~
/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:36:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[2]: *** [timeClient/src/CMakeFiles/timeClient.dir/getTime.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
[ 0%] Built target _timeClient_generate_messages_check_deps_time_srv
[ 0%] Built target _timeClient_generate_messages_check_deps_subscription
[ 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 std_msgs_generate_messages_eus
[ 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
[ 13%] Built target timeClient_generate_messages_lisp
[ 27%] Built target timeClient_generate_messages_cpp
[ 48%] Built target timeClient_generate_messages_py
[ 59%] Built target timeClient_generate_messages_nodejs
Scanning dependencies of target timeClient
[ 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
[ 78%] Built target timeClient_generate_messages
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,44 +35,23 @@ 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’
/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:29:9: error: ‘proxy’ has not been declared
proxy::timeServiceProxy::HandleType handle;
^~~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:30:9: error: ‘handle’ was not declared in this scope
handle.SetInstanceId(timeServiceProxy::instanceID_);
^~~~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:30:9: note: suggested alternative: ‘rand_r’
handle.SetInstanceId(timeServiceProxy::instanceID_);
^~~~~~
rand_r
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:30:30: error: ‘timeServiceProxy’ has not been declared
handle.SetInstanceId(timeServiceProxy::instanceID_);
^~~~~~~~~~~~~~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:31:14: error: ‘ara::com’ has not been declared
ara::com::FindServiceHandle f;
^~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:32:29: error: ‘timeServiceProxy’ has not been declared
auto it = std::find(timeServiceProxy::handlesVec.begin(), timeServiceProxy::handlesVec.end(), handle);
^~~~~~~~~~~~~~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:32:67: error: ‘timeServiceProxy’ has not been declared
auto it = std::find(timeServiceProxy::handlesVec.begin(), timeServiceProxy::handlesVec.end(), handle);
^~~~~~~~~~~~~~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:34:9: error: ‘timeServiceProxy’ has not been declared
timeServiceProxy::handlesVec.erase(it);
^~~~~~~~~~~~~~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:35:9: error: ‘timeServiceProxy’ has not been declared
timeServiceProxy::proxyHandler(timeServiceProxy::handlesVec, f);
^~~~~~~~~~~~~~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:35:40: error: ‘timeServiceProxy’ has not been declared
timeServiceProxy::proxyHandler(timeServiceProxy::handlesVec, f);
^~~~~~~~~~~~~~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:35:70: error: ‘f’ was not declared in this scope
timeServiceProxy::proxyHandler(timeServiceProxy::handlesVec, f);
^
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp:38:1: warning: control reaches end of non-void function [-Wreturn-type]
/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: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
......
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:
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp: In member function ‘ara::core::Future<timeService::getTimeOutput> methods::getTime::operator()()’:
/opt/ros/melodic/include/ros/console.h:348:176: warning: format ‘%i’ expects argument of type ‘int’, but argument 8 has type ‘timeClient::time_srvRequest_<std::allocator<void> >::_srv_id_type {aka std::__cxx11::basic_string<char>}’ [-Wformat=]
::ros::console::print(filter, __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, __FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__)
^
/opt/ros/melodic/include/ros/console.h:351:5: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER’
ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(NULL, __VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:387:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION’
ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:572:35: note: in expansion of macro ‘ROS_LOG_COND’
#define ROS_LOG(level, name, ...) ROS_LOG_COND(true, level, name, __VA_ARGS__)
^~~~~~~~~~~~
/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:36:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[2]: *** [timeClient/src/CMakeFiles/timeClient.dir/getTime.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
[ 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:
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp: In member function ‘ara::core::Future<timeService::getTimeOutput> methods::getTime::operator()()’:
/opt/ros/melodic/include/ros/console.h:348:176: warning: format ‘%i’ expects argument of type ‘int’, but argument 8 has type ‘timeClient::time_srvRequest_<std::allocator<void> >::_srv_id_type {aka std::__cxx11::basic_string<char>}’ [-Wformat=]
::ros::console::print(filter, __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, __FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__)
^
/opt/ros/melodic/include/ros/console.h:351:5: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER’
ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(NULL, __VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:387:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION’
ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:572:35: note: in expansion of macro ‘ROS_LOG_COND’
#define ROS_LOG(level, name, ...) ROS_LOG_COND(true, level, name, __VA_ARGS__)
^~~~~~~~~~~~
/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]
}
^
[ 81%] Linking CXX executable /home/mohamed/Yono_Drive/adaptive_timeclient/devel/.private/timeClient/lib/timeClient/timeClient
[100%] Built target timeClient
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:
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp: In member function ‘ara::core::Future<timeService::getTimeOutput> methods::getTime::operator()()’:
/opt/ros/melodic/include/ros/console.h:348:176: warning: format ‘%i’ expects argument of type ‘int’, but argument 8 has type ‘timeClient::time_srvRequest_<std::allocator<void> >::_srv_id_type {aka std::__cxx11::basic_string<char>}’ [-Wformat=]
::ros::console::print(filter, __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, __FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__)
^
/opt/ros/melodic/include/ros/console.h:351:5: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER’
ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(NULL, __VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:387:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION’
ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:572:35: note: in expansion of macro ‘ROS_LOG_COND’
#define ROS_LOG(level, name, ...) ROS_LOG_COND(true, level, name, __VA_ARGS__)
^~~~~~~~~~~~
/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]
}
^
[ 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 _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
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:
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/getTime.cpp: In member function ‘ara::core::Future<timeService::getTimeOutput> methods::getTime::operator()()’:
/opt/ros/melodic/include/ros/console.h:348:176: warning: format ‘%i’ expects argument of type ‘int’, but argument 8 has type ‘timeClient::time_srvRequest_<std::allocator<void> >::_srv_id_type {aka std::__cxx11::basic_string<char>}’ [-Wformat=]
::ros::console::print(filter, __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, __FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__)
^
/opt/ros/melodic/include/ros/console.h:351:5: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER’
ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(NULL, __VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:387:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION’
ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:572:35: note: in expansion of macro ‘ROS_LOG_COND’
#define ROS_LOG(level, name, ...) ROS_LOG_COND(true, level, name, __VA_ARGS__)
^~~~~~~~~~~~
/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’
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]
}
^
[ 81%] Linking CXX executable /home/mohamed/Yono_Drive/adaptive_timeclient/devel/.private/timeClient/lib/timeClient/timeClient
[100%] Built target timeClient
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: