Commit 044693e0 authored by Andrea Del Prete's avatar Andrea Del Prete
Browse files

Expose status of HQPOutput via python bindings

parent b74c6a97
......@@ -43,9 +43,11 @@ namespace tsid
.def(bp::init<>("Defulat Constructor"))
.def(bp::init<int, int, int>((bp::args("nVars", "nEq", "nInCon"))))
.add_property("x", &HQPOutputPythonVisitor::x)
.add_property("status", &HQPOutputPythonVisitor::status)
;
}
static Eigen::VectorXd x (const T & self) {return self.x;}
static int status (const T & self) {return self.status;}
static void expose(const std::string & class_name)
{
std::string doc = "HQPOutput info.";
......@@ -59,4 +61,4 @@ namespace tsid
}
#endif // ifndef __tsid_python_HQPOutput_hpp__
\ No newline at end of file
#endif // ifndef __tsid_python_HQPOutput_hpp__
Supports Markdown
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