Selaa lähdekoodia

[fix]:修复错误内容

鱼香ROS 3 vuotta sitten
vanhempi
commit
712da8bb47
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      docs/humble/chapt3/get_started/2.话题之RCLCPP实现.md

+ 1 - 1
docs/humble/chapt3/get_started/2.话题之RCLCPP实现.md

@@ -380,7 +380,7 @@ public:
     {
         RCLCPP_INFO(this->get_logger(), "大家好,我是%s.", name.c_str());
           // 创建一个订阅者订阅话题
-        command_subscribe_ = this->create_subscription<std_msgs::msg::String>("sexy_girl", 10, std::bind(&TopicSubscribe01::command_callback, this, std::placeholders::_1));
+        command_subscribe_ = this->create_subscription<std_msgs::msg::String>("command", 10, std::bind(&TopicSubscribe01::command_callback, this, std::placeholders::_1));
     }
 
 private: