/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:119:19: error: ISO C++ forbids declaration of ‘anchor_data_t’ with no type [-fpermissive] 119 | for (const &anchor_data_t : tracker_msg.anchor_data) | ^~~~~~~~~~~~~ /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:119:47: error: ‘const struct terabee::RtlsDevice::tracker_msg_t’ has no member named ‘anchor_data’; did you mean ‘anchors_data’? 119 | for (const &anchor_data_t : tracker_msg.anchor_data) | ^~~~~~~~~~~ | anchors_data 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:121:115: error: request for member ‘number’ in ‘anchor_data_t’, which is of non-class type ‘const int’ 121 | NFO(node->get_logger(), "anchor number= %d, distance = %f, x = %f, y = %f, z = %f", anchor_data_t.number, anchor_data_t.distance, anchor_data_t.pos_x, anchor_data_t.pos_y, anchor_data_t.pos_z); | ^~~~~~ /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:121:137: error: request for member ‘distance’ in ‘anchor_data_t’, which is of non-class type ‘const int’ 121 | , "anchor number= %d, distance = %f, x = %f, y = %f, z = %f", anchor_data_t.number, anchor_data_t.distance, anchor_data_t.pos_x, anchor_data_t.pos_y, anchor_data_t.pos_z); | ^~~~~~~~ /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:121:161: error: request for member ‘pos_x’ in ‘anchor_data_t’, which is of non-class type ‘const int’ 121 | stance = %f, x = %f, y = %f, z = %f", anchor_data_t.number, anchor_data_t.distance, anchor_data_t.pos_x, anchor_data_t.pos_y, anchor_data_t.pos_z); | ^~~~~ /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:121:182: error: request for member ‘pos_y’ in ‘anchor_data_t’, which is of non-class type ‘const int’ 121 | y = %f, z = %f", anchor_data_t.number, anchor_data_t.distance, anchor_data_t.pos_x, anchor_data_t.pos_y, anchor_data_t.pos_z); | ^~~~~ /home/ubuntu/ros2_ws/src/beacon_positioning/src/tracker_position.cpp:121:203: error: request for member ‘pos_z’ in ‘anchor_data_t’, which is of non-class type ‘const int’ 121 | or_data_t.number, anchor_data_t.distance, anchor_data_t.pos_x, anchor_data_t.pos_y, anchor_data_t.pos_z); | ^~~~~ 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