service
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
Invoking command in '/home/quella/ROS2Demo/service/service_server/build/service_server': CMAKE_PREFIX_PATH=/opt/ros/humble /usr/bin/cmake --build /home/quella/ROS2Demo/service/service_server/build/service_server -- -j16 -l16
|
||||
Invoked command in '/home/quella/ROS2Demo/service/service_server/build/service_server' returned '2': CMAKE_PREFIX_PATH=/opt/ros/humble /usr/bin/cmake --build /home/quella/ROS2Demo/service/service_server/build/service_server -- -j16 -l16
|
@@ -0,0 +1,61 @@
|
||||
In file included from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/service.hpp:36[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/callback_group.hpp:28[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:20[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155[m[K,
|
||||
from [01m[K/home/quella/ROS2Demo/service/service_server/src/turtle_contrl.cpp:1[m[K:
|
||||
/opt/ros/humble/include/rclcpp/rclcpp/any_service_callback.hpp: In instantiation of ‘[01m[Kvoid rclcpp::AnyServiceCallback<ServiceT>::set(CallbackT&&) [with CallbackT = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>; typename std::enable_if<(! rclcpp::detail::can_be_nullptr<CallbackT>::value), int>::type <anonymous> = 0; ServiceT = service_interfaces::srv::Patrol][m[K’:
|
||||
[01m[K/opt/ros/humble/include/rclcpp/rclcpp/create_service.hpp:43:27:[m[K required from ‘[01m[Ktypename rclcpp::Service<ServiceT>::SharedPtr rclcpp::create_service(std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeServicesInterface>, const string&, CallbackT&&, const rmw_qos_profile_t&, rclcpp::CallbackGroup::SharedPtr) [with ServiceT = service_interfaces::srv::Patrol; CallbackT = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>; typename rclcpp::Service<ServiceT>::SharedPtr = std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >; std::string = std::__cxx11::basic_string<char>; rmw_qos_profile_t = rmw_qos_profile_s; rclcpp::CallbackGroup::SharedPtr = std::shared_ptr<rclcpp::CallbackGroup>][m[K’
|
||||
[01m[K/opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp:147:53:[m[K required from ‘[01m[Ktypename rclcpp::Service<ServiceT>::SharedPtr rclcpp::Node::create_service(const string&, CallbackT&&, const rmw_qos_profile_t&, rclcpp::CallbackGroup::SharedPtr) [with ServiceT = service_interfaces::srv::Patrol; CallbackT = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>; typename rclcpp::Service<ServiceT>::SharedPtr = std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >; std::string = std::__cxx11::basic_string<char>; rmw_qos_profile_t = rmw_qos_profile_s; rclcpp::CallbackGroup::SharedPtr = std::shared_ptr<rclcpp::CallbackGroup>][m[K’
|
||||
[01m[K/home/quella/ROS2Demo/service/service_server/src/turtle_contrl.cpp:16:54:[m[K required from here
|
||||
[01m[K/opt/ros/humble/include/rclcpp/rclcpp/any_service_callback.hpp:103:17:[m[K [01;31m[Kerror: [m[Kno match for ‘[01m[Koperator=[m[K’ (operand types are ‘[01m[Kstd::variant<std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)> >[m[K’ and ‘[01m[Kstd::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>[m[K’)
|
||||
103 | [01;31m[Kcallback_ = std::forward<CallbackT>(callback)[m[K;
|
||||
| [01;31m[K~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[m[K
|
||||
In file included from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/client.hpp:28[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/callback_group.hpp:24[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:20[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155[m[K,
|
||||
from [01m[K/home/quella/ROS2Demo/service/service_server/src/turtle_contrl.cpp:1[m[K:
|
||||
[01m[K/usr/include/c++/11/variant:1461:9:[m[K [01;36m[Knote: [m[Kcandidate: ‘[01m[Ktemplate<class _Tp> std::enable_if_t<((__exactly_once<std::variant<_Types>::__accepted_type<_Tp&&, typename std::enable_if<__not_self<_Tp&&>, void>::type> > && is_constructible_v<std::variant<_Types>::__accepted_type<_Tp&&, typename std::enable_if<__not_self<_Tp&&>, void>::type>, _Tp>) && is_assignable_v<std::variant<_Types>::__accepted_type<_Tp&&, typename std::enable_if<__not_self<_Tp&&>, void>::type>&, _Tp>), std::variant<_Types>&> std::variant<_Types>::operator=(_Tp&&) [with _Tp = _Tp; _Types = {std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>}][m[K’
|
||||
1461 | [01;36m[Koperator[m[K=(_Tp&& __rhs)
|
||||
| [01;36m[K^~~~~~~~[m[K
|
||||
[01m[K/usr/include/c++/11/variant:1461:9:[m[K [01;36m[Knote: [m[K template argument deduction/substitution failed:
|
||||
/usr/include/c++/11/variant: In substitution of ‘[01m[Ktemplate<class ... _Types> template<class _Tp, class> using __accepted_type = std::variant<_Types>::__to_type<__accepted_index<_Tp> > [with _Tp = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>&&; <template-parameter-2-2> = void; _Types = {std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>}][m[K’:
|
||||
[01m[K/usr/include/c++/11/variant:1457:14:[m[K required by substitution of ‘[01m[Ktemplate<class _Tp> std::enable_if_t<((__exactly_once<std::variant<std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)> >::__accepted_type<_Tp&&, typename std::enable_if<__not_self<_Tp&&>, void>::type> > && is_constructible_v<std::variant<std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)> >::__accepted_type<_Tp&&, typename std::enable_if<__not_self<_Tp&&>, void>::type>, _Tp>) && is_assignable_v<std::variant<std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)> >::__accepted_type<_Tp&&, typename std::enable_if<__not_self<_Tp&&>, void>::type>&, _Tp>), std::variant<std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)> >&> std::variant<std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)> >::operator=<_Tp>(_Tp&&) [with _Tp = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>][m[K’
|
||||
[01m[K/opt/ros/humble/include/rclcpp/rclcpp/any_service_callback.hpp:103:17:[m[K required from ‘[01m[Kvoid rclcpp::AnyServiceCallback<ServiceT>::set(CallbackT&&) [with CallbackT = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>; typename std::enable_if<(! rclcpp::detail::can_be_nullptr<CallbackT>::value), int>::type <anonymous> = 0; ServiceT = service_interfaces::srv::Patrol][m[K’
|
||||
[01m[K/opt/ros/humble/include/rclcpp/rclcpp/create_service.hpp:43:27:[m[K required from ‘[01m[Ktypename rclcpp::Service<ServiceT>::SharedPtr rclcpp::create_service(std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeServicesInterface>, const string&, CallbackT&&, const rmw_qos_profile_t&, rclcpp::CallbackGroup::SharedPtr) [with ServiceT = service_interfaces::srv::Patrol; CallbackT = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>; typename rclcpp::Service<ServiceT>::SharedPtr = std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >; std::string = std::__cxx11::basic_string<char>; rmw_qos_profile_t = rmw_qos_profile_s; rclcpp::CallbackGroup::SharedPtr = std::shared_ptr<rclcpp::CallbackGroup>][m[K’
|
||||
[01m[K/opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp:147:53:[m[K required from ‘[01m[Ktypename rclcpp::Service<ServiceT>::SharedPtr rclcpp::Node::create_service(const string&, CallbackT&&, const rmw_qos_profile_t&, rclcpp::CallbackGroup::SharedPtr) [with ServiceT = service_interfaces::srv::Patrol; CallbackT = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>; typename rclcpp::Service<ServiceT>::SharedPtr = std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >; std::string = std::__cxx11::basic_string<char>; rmw_qos_profile_t = rmw_qos_profile_s; rclcpp::CallbackGroup::SharedPtr = std::shared_ptr<rclcpp::CallbackGroup>][m[K’
|
||||
[01m[K/home/quella/ROS2Demo/service/service_server/src/turtle_contrl.cpp:16:54:[m[K required from here
|
||||
[01m[K/usr/include/c++/11/variant:1375:15:[m[K [01;31m[Kerror: [m[Kno type named ‘[01m[Ktype[m[K’ in ‘[01m[Kstruct std::enable_if<false, void>[m[K’
|
||||
1375 | using [01;31m[K__accepted_type[m[K = __to_type<__accepted_index<_Tp>>;
|
||||
| [01;31m[K^~~~~~~~~~~~~~~[m[K
|
||||
/opt/ros/humble/include/rclcpp/rclcpp/any_service_callback.hpp: In instantiation of ‘[01m[Kvoid rclcpp::AnyServiceCallback<ServiceT>::set(CallbackT&&) [with CallbackT = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>; typename std::enable_if<(! rclcpp::detail::can_be_nullptr<CallbackT>::value), int>::type <anonymous> = 0; ServiceT = service_interfaces::srv::Patrol][m[K’:
|
||||
[01m[K/opt/ros/humble/include/rclcpp/rclcpp/create_service.hpp:43:27:[m[K required from ‘[01m[Ktypename rclcpp::Service<ServiceT>::SharedPtr rclcpp::create_service(std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeServicesInterface>, const string&, CallbackT&&, const rmw_qos_profile_t&, rclcpp::CallbackGroup::SharedPtr) [with ServiceT = service_interfaces::srv::Patrol; CallbackT = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>; typename rclcpp::Service<ServiceT>::SharedPtr = std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >; std::string = std::__cxx11::basic_string<char>; rmw_qos_profile_t = rmw_qos_profile_s; rclcpp::CallbackGroup::SharedPtr = std::shared_ptr<rclcpp::CallbackGroup>][m[K’
|
||||
[01m[K/opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp:147:53:[m[K required from ‘[01m[Ktypename rclcpp::Service<ServiceT>::SharedPtr rclcpp::Node::create_service(const string&, CallbackT&&, const rmw_qos_profile_t&, rclcpp::CallbackGroup::SharedPtr) [with ServiceT = service_interfaces::srv::Patrol; CallbackT = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>; typename rclcpp::Service<ServiceT>::SharedPtr = std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >; std::string = std::__cxx11::basic_string<char>; rmw_qos_profile_t = rmw_qos_profile_s; rclcpp::CallbackGroup::SharedPtr = std::shared_ptr<rclcpp::CallbackGroup>][m[K’
|
||||
[01m[K/home/quella/ROS2Demo/service/service_server/src/turtle_contrl.cpp:16:54:[m[K required from here
|
||||
[01m[K/usr/include/c++/11/variant:1398:16:[m[K [01;36m[Knote: [m[Kcandidate: ‘[01m[Kstd::variant<_Types>& std::variant<_Types>::operator=(const std::variant<_Types>&) [with _Types = {std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>}][m[K’
|
||||
1398 | variant& [01;36m[Koperator[m[K=(const variant&) = default;
|
||||
| [01;36m[K^~~~~~~~[m[K
|
||||
[01m[K/usr/include/c++/11/variant:1398:26:[m[K [01;36m[Knote: [m[K no known conversion for argument 1 from ‘[01m[Kstd::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>[m[K’ to ‘[01m[Kconst std::variant<std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)> >&[m[K’
|
||||
1398 | variant& operator=([01;36m[Kconst variant&[m[K) = default;
|
||||
| [01;36m[K^~~~~~~~~~~~~~[m[K
|
||||
[01m[K/usr/include/c++/11/variant:1399:16:[m[K [01;36m[Knote: [m[Kcandidate: ‘[01m[Kstd::variant<_Types>& std::variant<_Types>::operator=(std::variant<_Types>&&) [with _Types = {std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>}][m[K’
|
||||
1399 | variant& [01;36m[Koperator[m[K=(variant&&) = default;
|
||||
| [01;36m[K^~~~~~~~[m[K
|
||||
[01m[K/usr/include/c++/11/variant:1399:26:[m[K [01;36m[Knote: [m[K no known conversion for argument 1 from ‘[01m[Kstd::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>[m[K’ to ‘[01m[Kstd::variant<std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)> >&&[m[K’
|
||||
1399 | variant& operator=([01;36m[Kvariant&&[m[K) = default;
|
||||
| [01;36m[K^~~~~~~~~[m[K
|
||||
gmake[2]: *** [CMakeFiles/turtle_contrl.dir/build.make:76: CMakeFiles/turtle_contrl.dir/src/turtle_contrl.cpp.o] Error 1
|
||||
gmake[1]: *** [CMakeFiles/Makefile2:137: CMakeFiles/turtle_contrl.dir/all] Error 2
|
||||
gmake: *** [Makefile:146: all] Error 2
|
@@ -0,0 +1,2 @@
|
||||
[35m[1mConsolidate compiler generated dependencies of target turtle_contrl[0m
|
||||
[ 50%] [32mBuilding CXX object CMakeFiles/turtle_contrl.dir/src/turtle_contrl.cpp.o[0m
|
@@ -0,0 +1,63 @@
|
||||
[35m[1mConsolidate compiler generated dependencies of target turtle_contrl[0m
|
||||
[ 50%] [32mBuilding CXX object CMakeFiles/turtle_contrl.dir/src/turtle_contrl.cpp.o[0m
|
||||
In file included from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/service.hpp:36[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/callback_group.hpp:28[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:20[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155[m[K,
|
||||
from [01m[K/home/quella/ROS2Demo/service/service_server/src/turtle_contrl.cpp:1[m[K:
|
||||
/opt/ros/humble/include/rclcpp/rclcpp/any_service_callback.hpp: In instantiation of ‘[01m[Kvoid rclcpp::AnyServiceCallback<ServiceT>::set(CallbackT&&) [with CallbackT = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>; typename std::enable_if<(! rclcpp::detail::can_be_nullptr<CallbackT>::value), int>::type <anonymous> = 0; ServiceT = service_interfaces::srv::Patrol][m[K’:
|
||||
[01m[K/opt/ros/humble/include/rclcpp/rclcpp/create_service.hpp:43:27:[m[K required from ‘[01m[Ktypename rclcpp::Service<ServiceT>::SharedPtr rclcpp::create_service(std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeServicesInterface>, const string&, CallbackT&&, const rmw_qos_profile_t&, rclcpp::CallbackGroup::SharedPtr) [with ServiceT = service_interfaces::srv::Patrol; CallbackT = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>; typename rclcpp::Service<ServiceT>::SharedPtr = std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >; std::string = std::__cxx11::basic_string<char>; rmw_qos_profile_t = rmw_qos_profile_s; rclcpp::CallbackGroup::SharedPtr = std::shared_ptr<rclcpp::CallbackGroup>][m[K’
|
||||
[01m[K/opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp:147:53:[m[K required from ‘[01m[Ktypename rclcpp::Service<ServiceT>::SharedPtr rclcpp::Node::create_service(const string&, CallbackT&&, const rmw_qos_profile_t&, rclcpp::CallbackGroup::SharedPtr) [with ServiceT = service_interfaces::srv::Patrol; CallbackT = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>; typename rclcpp::Service<ServiceT>::SharedPtr = std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >; std::string = std::__cxx11::basic_string<char>; rmw_qos_profile_t = rmw_qos_profile_s; rclcpp::CallbackGroup::SharedPtr = std::shared_ptr<rclcpp::CallbackGroup>][m[K’
|
||||
[01m[K/home/quella/ROS2Demo/service/service_server/src/turtle_contrl.cpp:16:54:[m[K required from here
|
||||
[01m[K/opt/ros/humble/include/rclcpp/rclcpp/any_service_callback.hpp:103:17:[m[K [01;31m[Kerror: [m[Kno match for ‘[01m[Koperator=[m[K’ (operand types are ‘[01m[Kstd::variant<std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)> >[m[K’ and ‘[01m[Kstd::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>[m[K’)
|
||||
103 | [01;31m[Kcallback_ = std::forward<CallbackT>(callback)[m[K;
|
||||
| [01;31m[K~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[m[K
|
||||
In file included from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/client.hpp:28[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/callback_group.hpp:24[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:20[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21[m[K,
|
||||
from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155[m[K,
|
||||
from [01m[K/home/quella/ROS2Demo/service/service_server/src/turtle_contrl.cpp:1[m[K:
|
||||
[01m[K/usr/include/c++/11/variant:1461:9:[m[K [01;36m[Knote: [m[Kcandidate: ‘[01m[Ktemplate<class _Tp> std::enable_if_t<((__exactly_once<std::variant<_Types>::__accepted_type<_Tp&&, typename std::enable_if<__not_self<_Tp&&>, void>::type> > && is_constructible_v<std::variant<_Types>::__accepted_type<_Tp&&, typename std::enable_if<__not_self<_Tp&&>, void>::type>, _Tp>) && is_assignable_v<std::variant<_Types>::__accepted_type<_Tp&&, typename std::enable_if<__not_self<_Tp&&>, void>::type>&, _Tp>), std::variant<_Types>&> std::variant<_Types>::operator=(_Tp&&) [with _Tp = _Tp; _Types = {std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>}][m[K’
|
||||
1461 | [01;36m[Koperator[m[K=(_Tp&& __rhs)
|
||||
| [01;36m[K^~~~~~~~[m[K
|
||||
[01m[K/usr/include/c++/11/variant:1461:9:[m[K [01;36m[Knote: [m[K template argument deduction/substitution failed:
|
||||
/usr/include/c++/11/variant: In substitution of ‘[01m[Ktemplate<class ... _Types> template<class _Tp, class> using __accepted_type = std::variant<_Types>::__to_type<__accepted_index<_Tp> > [with _Tp = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>&&; <template-parameter-2-2> = void; _Types = {std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>}][m[K’:
|
||||
[01m[K/usr/include/c++/11/variant:1457:14:[m[K required by substitution of ‘[01m[Ktemplate<class _Tp> std::enable_if_t<((__exactly_once<std::variant<std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)> >::__accepted_type<_Tp&&, typename std::enable_if<__not_self<_Tp&&>, void>::type> > && is_constructible_v<std::variant<std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)> >::__accepted_type<_Tp&&, typename std::enable_if<__not_self<_Tp&&>, void>::type>, _Tp>) && is_assignable_v<std::variant<std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)> >::__accepted_type<_Tp&&, typename std::enable_if<__not_self<_Tp&&>, void>::type>&, _Tp>), std::variant<std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)> >&> std::variant<std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)> >::operator=<_Tp>(_Tp&&) [with _Tp = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>][m[K’
|
||||
[01m[K/opt/ros/humble/include/rclcpp/rclcpp/any_service_callback.hpp:103:17:[m[K required from ‘[01m[Kvoid rclcpp::AnyServiceCallback<ServiceT>::set(CallbackT&&) [with CallbackT = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>; typename std::enable_if<(! rclcpp::detail::can_be_nullptr<CallbackT>::value), int>::type <anonymous> = 0; ServiceT = service_interfaces::srv::Patrol][m[K’
|
||||
[01m[K/opt/ros/humble/include/rclcpp/rclcpp/create_service.hpp:43:27:[m[K required from ‘[01m[Ktypename rclcpp::Service<ServiceT>::SharedPtr rclcpp::create_service(std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeServicesInterface>, const string&, CallbackT&&, const rmw_qos_profile_t&, rclcpp::CallbackGroup::SharedPtr) [with ServiceT = service_interfaces::srv::Patrol; CallbackT = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>; typename rclcpp::Service<ServiceT>::SharedPtr = std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >; std::string = std::__cxx11::basic_string<char>; rmw_qos_profile_t = rmw_qos_profile_s; rclcpp::CallbackGroup::SharedPtr = std::shared_ptr<rclcpp::CallbackGroup>][m[K’
|
||||
[01m[K/opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp:147:53:[m[K required from ‘[01m[Ktypename rclcpp::Service<ServiceT>::SharedPtr rclcpp::Node::create_service(const string&, CallbackT&&, const rmw_qos_profile_t&, rclcpp::CallbackGroup::SharedPtr) [with ServiceT = service_interfaces::srv::Patrol; CallbackT = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>; typename rclcpp::Service<ServiceT>::SharedPtr = std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >; std::string = std::__cxx11::basic_string<char>; rmw_qos_profile_t = rmw_qos_profile_s; rclcpp::CallbackGroup::SharedPtr = std::shared_ptr<rclcpp::CallbackGroup>][m[K’
|
||||
[01m[K/home/quella/ROS2Demo/service/service_server/src/turtle_contrl.cpp:16:54:[m[K required from here
|
||||
[01m[K/usr/include/c++/11/variant:1375:15:[m[K [01;31m[Kerror: [m[Kno type named ‘[01m[Ktype[m[K’ in ‘[01m[Kstruct std::enable_if<false, void>[m[K’
|
||||
1375 | using [01;31m[K__accepted_type[m[K = __to_type<__accepted_index<_Tp>>;
|
||||
| [01;31m[K^~~~~~~~~~~~~~~[m[K
|
||||
/opt/ros/humble/include/rclcpp/rclcpp/any_service_callback.hpp: In instantiation of ‘[01m[Kvoid rclcpp::AnyServiceCallback<ServiceT>::set(CallbackT&&) [with CallbackT = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>; typename std::enable_if<(! rclcpp::detail::can_be_nullptr<CallbackT>::value), int>::type <anonymous> = 0; ServiceT = service_interfaces::srv::Patrol][m[K’:
|
||||
[01m[K/opt/ros/humble/include/rclcpp/rclcpp/create_service.hpp:43:27:[m[K required from ‘[01m[Ktypename rclcpp::Service<ServiceT>::SharedPtr rclcpp::create_service(std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeServicesInterface>, const string&, CallbackT&&, const rmw_qos_profile_t&, rclcpp::CallbackGroup::SharedPtr) [with ServiceT = service_interfaces::srv::Patrol; CallbackT = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>; typename rclcpp::Service<ServiceT>::SharedPtr = std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >; std::string = std::__cxx11::basic_string<char>; rmw_qos_profile_t = rmw_qos_profile_s; rclcpp::CallbackGroup::SharedPtr = std::shared_ptr<rclcpp::CallbackGroup>][m[K’
|
||||
[01m[K/opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp:147:53:[m[K required from ‘[01m[Ktypename rclcpp::Service<ServiceT>::SharedPtr rclcpp::Node::create_service(const string&, CallbackT&&, const rmw_qos_profile_t&, rclcpp::CallbackGroup::SharedPtr) [with ServiceT = service_interfaces::srv::Patrol; CallbackT = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>; typename rclcpp::Service<ServiceT>::SharedPtr = std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >; std::string = std::__cxx11::basic_string<char>; rmw_qos_profile_t = rmw_qos_profile_s; rclcpp::CallbackGroup::SharedPtr = std::shared_ptr<rclcpp::CallbackGroup>][m[K’
|
||||
[01m[K/home/quella/ROS2Demo/service/service_server/src/turtle_contrl.cpp:16:54:[m[K required from here
|
||||
[01m[K/usr/include/c++/11/variant:1398:16:[m[K [01;36m[Knote: [m[Kcandidate: ‘[01m[Kstd::variant<_Types>& std::variant<_Types>::operator=(const std::variant<_Types>&) [with _Types = {std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>}][m[K’
|
||||
1398 | variant& [01;36m[Koperator[m[K=(const variant&) = default;
|
||||
| [01;36m[K^~~~~~~~[m[K
|
||||
[01m[K/usr/include/c++/11/variant:1398:26:[m[K [01;36m[Knote: [m[K no known conversion for argument 1 from ‘[01m[Kstd::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>[m[K’ to ‘[01m[Kconst std::variant<std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)> >&[m[K’
|
||||
1398 | variant& operator=([01;36m[Kconst variant&[m[K) = default;
|
||||
| [01;36m[K^~~~~~~~~~~~~~[m[K
|
||||
[01m[K/usr/include/c++/11/variant:1399:16:[m[K [01;36m[Knote: [m[Kcandidate: ‘[01m[Kstd::variant<_Types>& std::variant<_Types>::operator=(std::variant<_Types>&&) [with _Types = {std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>}][m[K’
|
||||
1399 | variant& [01;36m[Koperator[m[K=(variant&&) = default;
|
||||
| [01;36m[K^~~~~~~~[m[K
|
||||
[01m[K/usr/include/c++/11/variant:1399:26:[m[K [01;36m[Knote: [m[K no known conversion for argument 1 from ‘[01m[Kstd::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>[m[K’ to ‘[01m[Kstd::variant<std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)> >&&[m[K’
|
||||
1399 | variant& operator=([01;36m[Kvariant&&[m[K) = default;
|
||||
| [01;36m[K^~~~~~~~~[m[K
|
||||
gmake[2]: *** [CMakeFiles/turtle_contrl.dir/build.make:76: CMakeFiles/turtle_contrl.dir/src/turtle_contrl.cpp.o] Error 1
|
||||
gmake[1]: *** [CMakeFiles/Makefile2:137: CMakeFiles/turtle_contrl.dir/all] Error 2
|
||||
gmake: *** [Makefile:146: all] Error 2
|
@@ -0,0 +1,65 @@
|
||||
[0.009s] Invoking command in '/home/quella/ROS2Demo/service/service_server/build/service_server': CMAKE_PREFIX_PATH=/opt/ros/humble /usr/bin/cmake --build /home/quella/ROS2Demo/service/service_server/build/service_server -- -j16 -l16
|
||||
[0.274s] [35m[1mConsolidate compiler generated dependencies of target turtle_contrl[0m
|
||||
[0.294s] [ 50%] [32mBuilding CXX object CMakeFiles/turtle_contrl.dir/src/turtle_contrl.cpp.o[0m
|
||||
[2.786s] In file included from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/service.hpp:36[m[K,
|
||||
[2.786s] from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/callback_group.hpp:28[m[K,
|
||||
[2.787s] from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:20[m[K,
|
||||
[2.787s] from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25[m[K,
|
||||
[2.787s] from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18[m[K,
|
||||
[2.787s] from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20[m[K,
|
||||
[2.787s] from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37[m[K,
|
||||
[2.787s] from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25[m[K,
|
||||
[2.787s] from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21[m[K,
|
||||
[2.787s] from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155[m[K,
|
||||
[2.787s] from [01m[K/home/quella/ROS2Demo/service/service_server/src/turtle_contrl.cpp:1[m[K:
|
||||
[2.787s] /opt/ros/humble/include/rclcpp/rclcpp/any_service_callback.hpp: In instantiation of ‘[01m[Kvoid rclcpp::AnyServiceCallback<ServiceT>::set(CallbackT&&) [with CallbackT = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>; typename std::enable_if<(! rclcpp::detail::can_be_nullptr<CallbackT>::value), int>::type <anonymous> = 0; ServiceT = service_interfaces::srv::Patrol][m[K’:
|
||||
[2.787s] [01m[K/opt/ros/humble/include/rclcpp/rclcpp/create_service.hpp:43:27:[m[K required from ‘[01m[Ktypename rclcpp::Service<ServiceT>::SharedPtr rclcpp::create_service(std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeServicesInterface>, const string&, CallbackT&&, const rmw_qos_profile_t&, rclcpp::CallbackGroup::SharedPtr) [with ServiceT = service_interfaces::srv::Patrol; CallbackT = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>; typename rclcpp::Service<ServiceT>::SharedPtr = std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >; std::string = std::__cxx11::basic_string<char>; rmw_qos_profile_t = rmw_qos_profile_s; rclcpp::CallbackGroup::SharedPtr = std::shared_ptr<rclcpp::CallbackGroup>][m[K’
|
||||
[2.787s] [01m[K/opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp:147:53:[m[K required from ‘[01m[Ktypename rclcpp::Service<ServiceT>::SharedPtr rclcpp::Node::create_service(const string&, CallbackT&&, const rmw_qos_profile_t&, rclcpp::CallbackGroup::SharedPtr) [with ServiceT = service_interfaces::srv::Patrol; CallbackT = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>; typename rclcpp::Service<ServiceT>::SharedPtr = std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >; std::string = std::__cxx11::basic_string<char>; rmw_qos_profile_t = rmw_qos_profile_s; rclcpp::CallbackGroup::SharedPtr = std::shared_ptr<rclcpp::CallbackGroup>][m[K’
|
||||
[2.787s] [01m[K/home/quella/ROS2Demo/service/service_server/src/turtle_contrl.cpp:16:54:[m[K required from here
|
||||
[2.787s] [01m[K/opt/ros/humble/include/rclcpp/rclcpp/any_service_callback.hpp:103:17:[m[K [01;31m[Kerror: [m[Kno match for ‘[01m[Koperator=[m[K’ (operand types are ‘[01m[Kstd::variant<std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)> >[m[K’ and ‘[01m[Kstd::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>[m[K’)
|
||||
[2.787s] 103 | [01;31m[Kcallback_ = std::forward<CallbackT>(callback)[m[K;
|
||||
[2.787s] | [01;31m[K~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[m[K
|
||||
[2.787s] In file included from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/client.hpp:28[m[K,
|
||||
[2.787s] from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/callback_group.hpp:24[m[K,
|
||||
[2.787s] from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:20[m[K,
|
||||
[2.788s] from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25[m[K,
|
||||
[2.788s] from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18[m[K,
|
||||
[2.788s] from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20[m[K,
|
||||
[2.788s] from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37[m[K,
|
||||
[2.788s] from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25[m[K,
|
||||
[2.788s] from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21[m[K,
|
||||
[2.788s] from [01m[K/opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155[m[K,
|
||||
[2.788s] from [01m[K/home/quella/ROS2Demo/service/service_server/src/turtle_contrl.cpp:1[m[K:
|
||||
[2.788s] [01m[K/usr/include/c++/11/variant:1461:9:[m[K [01;36m[Knote: [m[Kcandidate: ‘[01m[Ktemplate<class _Tp> std::enable_if_t<((__exactly_once<std::variant<_Types>::__accepted_type<_Tp&&, typename std::enable_if<__not_self<_Tp&&>, void>::type> > && is_constructible_v<std::variant<_Types>::__accepted_type<_Tp&&, typename std::enable_if<__not_self<_Tp&&>, void>::type>, _Tp>) && is_assignable_v<std::variant<_Types>::__accepted_type<_Tp&&, typename std::enable_if<__not_self<_Tp&&>, void>::type>&, _Tp>), std::variant<_Types>&> std::variant<_Types>::operator=(_Tp&&) [with _Tp = _Tp; _Types = {std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>}][m[K’
|
||||
[2.788s] 1461 | [01;36m[Koperator[m[K=(_Tp&& __rhs)
|
||||
[2.788s] | [01;36m[K^~~~~~~~[m[K
|
||||
[2.788s] [01m[K/usr/include/c++/11/variant:1461:9:[m[K [01;36m[Knote: [m[K template argument deduction/substitution failed:
|
||||
[2.788s] /usr/include/c++/11/variant: In substitution of ‘[01m[Ktemplate<class ... _Types> template<class _Tp, class> using __accepted_type = std::variant<_Types>::__to_type<__accepted_index<_Tp> > [with _Tp = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>&&; <template-parameter-2-2> = void; _Types = {std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>}][m[K’:
|
||||
[2.788s] [01m[K/usr/include/c++/11/variant:1457:14:[m[K required by substitution of ‘[01m[Ktemplate<class _Tp> std::enable_if_t<((__exactly_once<std::variant<std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)> >::__accepted_type<_Tp&&, typename std::enable_if<__not_self<_Tp&&>, void>::type> > && is_constructible_v<std::variant<std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)> >::__accepted_type<_Tp&&, typename std::enable_if<__not_self<_Tp&&>, void>::type>, _Tp>) && is_assignable_v<std::variant<std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)> >::__accepted_type<_Tp&&, typename std::enable_if<__not_self<_Tp&&>, void>::type>&, _Tp>), std::variant<std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)> >&> std::variant<std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)> >::operator=<_Tp>(_Tp&&) [with _Tp = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>][m[K’
|
||||
[2.788s] [01m[K/opt/ros/humble/include/rclcpp/rclcpp/any_service_callback.hpp:103:17:[m[K required from ‘[01m[Kvoid rclcpp::AnyServiceCallback<ServiceT>::set(CallbackT&&) [with CallbackT = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>; typename std::enable_if<(! rclcpp::detail::can_be_nullptr<CallbackT>::value), int>::type <anonymous> = 0; ServiceT = service_interfaces::srv::Patrol][m[K’
|
||||
[2.788s] [01m[K/opt/ros/humble/include/rclcpp/rclcpp/create_service.hpp:43:27:[m[K required from ‘[01m[Ktypename rclcpp::Service<ServiceT>::SharedPtr rclcpp::create_service(std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeServicesInterface>, const string&, CallbackT&&, const rmw_qos_profile_t&, rclcpp::CallbackGroup::SharedPtr) [with ServiceT = service_interfaces::srv::Patrol; CallbackT = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>; typename rclcpp::Service<ServiceT>::SharedPtr = std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >; std::string = std::__cxx11::basic_string<char>; rmw_qos_profile_t = rmw_qos_profile_s; rclcpp::CallbackGroup::SharedPtr = std::shared_ptr<rclcpp::CallbackGroup>][m[K’
|
||||
[2.788s] [01m[K/opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp:147:53:[m[K required from ‘[01m[Ktypename rclcpp::Service<ServiceT>::SharedPtr rclcpp::Node::create_service(const string&, CallbackT&&, const rmw_qos_profile_t&, rclcpp::CallbackGroup::SharedPtr) [with ServiceT = service_interfaces::srv::Patrol; CallbackT = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>; typename rclcpp::Service<ServiceT>::SharedPtr = std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >; std::string = std::__cxx11::basic_string<char>; rmw_qos_profile_t = rmw_qos_profile_s; rclcpp::CallbackGroup::SharedPtr = std::shared_ptr<rclcpp::CallbackGroup>][m[K’
|
||||
[2.788s] [01m[K/home/quella/ROS2Demo/service/service_server/src/turtle_contrl.cpp:16:54:[m[K required from here
|
||||
[2.788s] [01m[K/usr/include/c++/11/variant:1375:15:[m[K [01;31m[Kerror: [m[Kno type named ‘[01m[Ktype[m[K’ in ‘[01m[Kstruct std::enable_if<false, void>[m[K’
|
||||
[2.788s] 1375 | using [01;31m[K__accepted_type[m[K = __to_type<__accepted_index<_Tp>>;
|
||||
[2.788s] | [01;31m[K^~~~~~~~~~~~~~~[m[K
|
||||
[2.789s] /opt/ros/humble/include/rclcpp/rclcpp/any_service_callback.hpp: In instantiation of ‘[01m[Kvoid rclcpp::AnyServiceCallback<ServiceT>::set(CallbackT&&) [with CallbackT = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>; typename std::enable_if<(! rclcpp::detail::can_be_nullptr<CallbackT>::value), int>::type <anonymous> = 0; ServiceT = service_interfaces::srv::Patrol][m[K’:
|
||||
[2.789s] [01m[K/opt/ros/humble/include/rclcpp/rclcpp/create_service.hpp:43:27:[m[K required from ‘[01m[Ktypename rclcpp::Service<ServiceT>::SharedPtr rclcpp::create_service(std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeServicesInterface>, const string&, CallbackT&&, const rmw_qos_profile_t&, rclcpp::CallbackGroup::SharedPtr) [with ServiceT = service_interfaces::srv::Patrol; CallbackT = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>; typename rclcpp::Service<ServiceT>::SharedPtr = std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >; std::string = std::__cxx11::basic_string<char>; rmw_qos_profile_t = rmw_qos_profile_s; rclcpp::CallbackGroup::SharedPtr = std::shared_ptr<rclcpp::CallbackGroup>][m[K’
|
||||
[2.789s] [01m[K/opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp:147:53:[m[K required from ‘[01m[Ktypename rclcpp::Service<ServiceT>::SharedPtr rclcpp::Node::create_service(const string&, CallbackT&&, const rmw_qos_profile_t&, rclcpp::CallbackGroup::SharedPtr) [with ServiceT = service_interfaces::srv::Patrol; CallbackT = std::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>; typename rclcpp::Service<ServiceT>::SharedPtr = std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >; std::string = std::__cxx11::basic_string<char>; rmw_qos_profile_t = rmw_qos_profile_s; rclcpp::CallbackGroup::SharedPtr = std::shared_ptr<rclcpp::CallbackGroup>][m[K’
|
||||
[2.789s] [01m[K/home/quella/ROS2Demo/service/service_server/src/turtle_contrl.cpp:16:54:[m[K required from here
|
||||
[2.789s] [01m[K/usr/include/c++/11/variant:1398:16:[m[K [01;36m[Knote: [m[Kcandidate: ‘[01m[Kstd::variant<_Types>& std::variant<_Types>::operator=(const std::variant<_Types>&) [with _Types = {std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>}][m[K’
|
||||
[2.789s] 1398 | variant& [01;36m[Koperator[m[K=(const variant&) = default;
|
||||
[2.789s] | [01;36m[K^~~~~~~~[m[K
|
||||
[2.789s] [01m[K/usr/include/c++/11/variant:1398:26:[m[K [01;36m[Knote: [m[K no known conversion for argument 1 from ‘[01m[Kstd::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>[m[K’ to ‘[01m[Kconst std::variant<std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)> >&[m[K’
|
||||
[2.789s] 1398 | variant& operator=([01;36m[Kconst variant&[m[K) = default;
|
||||
[2.789s] | [01;36m[K^~~~~~~~~~~~~~[m[K
|
||||
[2.789s] [01m[K/usr/include/c++/11/variant:1399:16:[m[K [01;36m[Knote: [m[Kcandidate: ‘[01m[Kstd::variant<_Types>& std::variant<_Types>::operator=(std::variant<_Types>&&) [with _Types = {std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>}][m[K’
|
||||
[2.789s] 1399 | variant& [01;36m[Koperator[m[K=(variant&&) = default;
|
||||
[2.789s] | [01;36m[K^~~~~~~~[m[K
|
||||
[2.789s] [01m[K/usr/include/c++/11/variant:1399:26:[m[K [01;36m[Knote: [m[K no known conversion for argument 1 from ‘[01m[Kstd::_Bind<void (TurtleController::*(TurtleController*, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>))(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >, std::shared_ptr<turtlesim::msg::Pose_<std::allocator<void> > >)>[m[K’ to ‘[01m[Kstd::variant<std::monostate, std::function<void(std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >, std::shared_ptr<service_interfaces::srv::Patrol_Response_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)>, std::function<void(std::shared_ptr<rclcpp::Service<service_interfaces::srv::Patrol> >, std::shared_ptr<rmw_request_id_s>, std::shared_ptr<service_interfaces::srv::Patrol_Request_<std::allocator<void> > >)> >&&[m[K’
|
||||
[2.789s] 1399 | variant& operator=([01;36m[Kvariant&&[m[K) = default;
|
||||
[2.789s] | [01;36m[K^~~~~~~~~[m[K
|
||||
[3.253s] gmake[2]: *** [CMakeFiles/turtle_contrl.dir/build.make:76: CMakeFiles/turtle_contrl.dir/src/turtle_contrl.cpp.o] Error 1
|
||||
[3.253s] gmake[1]: *** [CMakeFiles/Makefile2:137: CMakeFiles/turtle_contrl.dir/all] Error 2
|
||||
[3.253s] gmake: *** [Makefile:146: all] Error 2
|
||||
[3.256s] Invoked command in '/home/quella/ROS2Demo/service/service_server/build/service_server' returned '2': CMAKE_PREFIX_PATH=/opt/ros/humble /usr/bin/cmake --build /home/quella/ROS2Demo/service/service_server/build/service_server -- -j16 -l16
|
Reference in New Issue
Block a user