6.4 KiB
6.4 KiB
/home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp: In member function ‘void rm_serial_driver::RMSerialDriver::receiveData()’:
/home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp:108:47: error: ‘struct rm_serial_driver::ReceivePacket’ has no member named ‘robot_color’
108 | if (!initial_set_param_ || packet.robot_color != previous_receive_color_) {
| ^~~~~~~~~~~
In file included from /opt/ros/humble/include/rclcpp/rclcpp/logging.hpp:24,
from /opt/ros/humble/include/rclcpp/rclcpp/experimental/subscription_intra_process_base.hpp:27,
from /opt/ros/humble/include/rclcpp/rclcpp/experimental/ros_message_intra_process_buffer.hpp:25,
from /opt/ros/humble/include/rclcpp/rclcpp/experimental/intra_process_manager.hpp:31,
from /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:35,
from /home/firmament/codes/24navigation/src/rm_serial_driver/include/rm_serial_driver/rm_serial_driver.hpp:7,
from /home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp:4:
/home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp:109:80: error: ‘struct rm_serial_driver::ReceivePacket’ has no member named ‘robot_color’
109 | P_INFO(get_logger(), "Setting robot_color to %d...", packet.robot_color);
| ^~~~~~~~~~~
/home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp:112:64: error: ‘struct rm_serial_driver::ReceivePacket’ has no member named ‘robot_color’
112 | setParam(rclcpp::Parameter("robot_color", packet.robot_color));
| ^~~~~~~~~~~
/home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp:113:48: error: ‘struct rm_serial_driver::ReceivePacket’ has no member named ‘robot_color’
113 | previous_receive_color_ = packet.robot_color;
| ^~~~~~~~~~~
/home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp:123:44: error: ‘struct rm_serial_driver::ReceivePacket’ has no member named ‘target_x’
123 | if ((fabsf(last_cmd_x - packet.target_x)>=0.05) || (fabsf(last_cmd_y - packet.target_y)>=0.05))
| ^~~~~~~~
/home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp:123:91: error: ‘struct rm_serial_driver::ReceivePacket’ has no member named ‘target_y’
123 | d_x - packet.target_x)>=0.05) || (fabsf(last_cmd_y - packet.target_y)>=0.05))
| ^~~~~~~~
/home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp:126:54: error: ‘struct rm_serial_driver::ReceivePacket’ has no member named ‘target_x’
126 | arial_cmd_msg.pose.position.x = packet.target_x;
| ^~~~~~~~
/home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp:127:54: error: ‘struct rm_serial_driver::ReceivePacket’ has no member named ‘target_y’
127 | arial_cmd_msg.pose.position.y = packet.target_y;
| ^~~~~~~~
/home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp:130:35: error: ‘struct rm_serial_driver::ReceivePacket’ has no member named ‘target_x’
130 | last_cmd_x = packet.target_x;
| ^~~~~~~~
/home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp:131:35: error: ‘struct rm_serial_driver::ReceivePacket’ has no member named ‘target_y’
131 | last_cmd_y = packet.target_y;
| ^~~~~~~~
/home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp:134:41: error: ‘struct rm_serial_driver::ReceivePacket’ has no member named ‘outpost_hp’
134 | my_outpost_hp.data = packet.outpost_hp;
| ^~~~~~~~~~
/home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp:136:36: error: ‘struct rm_serial_driver::ReceivePacket’ has no member named ‘game_progress’
136 | game_pro.data = packet.game_progress;
| ^~~~~~~~~~~~~
/home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp:148:36: error: ‘struct rm_serial_driver::ReceivePacket’ has no member named ‘body_joint_state’
148 | q.setRPY(0, 0, -packet.body_joint_state);
| ^~~~~~~~~~~~~~~~
gmake[2]: *** [CMakeFiles/rm_serial_driver.dir/build.make:76: CMakeFiles/rm_serial_driver.dir/src/rm_serial_driver.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:139: CMakeFiles/rm_serial_driver.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
/home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp:108:47: error: ‘struct rm_serial_driver::ReceivePacket’ has no member named ‘robot_color’
108 | if (!initial_set_param_ || packet.robot_color != previous_receive_color_) {
| ^~~~~~~~~~~
In file included from /opt/ros/humble/include/rclcpp/rclcpp/logging.hpp:24,
from /opt/ros/humble/include/rclcpp/rclcpp/experimental/subscription_intra_process_base.hpp:27,
from /opt/ros/humble/include/rclcpp/rclcpp/experimental/ros_message_intra_process_buffer.hpp:25,
from /opt/ros/humble/include/rclcpp/rclcpp/experimental/intra_process_manager.hpp:31,
from /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:35,
from /home/firmament/codes/24navigation/src/rm_serial_driver/include/rm_serial_driver/rm_serial_driver.hpp:7,
from /home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp:4:
/home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp:109:80: error: ‘struct rm_serial_driver::ReceivePacket’ has no member named ‘robot_color’
109 | P_INFO(get_logger(), "Setting robot_color to %d...", packet.robot_color);
| ^~~~~~~~~~~
/home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp:112:64: error: ‘struct rm_serial_driver::ReceivePacket’ has no member named ‘robot_color’
112 | setParam(rclcpp::Parameter("robot_color", packet.robot_color));
| ^~~~~~~~~~~
/home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp:113:48: error: ‘struct rm_serial_driver::ReceivePacket’ has no member named ‘robot_color’
113 | previous_receive_color_ = packet.robot_color;
| ^~~~~~~~~~~
/home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp:123:44: error: ‘struct rm_serial_driver::ReceivePacket’ has no member named ‘target_x’
123 | if ((fabsf(last_cmd_x - packet.target_x)>=0.05) || (fabsf(last_cmd_y - packet.target_y)>=0.05))
| ^~~~~~~~
/home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp:123:91: error: ‘struct rm_serial_driver::ReceivePacket’ has no member named ‘target_y’
123 | d_x - packet.target_x)>=0.05) || (fabsf(last_cmd_y - packet.target_y)>=0.05))
| ^~~~~~~~
/home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp:126:54: error: ‘struct rm_serial_driver::ReceivePacket’ has no member named ‘target_x’
126 | arial_cmd_msg.pose.position.x = packet.target_x;
| ^~~~~~~~
/home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp:127:54: error: ‘struct rm_serial_driver::ReceivePacket’ has no member named ‘target_y’
127 | arial_cmd_msg.pose.position.y = packet.target_y;
| ^~~~~~~~
/home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp:130:35: error: ‘struct rm_serial_driver::ReceivePacket’ has no member named ‘target_x’
130 | last_cmd_x = packet.target_x;
| ^~~~~~~~
/home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp:131:35: error: ‘struct rm_serial_driver::ReceivePacket’ has no member named ‘target_y’
131 | last_cmd_y = packet.target_y;
| ^~~~~~~~
/home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp:134:41: error: ‘struct rm_serial_driver::ReceivePacket’ has no member named ‘outpost_hp’
134 | my_outpost_hp.data = packet.outpost_hp;
| ^~~~~~~~~~
/home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp:136:36: error: ‘struct rm_serial_driver::ReceivePacket’ has no member named ‘game_progress’
136 | game_pro.data = packet.game_progress;
| ^~~~~~~~~~~~~
/home/firmament/codes/24navigation/src/rm_serial_driver/src/rm_serial_driver.cpp:148:36: error: ‘struct rm_serial_driver::ReceivePacket’ has no member named ‘body_joint_state’
148 | q.setRPY(0, 0, -packet.body_joint_state);
| ^~~~~~~~~~~~~~~~
gmake[2]: *** [CMakeFiles/rm_serial_driver.dir/build.make:76: CMakeFiles/rm_serial_driver.dir/src/rm_serial_driver.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:139: CMakeFiles/rm_serial_driver.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2