Skip to content
Snippets Groups Projects
Commit e75b8f23 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Fix parenthesis

parent b21473c5
No related branches found
No related tags found
2 merge requests!466devel->main,!456Resolve "Migrate from StateBlock to StateDerived"
......@@ -30,7 +30,7 @@ StateBlockPtr StateVector3d::create(const Eigen::VectorXd& _state, bool _fixed)
StateBlockPtr create_point(const Eigen::VectorXd& _state, bool _fixed)
{
assert(_state.size() == 2 or _state.size() == 3 && "Provided _state must be size 2 or 3!");
assert((_state.size() == 2 or _state.size() == 3) && "Provided _state must be size 2 or 3!");
if (_state.size() == 2)
return std::make_shared<StatePoint2d>(_state, _fixed);
else
......@@ -39,7 +39,7 @@ StateBlockPtr create_point(const Eigen::VectorXd& _state, bool _fixed)
StateBlockPtr create_vector(const Eigen::VectorXd& _state, bool _fixed)
{
assert(_state.size() == 2 or _state.size() == 3 && "Provided _state must be size 2 or 3!");
assert((_state.size() == 2 or _state.size() == 3) && "Provided _state must be size 2 or 3!");
if (_state.size() == 2)
return std::make_shared<StateVector2d>(_state, _fixed);
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment