Commit 09fdeb9d authored by Mohamed Ahmed's avatar Mohamed Ahmed

Adding adaptive connection by first handle

parent 30debdbe
/home/mohamed/Yono_Drive/adaptive_timeclient/devel/./cmake.lock 6
/home/mohamed/Yono_Drive/adaptive_timeclient/devel/./cmake.lock 14
/home/mohamed/adaptive_timeclient/devel/./cmake.lock 10
Loading environment from: /home/mohamed/Yono_Drive/adaptive_timeclient/devel/env.sh
Loading environment from: /home/mohamed/Yono_Drive/adaptive_timeclient/devel/env.sh
Loading environment from: /home/mohamed/Yono_Drive/adaptive_timeclient/devel/env.sh
Loading environment from: /home/mohamed/Yono_Drive/adaptive_timeclient/devel/env.sh
[ 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_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 _timeClient_generate_messages_check_deps_srv_info
[ 0%] Built target std_msgs_generate_messages_eus
[ 13%] Built target timeClient_generate_messages_lisp
[ 40%] 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
[100%] Built target timeClient
[100%] 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:109:21: error: ‘timeServiceProxy’ has not been declared
timeServiceProxy::HandleType handle;
^~~~~~~~~~~~~~~~
/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:114:29: error: ‘handle’ was not declared in this scope
handle.SetInstanceId(service_id);
^~~~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeClient_activity.cpp:114:29: note: suggested alternative: ‘handles’
handle.SetInstanceId(service_id);
^~~~~~
handles
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeClient_activity.cpp:117:73: error: ‘handle’ was not declared in this scope
auto it = std::find(handles.begin(), handles.end(), handle);
^~~~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeClient_activity.cpp:117:73: note: suggested alternative: ‘handles’
auto it = std::find(handles.begin(), handles.end(), handle);
^~~~~~
handles
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeClient_activity.cpp:134:21: error: ‘timeServiceProxy’ has not been declared
timeServiceProxy::HandleType handle;
^~~~~~~~~~~~~~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeClient_activity.cpp:136: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:139:29: error: ‘handle’ was not declared in this scope
handle.SetInstanceId(service_id);
^~~~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeClient_activity.cpp:139:29: note: suggested alternative: ‘handles’
handle.SetInstanceId(service_id);
^~~~~~
handles
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeClient_activity.cpp:142:73: error: ‘handle’ was not declared in this scope
auto it = std::find(handles.begin(), handles.end(), handle);
^~~~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeClient_activity.cpp:142:73: note: suggested alternative: ‘handles’
auto it = std::find(handles.begin(), handles.end(), handle);
^~~~~~
handles
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
/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:136:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1; i<handles.size();i++){
~^~~~~~~~~~~~~~~
[ 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_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
[ 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++){
~^~~~~~~~~~~~~~~
[ 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/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++){
~^~~~~~~~~~~~~~~
[ 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 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_lisp
[ 40%] Built target timeClient_generate_messages_cpp
[ 40%] Built target timeClient_generate_messages_nodejs
[ 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:120:36: error: ‘endl’ was not declared in this scope
std::cout<<id<<endl;
^~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeClient_activity.cpp:120:36: 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)
^~~~
/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++){
~^~~~~~~~~~~~~~~
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::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:120:36: error: ‘endl’ was not declared in this scope
std::cout<<id<<endl;
^~~~
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeClient_activity.cpp:120:36: 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)
^~~~
/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++){
~^~~~~~~~~~~~~~~
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
[ 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 std_msgs_generate_messages_nodejs
[ 0%] Built target _timeClient_generate_messages_check_deps_subscription
[ 0%] Built target std_msgs_generate_messages_eus
[ 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
[ 13%] Built target timeClient_generate_messages_lisp
[ 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
[ 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
[ 86%] Built target timeClient_generate_messages
[ 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
/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++){
~^~~~~~~~~~~~~~~
[ 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_event_data
[ 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_subscription
[ 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
[ 32%] Built target timeClient_generate_messages_py
[ 45%] Built target timeClient_generate_messages_nodejs
[ 45%] 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
[ 78%] Built target timeClient_generate_messages
[ 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:110:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/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:131: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
/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++){
~^~~~~~~~~~~~~~~
[ 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 _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
[ 0%] Built target std_msgs_generate_messages_cpp
[ 13%] Built target timeClient_generate_messages_lisp
[ 27%] Built target timeClient_generate_messages_nodejs
[ 43%] Built target timeClient_generate_messages_nodejs
[ 45%] Built target timeClient_generate_messages_py
[ 62%] Built target timeClient_generate_messages_eus
[ 75%] Built target timeClient_generate_messages_cpp
[ 43%] 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
/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:110:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/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:131: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
/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++){
~^~~~~~~~~~~~~~~
......@@ -5,23 +5,23 @@
[ 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_cpp
[ 0%] Built target std_msgs_generate_messages_eus
[ 13%] Built target timeClient_generate_messages_lisp
[ 27%] Built target timeClient_generate_messages_nodejs
[ 70%] Built target timeClient_generate_messages_py
[ 72%] Built target timeClient_generate_messages_cpp
[ 32%] Built target timeClient_generate_messages_py
[ 45%] Built target timeClient_generate_messages_cpp
[ 59%] Built target timeClient_generate_messages_nodejs
[ 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::serviceAvailabilityCallback(ara::com::ServiceHandleContainer<proxy::timeServiceProxy::HandleType>, ara::com::FindServiceHandle)’:
/home/mohamed/Yono_Drive/adaptive_timeclient/src/timeClient/timeClient/src/timeClient_activity.cpp:110:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/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:131:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/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 = 0; i<handles.size();i++){
~^~~~~~~~~~~~~~~
[ 81%] Linking CXX executable /home/mohamed/Yono_Drive/adaptive_timeclient/devel/.private/timeClient/lib/timeClient/timeClient
[100%] Built target timeClient
[100%] 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 = 0; i<handles.size();i++){
~^~~~~~~~~~~~~~~
[ 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 std_msgs_generate_messages_nodejs
[ 0%] Built target _timeClient_generate_messages_check_deps_subscription
[ 0%] Built target std_msgs_generate_messages_eus
[ 0%] Built target std_msgs_generate_messages_cpp
[ 0%] Built target _timeClient_generate_messages_check_deps_srv_info
[ 29%] Built target timeClient_generate_messages_lisp
[ 32%] Built target timeClient_generate_messages_py
[ 45%] Built target timeClient_generate_messages_nodejs
[ 59%] Built target timeClient_generate_messages_cpp
Scanning dependencies of target timeClient
[ 75%] Built target timeClient_generate_messages_eus
[ 78%] Building CXX object timeClient/src/CMakeFiles/timeClient.dir/getTime.cpp.o
[ 81%] Building CXX object timeClient/src/CMakeFiles/timeClient.dir/timeservice_proxy.cpp.o
[ 83%] Building CXX object timeClient/src/CMakeFiles/timeClient.dir/timeClient_activity.cpp.o
[ 83%] 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:
/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: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/getTime.cpp:29:9: error: ‘timeServiceProxy’ has not been declared
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/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:38: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
make[2]: *** Waiting for unfinished jobs....
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: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/getTime.cpp:29:9: error: ‘timeServiceProxy’ has not been declared
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/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