MCPcopy Create free account
hub / github.com/TUC-ProAut/libRSF / removeState

Method removeState

src/FactorGraph.cpp:473–492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471 }
472
473 void FactorGraph::removeState(string Name, double Timestamp, int Number)
474 {
475 /** safety check */
476 if (_StateData.checkElement(Name, Timestamp, Number))
477 {
478 /** remove from internal lists*/
479 StateID State(Name, Timestamp, Number);
480 _Structure.removeState(State);
481
482 /** remove from ceres */
483 _Graph.RemoveParameterBlock(_StateData.getElement(Name, Timestamp, Number).getMeanPointer());
484
485 /** remove from our StateDataSet */
486 _StateData.removeElement(Name, Timestamp, Number);
487 }
488 else
489 {
490 PRINT_ERROR("State doesn't exist at: ", Timestamp, " Type: ", Name, " Number: ", Number);
491 }
492 }
493
494 void FactorGraph::removeState(const string Name, const double Timestamp)
495 {

Callers 1

marginalizeStatesMethod · 0.95

Calls 5

getMeanPointerMethod · 0.80
getElementMethod · 0.80
removeElementMethod · 0.80
countElementMethod · 0.80
checkElementMethod · 0.45

Tested by

no test coverage detected