From 46bd4bddc5ced38c16fa0bc2232008649874305d Mon Sep 17 00:00:00 2001 From: Chris Iverach-Brereton Date: Tue, 30 Jul 2024 12:12:33 -0400 Subject: [PATCH] Fix logging for the buttons plugin --- .../irobot_create_gz_plugins/Create3Hmi/Create3Hmi.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/irobot_create_gz/irobot_create_gz_plugins/Create3Hmi/Create3Hmi.cc b/irobot_create_gz/irobot_create_gz_plugins/Create3Hmi/Create3Hmi.cc index d042b776..0ba3a0f0 100644 --- a/irobot_create_gz/irobot_create_gz_plugins/Create3Hmi/Create3Hmi.cc +++ b/irobot_create_gz/irobot_create_gz_plugins/Create3Hmi/Create3Hmi.cc @@ -57,7 +57,7 @@ void Create3Hmi::OnCreate3Button(const int button) button_msg.set_data(button); if (!this->create3_button_pub_.Publish(button_msg)) { - ignerr << "gz::msgs::Int32 message couldn't be published at topic: " << + gzerr << "gz::msgs::Int32 message couldn't be published at topic: " << this->create3_button_topic_ << std::endl; } } @@ -72,7 +72,7 @@ void Create3Hmi::SetNamespace(const QString &_name) this->namespace_ = _name.toStdString(); this->create3_button_topic_ = this->namespace_ + "/create3_buttons"; - ignmsg << "A new robot name has been entered, publishing on topic: '" << + gzlog << "A new robot name has been entered, publishing on topic: '" << this->create3_button_topic_ << " ' " <findChild()->notifyWithDuration( QString::fromStdString("Error when advertising topic: " + this->create3_button_topic_), 4000); - ignerr << "Error when advertising topic: " << + gzerr << "Error when advertising topic: " << this->create3_button_topic_ << std::endl; }else { App()->findChild()->notifyWithDuration(