67 f <<
dot(vB) == ( -kS*xB + kS*xW + F ) / mB;
68 f <<
dot(vW) == ( kS*xB - (kT+kS)*xW + kT*R - F ) / mW;
96 window.
addSubplot( vB,
"Body Velocity [m/s]" );
97 window.
addSubplot( vW,
"Wheel Velocity [m/s]" );
122 myProcess.
init( 0.0 );
123 myProcess.
run( u,p );
129 xSim.
print(
"Simulated Differential States" );
132 ySim.
print(
"Process Output" );
returnValue print(std::ostream &stream=std::cout, const char *const name=DEFAULT_LABEL, const char *const startString=DEFAULT_START_STRING, const char *const endString=DEFAULT_END_STRING, uint width=DEFAULT_WIDTH, uint precision=DEFAULT_PRECISION, const char *const colSeparator=DEFAULT_COL_SEPARATOR, const char *const rowSeparator=DEFAULT_ROW_SEPARATOR) const
Allows to setup and evaluate output functions based on SymbolicExpressions.
Stores a DifferentialEquation together with an OutputFcn.
#define USING_NAMESPACE_ACADO
Provides a time grid consisting of vector-valued optimization variables at each grid point...
returnValue addSubplot(PlotWindowSubplot &_subplot)
returnValue initializeStartValues(const DVector &_xStart, const DVector &_xaStart=emptyConstVector)
returnValue set(OptionsName name, int value)
returnValue getLast(LogName _name, DMatrix &lastValue) const
Derived & setZero(Index size)
Expression dot(const Expression &arg)
virtual returnValue run(const VariablesGrid &_u, const VariablesGrid &_p=emptyVariablesGrid)
returnValue setProcessDisturbance(const Curve &_processDisturbance)
Simulates the process to be controlled based on a dynamic model.
Provides an interface to Gnuplot for plotting algorithmic outputs.
returnValue setDynamicSystem(const DynamicSystem &_dynamicSystem, IntegratorType _integratorType=INT_UNKNOWN)
Allows to setup and evaluate differential equations (ODEs and DAEs) based on SymbolicExpressions.
virtual returnValue init(double _startTime=0.0, const DVector &_xStart=emptyConstVector, const DVector &_uStart=emptyConstVector, const DVector &_pStart=emptyConstVector)