8000 Constructor of symbolic variables is totally ugly · Issue #93 · acado/acado · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Constructor of symbolic variables is totally ugly #93
Open
@borishouska

Description

@borishouska

At the moment vector or matrix valued symbolic variables have to be defined like
DifferentialState x("", NXD, 1);
This is totally ugly. Why does the user need to provide an empty name and the number of columns if he just wants to define a vector without a name???
The definition of the constructor should be defined as
DifferentialState( unsigned _nRows = 1, unsigned _nCols = 1, const std::string& _name = EMPTY_NAME);
This needs to be changed in variable_types.hpp for all variables. For IntermediateState constructor collection is alright in principle, but the definitions should be made consistent with the other variables.

Boris

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0