/home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:81:33: error: ‘std_msgs::msg’ is not a type 81 | void timer_callback(std_msgs::msg msg) | ^~~ In file included from /opt/ros/foxy/include/rclcpp/context.hpp:19, from /opt/ros/foxy/include/rclcpp/contexts/default_context.hpp:18, from /opt/ros/foxy/include/rclcpp/executor.hpp:32, from /opt/ros/foxy/include/rclcpp/executors/multi_threaded_executor.hpp:26, from /opt/ros/foxy/include/rclcpp/executors.hpp:21, from /opt/ros/foxy/include/rclcpp/rclcpp.hpp:146, from /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:4: /usr/include/c++/9/functional: In instantiation of ‘struct std::_Bind_check_arity’: /usr/include/c++/9/functional:787:12: required from ‘struct std::_Bind_helper’ /usr/include/c++/9/functional:808:5: required by substitution of ‘template typename std::_Bind_helper::value, _Func, _BoundArgs ...>::type std::bind(_Func&&, _BoundArgs&& ...) [with _Func = void (BeaconPositioningPublisher::*)(int); _BoundArgs = {BeaconPositioningPublisher*}]’ /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:42:75: required from here /usr/include/c++/9/functional:775:7: error: static assertion failed: Wrong number of arguments for pointer-to-member 774 | static_assert(_Varargs::value | ~~~~~ 775 |  ? sizeof...(_BoundArgs) >= _Arity::value + 1 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 776 |  : sizeof...(_BoundArgs) == _Arity::value + 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp: In constructor ‘BeaconPositioningPublisher::BeaconPositioningPublisher()’: /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:42:76: error: no matching function for call to ‘BeaconPositioningPublisher::create_wall_timer(std::chrono::milliseconds, std::_Bind_helper::type)’ 42 | 500ms, std::bind(&BeaconPositioningPublisher::timer_callback, this)); | ^ In file included from /opt/ros/foxy/include/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/foxy/include/rclcpp/executors.hpp:22, from /opt/ros/foxy/include/rclcpp/rclcpp.hpp:146, from /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:4: /opt/ros/foxy/include/rclcpp/node.hpp:232:3: note: candidate: ‘template typename rclcpp::WallTimer::SharedPtr rclcpp::Node::create_wall_timer(std::chrono::duration<_Rep1, _Period1>, CallbackT, rclcpp::CallbackGroup::SharedPtr)’ 232 | create_wall_timer( | ^~~~~~~~~~~~~~~~~ /opt/ros/foxy/include/rclcpp/node.hpp:232:3: note:  template argument deduction/substitution failed: In file included from /opt/ros/foxy/include/rclcpp/node.hpp:1224, from /opt/ros/foxy/include/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/foxy/include/rclcpp/executors.hpp:22, from /opt/ros/foxy/include/rclcpp/rclcpp.hpp:146, from /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:4: /opt/ros/foxy/include/rclcpp/node_impl.hpp: In substitution of ‘template typename rclcpp::WallTimer::SharedPtr rclcpp::Node::create_wall_timer(std::chrono::duration<_Rep1, _Period1>, CallbackT, rclcpp::CallbackGroup::SharedPtr) [with DurationRepT = long int; DurationT = std::ratio<1, 1000>; CallbackT = std::_Bind]’: /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:42:76: required from here /opt/ros/foxy/include/rclcpp/node_impl.hpp:109:1: error: no type named ‘type’ in ‘struct std::enable_if’ 109 | Node::create_wall_timer( | ^~~~ /opt/ros/foxy/include/rclcpp/node_impl.hpp:109:1: error: no type named ‘type’ in ‘struct std::enable_if’ /opt/ros/foxy/include/rclcpp/node_impl.hpp:109:1: note: invalid template non-type parameter /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp: In member function ‘void BeaconPositioningPublisher::publish()’: /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:77:25: error: ‘msg’ was not declared in this scope 77 | publisher_->publish(msg); | ^~~ /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:77:25: note: suggested alternatives: In file included from /opt/ros/foxy/include/builtin_interfaces/msg/duration.hpp:7, from /opt/ros/foxy/include/rclcpp/duration.hpp:20, from /opt/ros/foxy/include/rclcpp/qos.hpp:20, from /opt/ros/foxy/include/rclcpp/node_interfaces/node_graph_interface.hpp:31, from /opt/ros/foxy/include/rclcpp/client.hpp:34, from /opt/ros/foxy/include/rclcpp/callback_group.hpp:23, from /opt/ros/foxy/include/rclcpp/any_executable.hpp:20, from /opt/ros/foxy/include/rclcpp/memory_strategy.hpp:24, from /opt/ros/foxy/include/rclcpp/memory_strategies.hpp:18, from /opt/ros/foxy/include/rclcpp/executor_options.hpp:20, from /opt/ros/foxy/include/rclcpp/executor.hpp:33, from /opt/ros/foxy/include/rclcpp/executors/multi_threaded_executor.hpp:26, from /opt/ros/foxy/include/rclcpp/executors.hpp:21, from /opt/ros/foxy/include/rclcpp/rclcpp.hpp:146, from /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:4: /opt/ros/foxy/include/builtin_interfaces/msg/detail/duration__struct.hpp:26:11: note:  ‘builtin_interfaces::msg’ 26 | namespace msg | ^~~ In file included from /opt/ros/foxy/include/statistics_msgs/msg/detail/metrics_message__struct.hpp:22, from /opt/ros/foxy/include/statistics_msgs/msg/metrics_message.hpp:7, from /opt/ros/foxy/include/libstatistics_collector/collector/generate_statistics_message.hpp:21, from /opt/ros/foxy/include/rclcpp/topic_statistics/subscription_topic_statistics.hpp:23, from /opt/ros/foxy/include/rclcpp/subscription.hpp:50, from /opt/ros/foxy/include/rclcpp/any_executable.hpp:25, from /opt/ros/foxy/include/rclcpp/memory_strategy.hpp:24, from /opt/ros/foxy/include/rclcpp/memory_strategies.hpp:18, from /opt/ros/foxy/include/rclcpp/executor_options.hpp:20, from /opt/ros/foxy/include/rclcpp/executor.hpp:33, from /opt/ros/foxy/include/rclcpp/executors/multi_threaded_executor.hpp:26, from /opt/ros/foxy/include/rclcpp/executors.hpp:21, from /opt/ros/foxy/include/rclcpp/rclcpp.hpp:146, from /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:4: /opt/ros/foxy/include/statistics_msgs/msg/detail/statistic_data_point__struct.hpp:26:11: note:  ‘statistics_msgs::msg’ 26 | namespace msg | ^~~ In file included from /opt/ros/foxy/include/rcl_interfaces/msg/list_parameters_result.hpp:7, from /opt/ros/foxy/include/rclcpp/node.hpp:34, from /opt/ros/foxy/include/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/foxy/include/rclcpp/executors.hpp:22, from /opt/ros/foxy/include/rclcpp/rclcpp.hpp:146, from /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:4: /opt/ros/foxy/include/rcl_interfaces/msg/detail/list_parameters_result__struct.hpp:26:11: note:  ‘rcl_interfaces::msg’ 26 | namespace msg | ^~~ In file included from /opt/ros/foxy/include/std_msgs/msg/string.hpp:7, from /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:5: /opt/ros/foxy/include/std_msgs/msg/detail/string__struct.hpp:26:11: note:  ‘std_msgs::msg’ 26 | namespace msg | ^~~ /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp: In member function ‘void BeaconPositioningPublisher::timer_callback(int)’: /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:81:37: warning: unused parameter ‘msg’ [-Wunused-parameter] 81 | void timer_callback(std_msgs::msg msg) | ~~~~~~~~~~~~~~^~~ In file included from /opt/ros/foxy/include/rclcpp/client.hpp:40, from /opt/ros/foxy/include/rclcpp/callback_group.hpp:23, from /opt/ros/foxy/include/rclcpp/any_executable.hpp:20, from /opt/ros/foxy/include/rclcpp/memory_strategy.hpp:24, from /opt/ros/foxy/include/rclcpp/memory_strategies.hpp:18, from /opt/ros/foxy/include/rclcpp/executor_options.hpp:20, from /opt/ros/foxy/include/rclcpp/executor.hpp:33, from /opt/ros/foxy/include/rclcpp/executors/multi_threaded_executor.hpp:26, from /opt/ros/foxy/include/rclcpp/executors.hpp:21, from /opt/ros/foxy/include/rclcpp/rclcpp.hpp:146, from /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:4: /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp: In lambda function: /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:117:89: error: ‘const struct terabee::RtlsDevice::tracker_msg_t’ has no member named ‘label’ 117 | RCLCPP_INFO(node->get_logger(), "Tracker %d: x = %f, y = %f, z = %f", tracker_msg.label, tracker_msg.x, tracker_msg.y, tracker_msg.z); | ^~~~~ /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:117:108: error: ‘const struct terabee::RtlsDevice::tracker_msg_t’ has no member named ‘x’ 117 | RCLCPP_INFO(node->get_logger(), "Tracker %d: x = %f, y = %f, z = %f", tracker_msg.label, tracker_msg.x, tracker_msg.y, tracker_msg.z); | ^ /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:117:123: error: ‘const struct terabee::RtlsDevice::tracker_msg_t’ has no member named ‘y’ 117 | RCLCPP_INFO(node->get_logger(), "Tracker %d: x = %f, y = %f, z = %f", tracker_msg.label, tracker_msg.x, tracker_msg.y, tracker_msg.z); | ^ /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:117:138: error: ‘const struct terabee::RtlsDevice::tracker_msg_t’ has no member named ‘z’ 117 | RCLCPP_INFO(node->get_logger(), "Tracker %d: x = %f, y = %f, z = %f", tracker_msg.label, tracker_msg.x, tracker_msg.y, tracker_msg.z); | ^ /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:120:28: error: no matching function for call to ‘BeaconPositioningPublisher::publish(std_msgs::msg::String_ >&)’ 120 | node->publish(message); | ^ /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:75:8: note: candidate: ‘void BeaconPositioningPublisher::publish()’ 75 | void publish() | ^~~~~~~ /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:75:8: note:  candidate expects 0 arguments, 1 provided In file included from /usr/include/aarch64-linux-gnu/c++/9/bits/c++allocator.h:33, from /usr/include/c++/9/bits/allocator.h:46, from /usr/include/c++/9/memory:63, from /opt/ros/foxy/include/rclcpp/rclcpp.hpp:144, from /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:4: /usr/include/c++/9/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = terabee::RtlsDevice; _Args = {terabee::RtlsDevice&}; _Tp = terabee::RtlsDevice]’: /usr/include/c++/9/bits/alloc_traits.h:483:4: required from ‘static void std::allocator_traits >::construct(std::allocator_traits >::allocator_type&, _Up*, _Args&& ...) [with _Up = terabee::RtlsDevice; _Args = {terabee::RtlsDevice&}; _Tp = terabee::RtlsDevice; std::allocator_traits >::allocator_type = std::allocator]’ /usr/include/c++/9/bits/shared_ptr_base.h:548:39: required from ‘std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_Sp_counted_ptr_inplace(_Alloc, _Args&& ...) [with _Args = {terabee::RtlsDevice&}; _Tp = terabee::RtlsDevice; _Alloc = std::allocator; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’ /usr/include/c++/9/bits/shared_ptr_base.h:679:16: required from ‘std::__shared_count<_Lp>::__shared_count(_Tp*&, std::_Sp_alloc_shared_tag<_Alloc>, _Args&& ...) [with _Tp = terabee::RtlsDevice; _Alloc = std::allocator; _Args = {terabee::RtlsDevice&}; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’ /usr/include/c++/9/bits/shared_ptr_base.h:1344:71: required from ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_alloc_shared_tag<_Tp>, _Args&& ...) [with _Alloc = std::allocator; _Args = {terabee::RtlsDevice&}; _Tp = terabee::RtlsDevice; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’ /usr/include/c++/9/bits/shared_ptr.h:359:59: required from ‘std::shared_ptr<_Tp>::shared_ptr(std::_Sp_alloc_shared_tag<_Tp>, _Args&& ...) [with _Alloc = std::allocator; _Args = {terabee::RtlsDevice&}; _Tp = terabee::RtlsDevice]’ /usr/include/c++/9/bits/shared_ptr.h:701:14: required from ‘std::shared_ptr<_Tp> std::allocate_shared(const _Alloc&, _Args&& ...) [with _Tp = terabee::RtlsDevice; _Alloc = std::allocator; _Args = {terabee::RtlsDevice&}]’ /usr/include/c++/9/bits/shared_ptr.h:717:39: required from ‘std::shared_ptr<_Tp> std::make_shared(_Args&& ...) [with _Tp = terabee::RtlsDevice; _Args = {terabee::RtlsDevice&}]’ /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:111:75: required from here /usr/include/c++/9/ext/new_allocator.h:146:4: error: use of deleted function ‘terabee::RtlsDevice::RtlsDevice(const terabee::RtlsDevice&)’ 146 | { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:7: /usr/local/include/rtls_driver/rtls_driver.hpp:116:3: note: declared here 116 | RtlsDevice(const RtlsDevice &other) = delete; | ^~~~~~~~~~ make[2]: *** [CMakeFiles/tracker_position.dir/build.make:63: CMakeFiles/tracker_position.dir/src/tracker_position.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:78: CMakeFiles/tracker_position.dir/all] Error 2 make: *** [Makefile:141: all] Error 2