/home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:34:50: error: ‘Int8ConstPtr’ in namespace ‘std_msgs::msg’ does not name a type 34 | void game_progress_callback(const std_msgs::msg::Int8ConstPtr& game_pro) | ^~~~~~~~~~~~ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp: In function ‘void game_progress_callback(const int&)’: /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:37:27: error: base operand of ‘->’ is not a pointer 37 | game_process = game_pro->data; | ^~ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp: At global scope: /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:46:46: error: ‘Int16ConstPtr’ in namespace ‘std_msgs::msg’ does not name a type 46 | void outposthp_callback(const std_msgs::msg::Int16ConstPtr& outpost_hp) | ^~~~~~~~~~~~~ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp: In function ‘void outposthp_callback(const int&)’: /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:49:30: error: base operand of ‘->’ is not a pointer 49 | my_outpost_hp = outpost_hp->data; | ^~ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp: At global scope: /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:57:51: error: ‘PoseStampedPtr’ in namespace ‘geometry_msgs::msg’ does not name a type; did you mean ‘PoseStamped_’? 57 | void arial_cmd_callback(const geometry_msgs::msg::PoseStampedPtr& arial_cmd) | ^~~~~~~~~~~~~~ | PoseStamped_ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp: In function ‘void arial_cmd_callback(const int&)’: /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:59:24: error: base operand of ‘->’ is not a pointer 59 | double x = arial_cmd->pose.position.x; | ^~ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:60:24: error: base operand of ‘->’ is not a pointer 60 | double y = arial_cmd->pose.position.y; | ^~ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp: In function ‘int main(int, char**)’: /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:99:52: error: cannot bind non-const lvalue reference of type ‘float&’ to a value of type ‘double’ 99 | node->get_parameter("start_point_red_x", start_point_red_x); | ^~~~~~~~~~~~~~~~~ In file included from /opt/ros/humble/include/rclcpp/rclcpp/node.hpp:1321, from /opt/ros/humble/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:22, from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155, from /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:1: /opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp:286:60: note:  initializing argument 2 of ‘bool rclcpp::Node::get_parameter(const string&, ParameterT&) const [with ParameterT = float; std::string = std::__cxx11::basic_string]’ 286 | Node::get_parameter(const std::string & name, ParameterT & parameter) const | ~~~~~~~~~~~~~^~~~~~~~~ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:100:52: error: cannot bind non-const lvalue reference of type ‘float&’ to a value of type ‘double’ 100 | node->get_parameter("start_point_red_y", start_point_red_y); | ^~~~~~~~~~~~~~~~~ In file included from /opt/ros/humble/include/rclcpp/rclcpp/node.hpp:1321, from /opt/ros/humble/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:22, from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155, from /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:1: /opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp:286:60: note:  initializing argument 2 of ‘bool rclcpp::Node::get_parameter(const string&, ParameterT&) const [with ParameterT = float; std::string = std::__cxx11::basic_string]’ 286 | Node::get_parameter(const std::string & name, ParameterT & parameter) const | ~~~~~~~~~~~~~^~~~~~~~~ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:101:53: error: cannot bind non-const lvalue reference of type ‘float&’ to a value of type ‘double’ 101 | node->get_parameter("start_point_blue_x", start_point_blue_x); | ^~~~~~~~~~~~~~~~~~ In file included from /opt/ros/humble/include/rclcpp/rclcpp/node.hpp:1321, from /opt/ros/humble/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:22, from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155, from /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:1: /opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp:286:60: note:  initializing argument 2 of ‘bool rclcpp::Node::get_parameter(const string&, ParameterT&) const [with ParameterT = float; std::string = std::__cxx11::basic_string]’ 286 | Node::get_parameter(const std::string & name, ParameterT & parameter) const | ~~~~~~~~~~~~~^~~~~~~~~ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:102:53: error: cannot bind non-const lvalue reference of type ‘float&’ to a value of type ‘double’ 102 | node->get_parameter("start_point_blue_y", start_point_blue_y); | ^~~~~~~~~~~~~~~~~~ In file included from /opt/ros/humble/include/rclcpp/rclcpp/node.hpp:1321, from /opt/ros/humble/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:22, from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155, from /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:1: /opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp:286:60: note:  initializing argument 2 of ‘bool rclcpp::Node::get_parameter(const string&, ParameterT&) const [with ParameterT = float; std::string = std::__cxx11::basic_string]’ 286 | Node::get_parameter(const std::string & name, ParameterT & parameter) const | ~~~~~~~~~~~~~^~~~~~~~~ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:103:47: error: cannot bind non-const lvalue reference of type ‘float&’ to a value of type ‘double’ 103 | node->get_parameter("red_attack_x", red_attack_x); | ^~~~~~~~~~~~ In file included from /opt/ros/humble/include/rclcpp/rclcpp/node.hpp:1321, from /opt/ros/humble/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:22, from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155, from /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:1: /opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp:286:60: note:  initializing argument 2 of ‘bool rclcpp::Node::get_parameter(const string&, ParameterT&) const [with ParameterT = float; std::string = std::__cxx11::basic_string]’ 286 | Node::get_parameter(const std::string & name, ParameterT & parameter) const | ~~~~~~~~~~~~~^~~~~~~~~ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:104:47: error: cannot bind non-const lvalue reference of type ‘float&’ to a value of type ‘double’ 104 | node->get_parameter("red_attack_y", red_attack_y); | ^~~~~~~~~~~~ In file included from /opt/ros/humble/include/rclcpp/rclcpp/node.hpp:1321, from /opt/ros/humble/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:22, from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155, from /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:1: /opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp:286:60: note:  initializing argument 2 of ‘bool rclcpp::Node::get_parameter(const string&, ParameterT&) const [with ParameterT = float; std::string = std::__cxx11::basic_string]’ 286 | Node::get_parameter(const std::string & name, ParameterT & parameter) const | ~~~~~~~~~~~~~^~~~~~~~~ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:105:48: error: cannot bind non-const lvalue reference of type ‘float&’ to a value of type ‘double’ 105 | node->get_parameter("blue_attack_x", blue_attack_x); | ^~~~~~~~~~~~~ In file included from /opt/ros/humble/include/rclcpp/rclcpp/node.hpp:1321, from /opt/ros/humble/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:22, from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155, from /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:1: /opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp:286:60: note:  initializing argument 2 of ‘bool rclcpp::Node::get_parameter(const string&, ParameterT&) const [with ParameterT = float; std::string = std::__cxx11::basic_string]’ 286 | Node::get_parameter(const std::string & name, ParameterT & parameter) const | ~~~~~~~~~~~~~^~~~~~~~~ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:106:48: error: cannot bind non-const lvalue reference of type ‘float&’ to a value of type ‘double’ 106 | node->get_parameter("blue_attack_y", blue_attack_y); | ^~~~~~~~~~~~~ In file included from /opt/ros/humble/include/rclcpp/rclcpp/node.hpp:1321, from /opt/ros/humble/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:22, from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155, from /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:1: /opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp:286:60: note:  initializing argument 2 of ‘bool rclcpp::Node::get_parameter(const string&, ParameterT&) const [with ParameterT = float; std::string = std::__cxx11::basic_string]’ 286 | Node::get_parameter(const std::string & name, ParameterT & parameter) const | ~~~~~~~~~~~~~^~~~~~~~~ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:107:48: error: cannot bind non-const lvalue reference of type ‘float&’ to a value of type ‘double’ 107 | node->get_parameter("red_defense_x", red_defense_x); | ^~~~~~~~~~~~~ In file included from /opt/ros/humble/include/rclcpp/rclcpp/node.hpp:1321, from /opt/ros/humble/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:22, from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155, from /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:1: /opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp:286:60: note:  initializing argument 2 of ‘bool rclcpp::Node::get_parameter(const string&, ParameterT&) const [with ParameterT = float; std::string = std::__cxx11::basic_string]’ 286 | Node::get_parameter(const std::string & name, ParameterT & parameter) const | ~~~~~~~~~~~~~^~~~~~~~~ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:108:48: error: cannot bind non-const lvalue reference of type ‘float&’ to a value of type ‘double’ 108 | node->get_parameter("red_defense_y", red_defense_y); | ^~~~~~~~~~~~~ In file included from /opt/ros/humble/include/rclcpp/rclcpp/node.hpp:1321, from /opt/ros/humble/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:22, from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155, from /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:1: /opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp:286:60: note:  initializing argument 2 of ‘bool rclcpp::Node::get_parameter(const string&, ParameterT&) const [with ParameterT = float; std::string = std::__cxx11::basic_string]’ 286 | Node::get_parameter(const std::string & name, ParameterT & parameter) const | ~~~~~~~~~~~~~^~~~~~~~~ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:109:49: error: cannot bind non-const lvalue reference of type ‘float&’ to a value of type ‘double’ 109 | node->get_parameter("blue_defense_x", blue_defense_x); | ^~~~~~~~~~~~~~ In file included from /opt/ros/humble/include/rclcpp/rclcpp/node.hpp:1321, from /opt/ros/humble/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:22, from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155, from /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:1: /opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp:286:60: note:  initializing argument 2 of ‘bool rclcpp::Node::get_parameter(const string&, ParameterT&) const [with ParameterT = float; std::string = std::__cxx11::basic_string]’ 286 | Node::get_parameter(const std::string & name, ParameterT & parameter) const | ~~~~~~~~~~~~~^~~~~~~~~ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:110:49: error: cannot bind non-const lvalue reference of type ‘float&’ to a value of type ‘double’ 110 | node->get_parameter("blue_defense_y", blue_defense_y); | ^~~~~~~~~~~~~~ In file included from /opt/ros/humble/include/rclcpp/rclcpp/node.hpp:1321, from /opt/ros/humble/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:22, from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155, from /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:1: /opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp:286:60: note:  initializing argument 2 of ‘bool rclcpp::Node::get_parameter(const string&, ParameterT&) const [with ParameterT = float; std::string = std::__cxx11::basic_string]’ 286 | Node::get_parameter(const std::string & name, ParameterT & parameter) const | ~~~~~~~~~~~~~^~~~~~~~~ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:117:4: error: ‘game_pro_sub’ was not declared in this scope; did you mean ‘game_process’? 117 | game_pro_sub = node->create_subscription("/game_progress", rclcpp::QoS(10), | ^~~~~~~~~~~~ | game_process /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:117:65: error: ‘Twist’ is not a member of ‘geometry_msgs::msg’ 117 | ame_pro_sub = node->create_subscription("/game_progress", rclcpp::QoS(10), | ^~~~~ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:118:14: error: ‘DecisionMoveNode’ has not been declared 118 | std::bind(&DecisionMoveNode::game_progress_callback, std::placeholders::_1)); | ^~~~~~~~~~~~~~~~ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:120:4: error: ‘outposthp_sub’ was not declared in this scope; did you mean ‘outpost_low’? 120 | outposthp_sub = create_subscription("/outpost_hp", rclcpp::QoS(10), | ^~~~~~~~~~~~~ | outpost_low /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:120:20: error: ‘create_subscription’ was not declared in this scope 120 | outposthp_sub = create_subscription("/outpost_hp", rclcpp::QoS(10), | ^~~~~~~~~~~~~~~~~~~ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:120:20: note: suggested alternatives: In file included from /opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp:43, from /opt/ros/humble/include/rclcpp/rclcpp/node.hpp:1321, from /opt/ros/humble/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:22, from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155, from /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:1: /opt/ros/humble/include/rclcpp/rclcpp/create_subscription.hpp:206:1: note:  ‘rclcpp::create_subscription’ 206 | create_subscription( | ^~~~~~~~~~~~~~~~~~~ /opt/ros/humble/include/rclcpp/rclcpp/create_subscription.hpp:56:1: note:  ‘rclcpp::detail::create_subscription’ 56 | create_subscription( | ^~~~~~~~~~~~~~~~~~~ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:120:60: error: ‘Twist’ is not a member of ‘geometry_msgs::msg’ 120 | outposthp_sub = create_subscription("/outpost_hp", rclcpp::QoS(10), | ^~~~~ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:120:67: error: left operand of comma operator has no effect []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-value-Werror=unused-value]8;;] 120 | posthp_sub = create_subscription("/outpost_hp", rclcpp::QoS(10), | ^~~~~~~~~~~~~ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:121:14: error: ‘DecisionMoveNode’ has not been declared 121 | std::bind(&DecisionMoveNode::outposthp_callback, std::placeholders::_1)); | ^~~~~~~~~~~~~~~~ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:123:4: error: ‘arial_cmd_sub’ was not declared in this scope; did you mean ‘arial_cmd_flag’? 123 | arial_cmd_sub = create_subscription("/arial_cmd", rclcpp::QoS(10), | ^~~~~~~~~~~~~ | arial_cmd_flag /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:123:60: error: ‘Twist’ is not a member of ‘geometry_msgs::msg’ 123 | arial_cmd_sub = create_subscription("/arial_cmd", rclcpp::QoS(10), | ^~~~~ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:123:67: error: left operand of comma operator has no effect []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-value-Werror=unused-value]8;;] 123 | al_cmd_sub = create_subscription("/arial_cmd", rclcpp::QoS(10), | ^~~~~~~~~~~~ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:124:14: error: ‘DecisionMoveNode’ has not been declared 124 | std::bind(&DecisionMoveNode::arial_cmd_callback, std::placeholders::_1)); | ^~~~~~~~~~~~~~~~ /home/firmament/codes/24navigation/src/sentry_plan_control/plc_bringup/src/decision_move_node.cpp:129:9: error: unused variable ‘choice’ []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-variable-Werror=unused-variable]8;;] 129 | char choice = 'q'; | ^~~~~~ cc1plus: all warnings being treated as errors gmake[2]: *** [CMakeFiles/decision_move_node.dir/build.make:76: CMakeFiles/decision_move_node.dir/src/decision_move_node.cpp.o] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:137: CMakeFiles/decision_move_node.dir/all] Error 2 gmake: *** [Makefile:146: all] Error 2