浏览代码

[fix]:修复错误内容

鱼香ROS 3 年之前
父节点
当前提交
712da8bb47
共有 1 个文件被更改,包括 1 次插入1 次删除
  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: