modify robot_work_info_pub qos

This commit is contained in:
2025-10-23 19:40:48 +08:00
parent 3dd9e995fe
commit 32100b2cf8

View File

@@ -1155,7 +1155,7 @@ void CerebrumNode::RobotWorkInfoPublish()
robot_work_info_.task.push_back("None"); //current task
robot_work_info_pub_ = this->create_publisher<
interfaces::msg::RobotWorkInfo>("/robot_work_info", rclcpp::QoS(10).best_effort());
interfaces::msg::RobotWorkInfo>("/robot_work_info", 10);
if (!robot_work_info_pub_) {
RCLCPP_ERROR(this->get_logger(), "Failed to create robot work info publisher");