Skip to content

Commit

Permalink
WIP: fixing bounded to smp
Browse files Browse the repository at this point in the history
  • Loading branch information
cheshmi committed Jun 6, 2020
1 parent 27796c8 commit a36aa96
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions old/nasoq_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ int QP_demo01(int argc, char **argv){
auto *qfc4 = new format::QPFormatConverter(ief);
qfc4->ie_to_smp();
std::string smp_path = base + group + "/" + stripped_name +".yml";
format::Description d;
d.source_ = source; d.group_=group; d.name_ = stripped_name;
d.application_=application;
if(application == "Model Predictive Control")
d.category_ = "robotics";
qfc4->smp_->write(smp_path);
auto *qfc5 = new format::QPFormatConverter(qfc4->smp_);
qfc5->smp_to_ie();
Expand Down Expand Up @@ -221,6 +226,11 @@ int QP_demo01(int argc, char **argv){
}
auto *qfc6 = new format::QPFormatConverter(bf);
qfc6->bounded_to_smp();
format::Description d;
d.source_ = source; d.group_=group; d.name_ = stripped_name;
d.application_=application;
if(application == "Maros-Meszaros")
d.category_ = "Maros-Meszaros";
std::string smp_path = base + group + "/" + stripped_name +".yml";
qfc6->smp_->write(smp_path);

Expand Down

0 comments on commit a36aa96

Please sign in to comment.