Skip to content
Snippets Groups Projects
Commit 8c94abaf authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

hotfix checking isValid in SolverManager

parent 52f2dbaa
No related branches found
No related tags found
No related merge requests found
Pipeline #5909 passed
...@@ -301,6 +301,7 @@ void SolverManager::updateStateBlockStatus(const StateBlockPtr& state_ptr) ...@@ -301,6 +301,7 @@ void SolverManager::updateStateBlockStatus(const StateBlockPtr& state_ptr)
void SolverManager::updateStateBlockState(const StateBlockPtr& state_ptr) void SolverManager::updateStateBlockState(const StateBlockPtr& state_ptr)
{ {
assert(state_ptr->isValid() && "SolverManager::updateStateBlockState state block state not valid (local parameterization)");
Eigen::VectorXd new_state = state_ptr->getState(); Eigen::VectorXd new_state = state_ptr->getState();
// We assume the same size for the states in both WOLF and the solver. // We assume the same size for the states in both WOLF and the solver.
std::copy(new_state.data(),new_state.data()+new_state.size(),getAssociatedMemBlockPtr(state_ptr)); std::copy(new_state.data(),new_state.data()+new_state.size(),getAssociatedMemBlockPtr(state_ptr));
......
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