Skip to content

Commit

Permalink
updateStartStateToCurrent after execution
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Jul 16, 2016
1 parent 49c7eb6 commit b317a57
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ private Q_SLOTS:
void computeExecuteButtonClicked();
void computePlanAndExecuteButtonClicked();
void computePlanAndExecuteButtonClickedDisplayHelper();
void updateStartStateToCurrent();
void populateConstraintsList();
void populateConstraintsList(const std::vector<std::string> &constr);
void configureForPlanning();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ void MotionPlanningFrame::computeExecuteButtonClicked()
{
if (move_group_ && current_plan_)
move_group_->execute(*current_plan_);

updateStartStateToCurrent();
}

void MotionPlanningFrame::computePlanAndExecuteButtonClicked()
Expand All @@ -139,6 +141,16 @@ void MotionPlanningFrame::computePlanAndExecuteButtonClicked()
configureForPlanning();
move_group_->move();
ui_->plan_and_execute_button->setEnabled(true);

updateStartStateToCurrent();
}

void MotionPlanningFrame::updateStartStateToCurrent()
{
if (ui_->start_state_selection->currentText() == "<current>")
{
useStartStateButtonClicked();
}
}

void MotionPlanningFrame::useStartStateButtonClicked()
Expand Down

0 comments on commit b317a57

Please sign in to comment.