Skip to content

Commit

Permalink
Fixed issue in resistible wrench mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
mkghaas committed May 14, 2019
1 parent c2d9ecd commit 870fb9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/graspSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1657,7 +1657,7 @@ GraspSolver::create2DMapRefinement(Matrix &preload, const Matrix &direction1, co
w_max.multiply(max);
file << -w_max.elem(0,0) << ", " << -w_max.elem(1,0) << "\n";

DBGA("---------------- Iteration " << i+1 << "/" << directionSteps << " complete");
DBGA("Iteration " << i+1 << "/" << directionSteps << ": " << max);
}
}

Expand Down
4 changes: 2 additions & 2 deletions ui/gsaDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ GSADlg::resMapSettingsArea(QHBoxLayout *hl, QVBoxLayout *vl)

forceLayout->addWidget(new QLabel(QString("Output file:")));
std::stringstream default_filename;
default_filename << std::getenv("GRASPIT") << "resistible_wrenches.csv";
default_filename << std::getenv("GRASPIT") << "/build/resistible_wrenches.csv";
mParams->fileInput = new QLineEdit();
mParams->fileInput->setText(default_filename.str().c_str());
forceLayout->addWidget(mParams->fileInput);
Expand Down Expand Up @@ -468,7 +468,7 @@ GSADlg::solveButtonClicked()
int i,j;
for (i=j=0; it!=mParams->PlaneInput.end(); i++, it++) {
if ((*it)->isChecked() && j==0) {direction1.elem(i,0) = 1.0; j++;}
if ((*it)->isChecked() && j==1) {direction2.elem(i,0) = 1.0; j++;}
else if ((*it)->isChecked() && j==1) {direction2.elem(i,0) = 1.0; j++;}
}
} else {
std::list<QLineEdit*>::iterator it=mParams->WrenchInput.begin();
Expand Down

0 comments on commit 870fb9f

Please sign in to comment.