活动介绍

.cpp:173:54: warning: unused parameter ‘request_header’ [-Wunused-parameter] 173 | [&laser](const std::shared_ptr<rmw_request_id_t> request_header, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /home/abc/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:174:56: warning: unused parameter ‘req’ [-Wunused-parameter] 174 | const std::shared_ptr<std_srvs::srv::Empty::Request> req, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /home/abc/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:175:51: warning: unused parameter ‘response’ [-Wunused-parameter] 175 | std::shared_ptr<std_srvs::srv::Empty::Response> response) -> bool | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ gmake[2]: *** [CMakeFiles/ydlidar_ros2_driver_node.dir/build.make:76:CMakeFiles/ydlidar_ros2_driver_node.dir/src/ydlidar_ros2_driver_node.cpp.o] 错误 1 gmake[1]: *** [CMakeFiles/Makefile2:139:CMakeFiles/ydlidar_ros2_driver_node.dir/all] 错误 2 gmake[1]: *** 正在等待未完成的任务.... gmake: *** [Makefile:146:all] 错误 2 --- Failed <<< ydlidar_ros2_driver [7.20s, exited with code 2] Summary: 0 packages finished [7.48s] 1 package failed: ydlidar_ros2_driver 1 package had stderr output: ydlidar_ros2_driver abc@abc-virtual-machine:~/ydlidar_ws$

时间: 2025-08-10 22:17:32 浏览: 3
<think>嗯,用户遇到了C++代码中的未使用参数警告,导致构建失败的问题。首先,我需要理解未使用参数警告的具体原因。在C++中,当函数声明了参数但未在函数体内使用时,编译器会发出-Wunused-parameter警告,这通常被视为潜在的错误,因为未使用的参数可能意味着代码逻辑有问题或者存在冗余。接下来,用户提到的ydlidar_ros2_driver构建失败,可能是因为这些警告被当作错误处理(-Werror),导致编译中断。所以,我需要提供几种解决方案来消除这些警告。第一种方法是直接删除未使用的参数。如果这些参数确实不需要,删除它们是最直接的解决办法。例如,如果函数定义为`voidfunc(intparam)`,但param未被使用,可以改为`voidfunc()`。不过,如果函数是重写虚函数或接口的一部分,参数必须保留,这时候就需要其他方法。第二种方法是注释掉参数名。在C++中,可以保留参数类型但去掉名称,这样编译器就不会发出警告。例如,将`voidfunc(intparam)`改为`voidfunc(int)`。这种方法适用于必须保留参数列表但不需要使用参数的情况。第三种方法是使用预处理指令或属性来抑制警告。GCC和Clang允许使用`__attribute__((unused))`来标记参数,告知编译器该参数是故意未使用的。例如,`voidfunc(int__attribute__((unused))param)`。对于跨编译器兼容性,可以使用宏定义,如`UNUSED(param)`,在宏中展开为`(void)param`,这样通过显式转换避免警告。另外,用户可能需要检查项目的编译选项。如果项目启用了-Werror,将警告视为错误,可以临时禁用该选项,但这不是长久之计。更好的做法是修复警告本身。针对ydlidar_ros2_driver的具体情况,可能需要查看报错的函数定义,确定哪些参数未被使用,然后应用上述方法之一。例如,如果函数是ROS2的回调函数,参数可能在某些情况下未被使用,但仍需保留函数签名。这时使用`(void)param;`语句或属性标记会更合适。此外,用户可能需要检查代码库是否有其他依赖或宏定义,是否有条件编译部分导致某些参数未被使用。例如,在调试代码被注释掉的情况下,原本使用的参数可能变得未被使用。最后,确保所有修改不会影响代码的实际功能,尤其是在处理硬件驱动时,任何参数的错误处理都可能导致运行时错误。建议在修复后重新构建,并运行测试用例验证功能正常。</think>关于C++未使用参数警告的修复及构建失败问题,以下是分步解决方案: ### 1. 未使用参数警告的本质 该警告产生于函数声明参数未被实际使用$,常见于回调函数或接口继承场景。例如: ```cpp void callback(std::string request_header, int req) { // req未被使用 // 仅使用request_header } ``` ### 2. 修复方法对比 | 方法 | 适用场景 | 示例 | 优点 | |------|---------|------|------| | 删除参数 | 参数确实不需要 | `void func()` | 最简洁 | | 注释参数名 | 必须保留参数列表 | `void func(int /*unused*/)` | 兼容接口 | | 属性标记 | 跨平台代码 | `void func(int __attribute__((unused)) param)` | 显式声明 | | 强制转换 | 通用方法 | `(void)response;` | 兼容性强 | ### 3. 具体实施步骤 以ydlidar_ros2_driver典型错误为例: ```cpp // 原始错误代码 void parseResponse(const std::string& response) { // [-Wunused-parameter] // 函数体未使用response参数 } // 方法1:删除参数(推荐) void parseResponse() { // 新函数体 } // 方法2:注释参数名 void parseResponse(const std::string& /*response*/) { // 保持接口兼容 } // 方法3:添加UNUSED宏 #define UNUSED(x) (void)(x) void parseResponse(const std::string& response) { UNUSED(response); // 其他逻辑 } ``` ### 4. 构建系统配置建议 在CMakeLists.txt中添加: ```cmake if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") add_compile_options(-Wno-unused-parameter) # 禁用该警告 endif() ``` ### 5. 验证流程 ```bash # 清理构建缓存 rm -rf build/ # 重新构建 colcon build --packages-select ydlidar_ros2_driver ``` ### 扩展知识 未使用参数可能暗示代码设计问题$,建议定期使用静态分析工具扫描[^1]。对于驱动开发,应特别注意接口兼容性与资源释放的完整性[^2]。
阅读全文

