From cd509669fd7932f3bb30a6838fe55f7bd541f7fc Mon Sep 17 00:00:00 2001 From: Anthony Jiang Date: Tue, 16 Jan 2024 23:15:19 +0000 Subject: [PATCH] fixed button connect (#807) --- mapviz_plugins/src/move_base_plugin.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mapviz_plugins/src/move_base_plugin.cpp b/mapviz_plugins/src/move_base_plugin.cpp index ca5de47c..7795fe8c 100644 --- a/mapviz_plugins/src/move_base_plugin.cpp +++ b/mapviz_plugins/src/move_base_plugin.cpp @@ -79,14 +79,14 @@ MoveBasePlugin::MoveBasePlugin() : p3.setColor(QPalette::Text, Qt::green); ui_.status->setPalette(p3); - QObject::connect(ui_.pushButtonInitialPose, SIGNAL(&QPushButton::toggled), - this, SLOT(&MoveBasePlugin::on_pushButtonInitialPose_toggled)); + QObject::connect(ui_.pushButtonInitialPose, SIGNAL(toggled(bool)), + this, SLOT(on_pushButtonInitialPose_toggled(bool))); - QObject::connect(ui_.pushButtonGoalPose, SIGNAL(&QPushButton::toggled), - this, SLOT(&MoveBasePlugin::on_pushButtonGoalPose_toggled)); + QObject::connect(ui_.pushButtonGoalPose, SIGNAL(toggled(bool)), + this, SLOT(on_pushButtonGoalPose_toggled(bool))); - QObject::connect(ui_.pushButtonAbort, SIGNAL(&QPushButton::clicked), - this, SLOT(&MoveBasePlugin::on_pushButtonAbort_clicked)); + QObject::connect(ui_.pushButtonAbort, SIGNAL(clicked()), + this, SLOT(on_pushButtonAbort_clicked())); timer_ = nh_.createTimer(ros::Duration(1.0), &MoveBasePlugin::timerCallback, this);