Skip to content

Commit

Permalink
fixed button connect (swri-robotics#807)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Jiang authored Jan 16, 2024
1 parent d6fe4b8 commit cd50966
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mapviz_plugins/src/move_base_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit cd50966

Please sign in to comment.