|
@@ -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:
|