Skip to content
Snippets Groups Projects

Resolve "set frame to non-estimated removes its state blocks"

2 files
+ 3
2
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 2
1
@@ -140,7 +140,8 @@ void FrameBase::setNonEstimated()
@@ -140,7 +140,8 @@ void FrameBase::setNonEstimated()
{
{
// unregister if previously estimated
// unregister if previously estimated
if (isKeyOrAux())
if (isKeyOrAux())
removeStateBlocks(getProblem());
for (const auto& sb : getStateBlockVec())
 
getProblem()->notifyStateBlock(sb, REMOVE);
type_ = NON_ESTIMATED;
type_ = NON_ESTIMATED;
if (getTrajectory())
if (getTrajectory())
Loading