Commit 081bf008 authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Florent Lamiraux florent@laas.fr

Update to modifications in hpp-corbaserver

  - locked joints are handled as numerical constraints.
parent de60e229
...@@ -100,10 +100,6 @@ namespace hpp { ...@@ -100,10 +100,6 @@ namespace hpp {
for (unsigned i = 0; i < nc->length(); i++) { for (unsigned i = 0; i < nc->length(); i++) {
ui->nameList->addItem(nc[i].in()); ui->nameList->addItem(nc[i].in());
} }
hpp::Names_t_var lj = plugin_->client()->problem()->getAvailable("LockedJoint");
for (unsigned i = 0; i < lj->length(); i++) {
ui->nameList->addItem(lj[i].in());
}
} }
void ConstraintWidget::createConstraint() void ConstraintWidget::createConstraint()
......
...@@ -20,13 +20,8 @@ namespace hpp { ...@@ -20,13 +20,8 @@ namespace hpp {
{ {
ui->setupUi(this); ui->setupUi(this);
hpp::Names_t_var names = plugin->client()->problem()->getAvailable("lockedjoint"); hpp::Names_t_var names =
ui->lockedJointList->setSelectionMode(QAbstractItemView::ExtendedSelection); plugin->client()->problem()->getAvailable("numericalconstraint");
for (unsigned i = 0; i < names->length(); ++i) {
ui->lockedJointList->addItem(QString(names[i]));
}
names = plugin->client()->problem()->getAvailable("numericalconstraint");
ui->numericalList->setSelectionMode(QAbstractItemView::ExtendedSelection); ui->numericalList->setSelectionMode(QAbstractItemView::ExtendedSelection);
for (unsigned i = 0; i < names->length(); ++i) { for (unsigned i = 0; i < names->length(); ++i) {
ui->numericalList->addItem(QString(names[i])); ui->numericalList->addItem(QString(names[i]));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment