2.12.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit 4d6ebac8 authored by Matthias Rungger's avatar Matthias Rungger
Browse files

Bugfix in the unicycle example.

parent 1b991b02
......@@ -51,8 +51,8 @@ auto unicycle_post = [](state_type &x, input_type &u) -> void {
/* computation of the growth bound (the result is stored in r) */
auto radius_post = [](state_type &r, input_type &u) -> void {
r[0] = r[0]+r[2]*u[0]*0.3;
r[1] = r[1]+r[2]*u[0]*0.3;
r[0] = r[0]+r[2]*std::abs(u[0])*0.3;
r[1] = r[1]+r[2]*std::abs(u[0])*0.3;
};
......@@ -152,7 +152,7 @@ scots::SymbolicSet unicycleCreateStateSpace(Cudd &mgr) {
/* upper bounds of the hyper rectangle */
double ub[sDIM]={10,10,M_PI+0.4};
/* grid node distance diameter */
double eta[sDIM]={.2,.2,.2};
double eta[sDIM]={.2,.2,.1};
......@@ -223,11 +223,11 @@ scots::SymbolicSet unicycleCreateStateSpace(Cudd &mgr) {
scots::SymbolicSet unicycleCreateInputSpace(Cudd &mgr) {
/* lower bounds of the hyper rectangle */
double lb[sDIM]={-1,-1};
double lb[sDIM]={-1,-1.5};
/* upper bounds of the hyper rectangle */
double ub[sDIM]={1,1};
double ub[sDIM]={1,1.5};
/* grid node distance diameter */
double eta[sDIM]={.3,.3};
double eta[sDIM]={.3,.2};
scots::SymbolicSet is(mgr,iDIM,lb,ub,eta);
is.addGridPoints();
......
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