相关推荐

[user@localhost HomeWork_makefile2]$ make gcc -std=c99 -Wall -Wextra -O2 -o threaded_server multi_threaded.c -lpthread multi_threaded.c: In function ‘send_error_response’: multi_threaded.c:81:5: warning: enumeration value ‘HTTP_200’ not handled in switch [-Wswitch] switch (status) { ^ gcc -std=c99 -Wall -Wextra -O2 -o process_server multi_process.c multi_process.c: In function ‘send_error_response’: multi_process.c:82:5: warning: enumeration value ‘HTTP_200’ not handled in switch [-Wswitch] switch (status) { ^ gcc -std=c99 -Wall -Wextra -O2 -o multiplexed_server io_multiplex.c io_multiplex.c: In function ‘bind_socket’: io_multiplex.c:6:22: warning: unused parameter ‘sockfd’ [-Wunused-parameter] void bind_socket(int sockfd) { /* 同multithreaded.c */ } ^ io_multiplex.c: In function ‘get_content_type’: io_multiplex.c:7:42: warning: unused parameter ‘path’ [-Wunused-parameter] const char* get_content_type(const char* path) { /* 同multithreaded.c */ } ^ io_multiplex.c: In function ‘is_path_safe’: io_multiplex.c:8:30: warning: unused parameter ‘path’ [-Wunused-parameter] int is_path_safe(const char* path) { /* 同multithreaded.c */ } ^ io_multiplex.c: In function ‘send_http_response’: io_multiplex.c:9:29: warning: unused parameter ‘client_fd’ [-Wunused-parameter] void send_http_response(int client_fd, http_status_t status, ^ io_multiplex.c:9:54: warning: unused parameter ‘status’ [-Wunused-parameter] void send_http_response(int client_fd, http_status_t status, ^ io_multiplex.c:10:37: warning: unused parameter ‘content_type’ [-Wunused-parameter] const char* content_type, off_t content_length) { /* 同multithreaded.c */ } ^ io_multiplex.c:10:57: warning: unused parameter ‘content_length’ [-Wunused-parameter] const char* content_type, off_t content_length) { /* 同multithreaded.c */ } ^ io_multiplex.c: In function ‘send_error_response’: io_multiplex.c:11:30: warning: unused parameter ‘client_fd’ [-Wunused-parameter] void send_error_response(int client_fd, http_status_t status) { /* 同multithreaded.c */ } ^ io_multiplex.c:11:55: warning: unused parameter ‘status’ [-Wunused-parameter] void send_error_response(int client_fd, http_status_t status) { /* 同multithreaded.c */ } ^ io_multiplex.c: In function ‘main’: io_multiplex.c:31:5: warning: missing braces around initializer [-Wmissing-braces] client_state_t clients[MAX_CLIENTS] = {0}; ^ io_multiplex.c:31:5: warning: (near initialization for ‘clients[0]’) [-Wmissing-braces] io_multiplex.c: In function ‘create_socket’: io_multiplex.c:5:1: warning: control reaches end of non-void function [-Wreturn-type] int create_socket() { /* 同multithreaded.c */ } ^ io_multiplex.c: In function ‘get_content_type’: io_multiplex.c:7:1: warning: control reaches end of non-void function [-Wreturn-type] const char* get_content_type(const char* path) { /* 同multithreaded.c */ } ^ io_multiplex.c: In function ‘is_path_safe’: io_multiplex.c:8:1: warning: control reaches end of non-void function [-Wreturn-type] int is_path_safe(const char* path) { /* 同multithreaded.c */ } ^ Web root prepared at webroot 这些报错信息什么意思

src/main.cpp: In function 'float readTemperature()': src/main.cpp:266:28: error: 'AHT10_I2C_ADDR' was not declared in this scope Wire.beginTransmission(AHT10_I2C_ADDR); ^~~~~~~~~~~~~~ src/main.cpp:266:28: note: suggested alternative: 'ATH10_I2C_ADDR' Wire.beginTransmission(AHT10_I2C_ADDR); ^~~~~~~~~~~~~~ ATH10_I2C_ADDR src/main.cpp:276:15: warning: unused variable 'status' [-Wunused-variable] uint8_t status = Wire.read(); ^~~~~~ src/main.cpp:277:15: warning: unused variable 'humi_high' [-Wunused-variable] uint8_t humi_high = Wire.read(); ^~~~~~~~~ src/main.cpp:278:15: warning: unused variable 'humi_low' [-Wunused-variable] uint8_t humi_low = Wire.read(); ^~~~~~~~ src/main.cpp:279:15: warning: unused variable 'humi_x' [-Wunused-variable] uint8_t humi_x = Wire.read(); ^~~~~~ src/main.cpp: In function 'void setup()': src/main.cpp:295:32: error: 'AHT10_I2C_ADDR' was not declared in this scope Wire.beginTransmission(AHT10_I2C_ADDR); ^~~~~~~~~~~~~~ src/main.cpp:295:32: note: suggested alternative: 'ATH10_I2C_ADDR' Wire.beginTransmission(AHT10_I2C_ADDR); ^~~~~~~~~~~~~~ ATH10_I2C_ADDR src/main.cpp:1016:104: warning: 'new' of type 'SX1262Interface' with extended alignment 16 [-Waligned-new=] auto *sxIf = new SX1262Interface(RadioLibHAL, SX126X_CS, SX126X_DIO1, SX126X_RESET, SX126X_BUSY); ^ src/main.cpp:1016:104: note: uses 'void* operator new(std::size_t)', which does not have an alignment parameter src/main.cpp:1016:104: note: use '-faligned-new' to enable C++17 over-aligned new support *** [.pio\build\heltec-v3\src\main.cpp.o] Error 1怎么解决

not found: "/home/a/ydlidar_ws/install/ydlidar_ros2_driver/share/ydlidar_ros2_driver/local_setup.bash" a@a-FR-AX-B760M-F-PRO:~/ydlidar_ws$ colcon build --symlink-install Starting >>> ydlidar_ros2_driver --- stderr: ydlidar_ros2_driver /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp: In function ‘int main(int, char**)’: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:44:26: error: no matching function for call to ‘rclcpp::Node::declare_parameter(const char [5])’ 44 | node->declare_parameter("port"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ In file included from /opt/ros/jazzy/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/jazzy/include/rclcpp/rclcpp/executors.hpp:22, from /opt/ros/jazzy/include/rclcpp/rclcpp/rclcpp.hpp:172, from /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:23: /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const ParameterT&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 500 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:44:26: note: candidate expects 4 arguments, 1 provided 44 | node->declare_parameter("port"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 513 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:44:26: note: couldn’t deduce template parameter ‘ParameterT’ 44 | node->declare_parameter("port"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, const rclcpp::ParameterValue&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 445 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate expects 4 arguments, 1 provided /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, rclcpp::ParameterType, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 470 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate expects 4 arguments, 1 provided /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:51:26: error: no matching function for call to ‘rclcpp::Node::declare_parameter(const char [13])’ 51 | node->declare_parameter("ignore_array"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const ParameterT&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 500 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:51:26: note: candidate expects 4 arguments, 1 provided 51 | node->declare_parameter("ignore_array"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 513 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:51:26: note: couldn’t deduce template parameter ‘ParameterT’ 51 | node->declare_parameter("ignore_array"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, const rclcpp::ParameterValue&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 445 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate expects 4 arguments, 1 provided /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, rclcpp::ParameterType, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 470 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate expects 4 arguments, 1 provided /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:56:26: error: no matching function for call to ‘rclcpp::Node::declare_parameter(const char [9])’ 56 | node->declare_parameter("frame_id"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const ParameterT&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 500 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:56:26: note: candidate expects 4 arguments, 1 provided 56 | node->declare_parameter("frame_id"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 513 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:56:26: note: couldn’t deduce template parameter ‘ParameterT’ 56 | node->declare_parameter("frame_id"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, const rclcpp::ParameterValue&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 445 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate expects 4 arguments, 1 provided /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, rclcpp::ParameterType, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 470 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate expects 4 arguments, 1 provided /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:62:26: error: no matching function for call to ‘rclcpp::Node::declare_parameter(const char [9])’ 62 | node->declare_parameter("baudrate"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const ParameterT&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 500 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:62:26: note: candidate expects 4 arguments, 1 provided 62 | node->declare_parameter("baudrate"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 513 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:62:26: note: couldn’t deduce template parameter ‘ParameterT’ 62 | node->declare_parameter("baudrate"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, const rclcpp::ParameterValue&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 445 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate expects 4 arguments, 1 provided /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, rclcpp::ParameterType, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 470 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate expects 4 arguments, 1 provided /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:67:26: error: no matching function for call to ‘rclcpp::Node::declare_parameter(const char [11])’ 67 | node->declare_parameter("lidar_type"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const ParameterT&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 500 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:67:26: note: candidate expects 4 arguments, 1 provided 67 | node->declare_parameter("lidar_type"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 513 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:67:26: note: couldn’t deduce template parameter ‘ParameterT’ 67 | node->declare_parameter("lidar_type"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, const rclcpp::ParameterValue&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 445 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate expects 4 arguments, 1 provided /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, rclcpp::ParameterType, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 470 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate expects 4 arguments, 1 provided /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:72:26: error: no matching function for call to ‘rclcpp::Node::declare_parameter(const char [12])’ 72 | node->declare_parameter("device_type"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const ParameterT&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 500 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:72:26: note: candidate expects 4 arguments, 1 provided 72 | node->declare_parameter("device_type"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 513 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:72:26: note: couldn’t deduce template parameter ‘ParameterT’ 72 | node->declare_parameter("device_type"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, const rclcpp::ParameterValue&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 445 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate expects 4 arguments, 1 provided /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, rclcpp::ParameterType, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 470 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate expects 4 arguments, 1 provided /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:77:26: error: no matching function for call to ‘rclcpp::Node::declare_parameter(const char [12])’ 77 | node->declare_parameter("sample_rate"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const ParameterT&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 500 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:77:26: note: candidate expects 4 arguments, 1 provided 77 | node->declare_parameter("sample_rate"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 513 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:77:26: note: couldn’t deduce template parameter ‘ParameterT’ 77 | node->declare_parameter("sample_rate"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, const rclcpp::ParameterValue&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 445 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate expects 4 arguments, 1 provided /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, rclcpp::ParameterType, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 470 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate expects 4 arguments, 1 provided /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:82:26: error: no matching function for call to ‘rclcpp::Node::declare_parameter(const char [21])’ 82 | node->declare_parameter("abnormal_check_count"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const ParameterT&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 500 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:82:26: note: candidate expects 4 arguments, 1 provided 82 | node->declare_parameter("abnormal_check_count"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 513 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:82:26: note: couldn’t deduce template parameter ‘ParameterT’ 82 | node->declare_parameter("abnormal_check_count"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, const rclcpp::ParameterValue&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 445 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate expects 4 arguments, 1 provided /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, rclcpp::ParameterType, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 470 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate expects 4 arguments, 1 provided /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:90:26: error: no matching function for call to ‘rclcpp::Node::declare_parameter(const char [17])’ 90 | node->declare_parameter("fixed_resolution"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const ParameterT&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 500 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:90:26: note: candidate expects 4 arguments, 1 provided 90 | node->declare_parameter("fixed_resolution"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 513 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:90:26: note: couldn’t deduce template parameter ‘ParameterT’ 90 | node->declare_parameter("fixed_resolution"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, const rclcpp::ParameterValue&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 445 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate expects 4 arguments, 1 provided /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, rclcpp::ParameterType, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 470 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate expects 4 arguments, 1 provided /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:95:26: error: no matching function for call to ‘rclcpp::Node::declare_parameter(const char [10])’ 95 | node->declare_parameter("reversion"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const ParameterT&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 500 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:95:26: note: candidate expects 4 arguments, 1 provided 95 | node->declare_parameter("reversion"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 513 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:95:26: note: couldn’t deduce template parameter ‘ParameterT’ 95 | node->declare_parameter("reversion"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, const rclcpp::ParameterValue&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 445 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate expects 4 arguments, 1 provided /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, rclcpp::ParameterType, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 470 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate expects 4 arguments, 1 provided /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:100:26: error: no matching function for call to ‘rclcpp::Node::declare_parameter(const char [9])’ 100 | node->declare_parameter("inverted"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const ParameterT&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 500 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:100:26: note: candidate expects 4 arguments, 1 provided 100 | node->declare_parameter("inverted"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 513 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:100:26: note: couldn’t deduce template parameter ‘ParameterT’ 100 | node->declare_parameter("inverted"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, const rclcpp::ParameterValue&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 445 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate expects 4 arguments, 1 provided /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, rclcpp::ParameterType, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 470 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate expects 4 arguments, 1 provided /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:104:26: error: no matching function for call to ‘rclcpp::Node::declare_parameter(const char [15])’ 104 | node->declare_parameter("auto_reconnect"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const ParameterT&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 500 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:104:26: note: candidate expects 4 arguments, 1 provided 104 | node->declare_parameter("auto_reconnect"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 513 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:104:26: note: couldn’t deduce template parameter ‘ParameterT’ 104 | node->declare_parameter("auto_reconnect"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, const rclcpp::ParameterValue&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 445 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate expects 4 arguments, 1 provided /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, rclcpp::ParameterType, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 470 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate expects 4 arguments, 1 provided /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:109:26: error: no matching function for call to ‘rclcpp::Node::declare_parameter(const char [16])’ 109 | node->declare_parameter("isSingleChannel"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const ParameterT&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 500 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:109:26: note: candidate expects 4 arguments, 1 provided 109 | node->declare_parameter("isSingleChannel"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 513 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:109:26: note: couldn’t deduce template parameter ‘ParameterT’ 109 | node->declare_parameter("isSingleChannel"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, const rclcpp::ParameterValue&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 445 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate expects 4 arguments, 1 provided /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, rclcpp::ParameterType, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 470 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate expects 4 arguments, 1 provided /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:114:26: error: no matching function for call to ‘rclcpp::Node::declare_parameter(const char [10])’ 114 | node->declare_parameter("intensity"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const ParameterT&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 500 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:114:26: note: candidate expects 4 arguments, 1 provided 114 | node->declare_parameter("intensity"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 513 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:114:26: note: couldn’t deduce template parameter ‘ParameterT’ 114 | node->declare_parameter("intensity"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, const rclcpp::ParameterValue&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 445 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate expects 4 arguments, 1 provided /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, rclcpp::ParameterType, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 470 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate expects 4 arguments, 1 provided /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:119:26: error: no matching function for call to ‘rclcpp::Node::declare_parameter(const char [18])’ 119 | node->declare_parameter("support_motor_dtr"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const ParameterT&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 500 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:119:26: note: candidate expects 4 arguments, 1 provided 119 | node->declare_parameter("support_motor_dtr"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 513 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:119:26: note: couldn’t deduce template parameter ‘ParameterT’ 119 | node->declare_parameter("support_motor_dtr"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, const rclcpp::ParameterValue&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 445 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate expects 4 arguments, 1 provided /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, rclcpp::ParameterType, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 470 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate expects 4 arguments, 1 provided /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:126:26: error: no matching function for call to ‘rclcpp::Node::declare_parameter(const char [10])’ 126 | node->declare_parameter("angle_max"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const ParameterT&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 500 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:126:26: note: candidate expects 4 arguments, 1 provided 126 | node->declare_parameter("angle_max"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 513 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:126:26: note: couldn’t deduce template parameter ‘ParameterT’ 126 | node->declare_parameter("angle_max"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, const rclcpp::ParameterValue&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 445 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate expects 4 arguments, 1 provided /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, rclcpp::ParameterType, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 470 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate expects 4 arguments, 1 provided /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:130:26: error: no matching function for call to ‘rclcpp::Node::declare_parameter(const char [10])’ 130 | node->declare_parameter("angle_min"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const ParameterT&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 500 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:130:26: note: candidate expects 4 arguments, 1 provided 130 | node->declare_parameter("angle_min"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 513 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:130:26: note: couldn’t deduce template parameter ‘ParameterT’ 130 | node->declare_parameter("angle_min"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, const rclcpp::ParameterValue&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 445 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate expects 4 arguments, 1 provided /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, rclcpp::ParameterType, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 470 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate expects 4 arguments, 1 provided /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:135:26: error: no matching function for call to ‘rclcpp::Node::declare_parameter(const char [10])’ 135 | node->declare_parameter("range_max"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const ParameterT&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 500 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:135:26: note: candidate expects 4 arguments, 1 provided 135 | node->declare_parameter("range_max"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 513 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:135:26: note: couldn’t deduce template parameter ‘ParameterT’ 135 | node->declare_parameter("range_max"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, const rclcpp::ParameterValue&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 445 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate expects 4 arguments, 1 provided /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, rclcpp::ParameterType, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 470 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate expects 4 arguments, 1 provided /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:139:26: error: no matching function for call to ‘rclcpp::Node::declare_parameter(const char [10])’ 139 | node->declare_parameter("range_min"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const ParameterT&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 500 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:139:26: note: candidate expects 4 arguments, 1 provided 139 | node->declare_parameter("range_min"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 513 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:139:26: note: couldn’t deduce template parameter ‘ParameterT’ 139 | node->declare_parameter("range_min"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, const rclcpp::ParameterValue&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 445 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate expects 4 arguments, 1 provided /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, rclcpp::ParameterType, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 470 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate expects 4 arguments, 1 provided /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:144:26: error: no matching function for call to ‘rclcpp::Node::declare_parameter(const char [10])’ 144 | node->declare_parameter("frequency"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const ParameterT&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 500 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:144:26: note: candidate expects 4 arguments, 1 provided 144 | node->declare_parameter("frequency"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 513 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:144:26: note: couldn’t deduce template parameter ‘ParameterT’ 144 | node->declare_parameter("frequency"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, const rclcpp::ParameterValue&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 445 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate expects 4 arguments, 1 provided /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, rclcpp::ParameterType, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 470 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate expects 4 arguments, 1 provided /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:149:26: error: no matching function for call to ‘rclcpp::Node::declare_parameter(const char [21])’ 149 | node->declare_parameter("invalid_range_is_inf"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const ParameterT&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 500 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:500:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:149:26: note: candidate expects 4 arguments, 1 provided 149 | node->declare_parameter("invalid_range_is_inf"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: candidate: ‘template<class ParameterT> auto rclcpp::Node::declare_parameter(const std::string&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 513 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:513:3: note: template argument deduction/substitution failed: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:149:26: note: couldn’t deduce template parameter ‘ParameterT’ 149 | node->declare_parameter("invalid_range_is_inf"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, const rclcpp::ParameterValue&, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 445 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:445:3: note: candidate expects 4 arguments, 1 provided /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const std::string&, rclcpp::ParameterType, const rcl_interfaces::msg::ParameterDescriptor&, bool)’ 470 | declare_parameter( | ^~~~~~~~~~~~~~~~~ /opt/ros/jazzy/include/rclcpp/rclcpp/node.hpp:470:3: note: candidate expects 4 arguments, 1 provided /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp: In lambda function: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:163:54: warning: unused parameter ‘request_header’ [-Wunused-parameter] 163 | [&laser](const std::shared_ptr<rmw_request_id_t> request_header, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:164:56: warning: unused parameter ‘req’ [-Wunused-parameter] 164 | const std::shared_ptr<std_srvs::srv::Empty::Request> req, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:165:51: warning: unused parameter ‘response’ [-Wunused-parameter] 165 | std::shared_ptr<std_srvs::srv::Empty::Response> response) -> bool | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp: In lambda function: /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:173:54: warning: unused parameter ‘request_header’ [-Wunused-parameter] 173 | [&laser](const std::shared_ptr<rmw_request_id_t> request_header, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:174:56: warning: unused parameter ‘req’ [-Wunused-parameter] 174 | const std::shared_ptr<std_srvs::srv::Empty::Request> req, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /home/a/ydlidar_ws/src/ydlidar_ros2_driver-master/src/ydlidar_ros2_driver_node.cpp:175:51: warning: unused parameter ‘response’ [-Wunused-parameter] 175 | std::shared_ptr<std_srvs::srv::Empty::Response> response) -> bool | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ gmake[2]: *** [CMakeFiles/ydlidar_ros2_driver_node.dir/build.make:76:CMakeFiles/ydlidar_ros2_driver_node.dir/src/ydlidar_ros2_driver_node.cpp.o] 错误 1 gmake[1]: *** [CMakeFiles/Makefile2:139:CMakeFiles/ydlidar_ros2_driver_node.dir/all] 错误 2 gmake: *** [Makefile:146:all] 错误 2 --- Failed <<< ydlidar_ros2_driver [8.86s, exited with code 2] Summary: 0 packages finished [9.20s] 1 package failed: ydlidar_ros2_driver 1 package had stderr output: ydlidar_ros2_driver a@a-FR-AX-B760M-F-PRO:~/ydlidar_ws$

最新推荐

recommend-type

三菱FX3U三轴伺服电机与威纶通触摸屏组合程序详解:轴点动、回零与定位控制及全流程解析

三菱FX3U三轴伺服电机与威纶通触摸屏的程序编写方法及其应用。主要内容涵盖伺服电机主控程序、触摸屏程序、轴点动、回零及定位程序、通讯模块程序以及威纶显示器程序的分析。通过对各个模块的深入探讨,帮助读者理解每个部分的功能和实现方式,确保机械运动控制的准确性、高效性和稳定性。此外,文章还提供了关于程序编写过程中可能遇到的问题及解决方案。 适合人群:从事自动化控制领域的工程师和技术人员,尤其是对三菱FX3U三轴伺服电机和威纶通触摸屏有实际操作需求的专业人士。 使用场景及目标:适用于工业自动化项目中,旨在提高对三菱FX3U三轴伺服电机和威纶通触摸屏的理解和应用能力,掌握模块化编程技巧,解决实际工程中的编程难题。 其他说明:文中不仅讲解了各模块的具体实现细节,还强调了程序的安全性和可靠性,为项目的成功实施提供了有力的支持。
recommend-type

职业介绍与人才招聘综合管理系统-基于宏达数据库信息管理开发平台的专业人力资源服务软件-包含基本信息设置-用人单位管理-求职人员登记-数据查询-统计分析-报表生成-打印输出-权限控制.zip

cursor免费次数用完职业介绍与人才招聘综合管理系统_基于宏达数据库信息管理开发平台的专业人力资源服务软件_包含基本信息设置_用人单位管理_求职人员登记_数据查询_统计分析_报表生成_打印输出_权限控制.zip
recommend-type

Pansophica开源项目:智能Web搜索代理的探索

Pansophica开源项目是一个相对较新且具有创新性的智能Web搜索代理,它突破了传统搜索引擎的界限,提供了一种全新的交互方式。首先,我们来探讨“智能Web搜索代理”这一概念。智能Web搜索代理是一个软件程序或服务,它可以根据用户的查询自动执行Web搜索,并尝试根据用户的兴趣、历史搜索记录或其他输入来提供个性化的搜索结果。 Pansophica所代表的不仅仅是搜索结果的展示,它还强调了一个交互式的体验,在动态和交互式虚拟现实中呈现搜索结果。这种呈现方式与现有的搜索体验有着根本的不同。目前的搜索引擎,如Google、Bing和Baidu等,多以静态文本和链接列表的形式展示结果。而Pansophica通过提供一个虚拟现实环境,使得搜索者可以“扭转”视角,进行“飞行”探索,以及“弹网”来浏览不同的内容。这种多维度的交互方式使得信息的浏览变得更加快速和直观,有望改变用户与网络信息互动的方式。 接着,我们关注Pansophica的“开源”属性。所谓开源,指的是软件的源代码可以被公众获取,任何个人或组织都可以自由地使用、学习、修改和分发这些代码。开源软件通常由社区进行开发和维护,这样的模式鼓励了协作创新并减少了重复性劳动,因为全世界的开发者都可以贡献自己的力量。Pansophica项目作为开源软件,意味着其他开发者可以访问和使用其源代码,进一步改进和扩展其功能,甚至可以为Pansophica构建新的应用或服务。 最后,文件名称“Pansophica-src-1.3”表明了我们讨论的特定版本的Pansophica开源代码。数字“1.3”很可能指的是该版本号,表明这是Pansophica项目的第1.3个公开版本。这个版本号对于开发者来说很重要,因为它可以帮助他们追踪更新的进度、比较版本间的差异以及选择最适合其项目的版本。 综合以上信息,Pansophica开源项目不仅在搜索代理领域引入了创新的交互方式,而且通过开源的方式,提供了技术共享和协作的可能性。对于IT行业来说,开源项目是推动技术发展的重要力量,它激发了社区的活力,促进了知识的传播和技术的进步。通过构建一个开源社区,Pansophica可以吸引来自世界各地的开发者和研究人员,共同探索如何将搜索技术与交互式虚拟现实技术结合起来,为用户带来更加丰富和有效的信息检索体验。同时,Pansophica的开源性质也使其更容易适应未来技术的发展,随着社区的不断贡献和反馈,这一平台有望在功能和性能上得到持续的优化和增强。
recommend-type

跨平台内容提取无忧:coze工作流应对社交媒体挑战

# 1. 社交媒体内容提取的必要性与挑战 ## 1.1 内容提取的必要性 在数字时代,社交媒体内容是信息与数据流动的主干道,公司、个人和研究者都在寻求从这些信息中提取价值。无论是为了市场趋势分析、品牌监控、消费者洞察还是公共舆论监测,有效的社交媒体内容提取变得至关重要。这不仅有助于企业做出数据驱动的决策,也能使个人更好地理
recommend-type

vrrp主设备发送的免费arp

<think>好的,我现在需要回答用户关于VRRP主设备发送免费ARP的目的和工作原理的问题。首先,我得回忆一下VRRP的基本概念和工作机制。VRRP,虚拟路由冗余协议,主要用于在局域网中提供默认网关的冗余备份,确保网络的高可用性。主设备(Master)负责转发流量,而备用设备(Backup)则在主设备故障时接管工作。 用户的问题集中在主设备发送免费ARP的目的和机制上。根据引用[2],免费ARP用于通知下游设备虚拟MAC地址的变更。当主设备被选举出来后,它需要让局域网内的其他设备知道虚拟IP对应的MAC地址已经指向自己,这样流量才会被正确路由到主设备。免费ARP的作用应该就是更新这些设备的
recommend-type

为Ghost博客平台打造的Meteor流星包装使用指南

从给定文件信息中,我们可以提炼出以下IT知识点: ### 标题知识点:流星Ghost软件包 1. **流星Ghost软件包的用途**:流星Ghost软件包是专为Ghost博客平台设计的流星(Meteor)应用程序。流星是一个开源的全栈JavaScript平台,用于开发高性能和易于编写的Web应用程序。Ghost是一个开源博客平台,它提供了一个简单且专业的写作环境。 2. **软件包的作用**:流星Ghost软件包允许用户在流星平台上轻松集成Ghost博客。这样做的好处是可以利用流星的实时特性以及易于开发和部署的应用程序框架,同时还能享受到Ghost博客系统的便利和美观。 ### 描述知识点:流星Ghost软件包的使用方法 1. **软件包安装方式**:用户可以通过流星的命令行工具添加名为`mrt:ghost`的软件包。`mrt`是流星的一个命令行工具,用于添加、管理以及配置软件包。 2. **初始化Ghost服务器**:描述中提供了如何在服务器启动时运行Ghost的基本代码示例。这段代码使用了JavaScript的Promise异步操作,`ghost().then(function (ghostServer) {...})`这行代码表示当Ghost服务器初始化完成后,会在Promise的回调函数中提供一个Ghost服务器实例。 3. **配置Ghost博客**:在`then`方法中,首先会获取到Ghost服务器的配置对象`config`,用户可以在此处进行自定义设置,例如修改主题、配置等。 4. **启动Ghost服务器**:在配置完成之后,通过调用`ghostServer.start()`来启动Ghost服务,使其能够处理博客相关的请求。 5. **Web浏览器导航**:一旦流星服务器启动并运行,用户便可以通过Web浏览器访问Ghost博客平台。 ### 标签知识点:JavaScript 1. **JavaScript作为流星Ghost软件包的开发语言**:标签指出流星Ghost软件包是使用JavaScript语言开发的。JavaScript是一种在浏览器端广泛使用的脚本语言,它也是流星平台的基础编程语言。 2. **流星和Ghost共同使用的语言**:JavaScript同样也是Ghost博客平台的开发语言。这表明流星Ghost软件包可以无缝集成,因为底层技术栈相同。 ### 压缩包子文件的文件名称列表知识点:meteor-ghost-master 1. **版本控制和软件包结构**:文件名称`meteor-ghost-master`暗示了该软件包可能托管在像GitHub这样的版本控制系统上。文件名中的`master`通常指的是主分支或主版本。 2. **软件包的目录结构**:通过文件名称可以推断出该软件包可能拥有一个标准的流星软件包结构,包含了初始化、配置、运行等必要的模块和文件。 3. **软件包的维护状态**:由于文件名没有包含特定的版本号,我们无法直接得知软件包的最新更新情况。通常,软件包维护者会将最新的版本代码放在`master`分支上。 ### 总结 流星Ghost软件包提供了一个有效的解决方案,使得流星平台的开发者能够在他们的应用中添加Ghost博客功能。软件包的使用简便,通过流星的命令行工具安装,并通过JavaScript代码配置和启动Ghost服务。通过流星Ghost软件包,开发者能够享受流星的实时特性以及Ghost博客系统的便利性。此外,软件包的命名和结构也暗示了其维护和版本控制的模式,有助于开发者更好地理解如何使用和维护这一软件包。
recommend-type

抖音标题生成自动化:用coze工作流释放创意

# 1. 抖音标题生成自动化的重要性 随着社交媒体平台的崛起,内容的吸引力很大程度上取决于标题的创意与精准性。抖音作为一个日活亿级的短视频平台,高质量的标题能够有效提高视频的点击率,增加内容的传播。但是,人工撰写标题不仅耗时耗力,而且很难做到快速响应热点,自动化标题生成工具应运而生。coze工作流,作为一种实现自动化生成抖音标题的工具,其重要性不言而喻。它能够利用大数据分析和机器学习技术,提高标题的吸引
recommend-type

spss消费结构因子分析

<think>好的,我现在需要帮助用户在SPSS中进行消费结构的因子分析。首先,我要回忆一下因子分析的基本步骤和SPSS的操作流程。用户可能对SPSS不太熟悉,所以步骤要详细,同时需要结合他们提供的引用内容,特别是引用[2]中的适用条件和检验方法。 首先,用户提到了消费结构的数据,这可能包括多个变量,如食品、住房、交通等支出。因子分析适用于这种情况,可以降维并找出潜在因子。根据引用[2],需要检查样本量是否足够,变量间是否有相关性,以及KMO和Bartlett检验的结果。 接下来,我需要按照步骤组织回答:数据准备、适用性检验、因子提取、因子旋转、命名解释、计算得分。每个步骤都要简明扼要,说
recommend-type

OpenMediaVault的Docker映像:快速部署与管理指南

根据提供的文件信息,我们将详细讨论与标题和描述中提及的Docker、OpenMediaVault以及如何部署OpenMediaVault的Docker镜像相关的一系列知识点。 首先,Docker是一个开源的应用容器引擎,允许开发者打包应用及其依赖包到一个可移植的容器中,然后发布到任何流行的Linux机器上,也可以实现虚拟化。容器是完全使用沙箱机制,相互之间不会有任何接口(类似 iPhone 的 app)。 OpenMediaVault是一个基于Debian的NAS(网络附加存储)解决方案。它专为家庭或小型办公室提供文件共享、网络附加存储以及打印服务。它提供了一个易用的Web界面,通过这个界面用户可以管理服务器配置、网络设置、用户权限、文件服务等。 在描述中提到了一些Docker命令行操作: 1. `git clone`:用于克隆仓库到本地,这里的仓库指的是“docker-images-openmedivault”。 2. `docker build -t omv`:这是一个构建Docker镜像的命令,其中`-t`参数用于标记镜像名称和标签,这里是标记为“omv”。 3. `docker run`:运行一个容器实例,`-t`参数用于分配一个伪终端,`-i`参数用于交互式操作,`-p 80:80`则是将容器的80端口映射到宿主机的80端口。 启动服务的部分涉及OpenMediaVault的配置和初始化: - ssh服务:用于远程登录到服务器的协议。 - php5-fpm:是PHP的一个FastCGI实现,用于加速PHP的运行。 - nginx:是一个高性能的HTTP和反向代理服务器,常用于优化静态内容的分发。 - openmediavault引擎:指的是OpenMediaVault的核心服务。 - rrdcached:用于收集和缓存性能数据,这些数据可以被rrdtool图形化工具读取。 - collectd:是一个守护进程,用于收集系统性能和提供各种存储方式和传输方式来存储所收集的数据。 为了访问服务,需要在浏览器中输入"http:// IP_OF_DOCKER",其中`IP_OF_DOCKER`指的是运行Docker容器的主机IP地址。 描述中还提到了一个步骤:“在System-> Network-> Interfaces中添加带有dhcp的eth0”,这指的是需要在OpenMediaVault的Web管理界面中配置网络接口。`eth0`是网络接口的名称,通常代表第一个以太网接口。DHCP(动态主机配置协议)是一种自动为网络中的设备分配IP地址的协议,这样设备就可以连接网络并开始通信,无需手动配置IP地址。 【压缩包子文件的文件名称列表】中的“docker-images-openmediavault-master”暗示了这是一个包含Docker镜像文件的代码仓库。通常,“master”分支是代码的主分支,包含了代码库中最新且通常是最稳定的版本。用户可以通过克隆该仓库到本地来获取所有相关的Dockerfile、配置脚本及依赖文件,以便能够自行构建和运行OpenMediaVault的Docker镜像。 综上所述,这些知识点涵盖了从基本的Docker概念、Docker命令行操作、OpenMediaVault服务启动和管理,到具体的网络配置及Docker仓库操作,都是进行Docker化OpenMediaVault部署的关键步骤。
recommend-type

小红书文案提取一步到位:coze工作流操作全攻略

# 1. coze工作流概述 工作流系统是企业信息化和数字化转型的核心组件之一,它通过自动化流程管理提升效率,确保业务流程的顺畅执行。coze工作流作为当前市场上较为先进的工作流解决方案,它不仅仅是一套软件工具,更是一个集成化的平台,旨在通过流程自动化和智能化提升企业运营效率。 coze工作流的引入不仅有助于标准化和优化企业的业务流程,还可以通过可配置的流程设计,满足不同部门的特定需求。在组织的业务流程中