MCPcopy Create free account
hub / github.com/AutonomousFieldRoboticsLab/SVIn / parameterBlockPtr

Method parameterBlockPtr

okvis_ros/okvis/okvis_ceres/src/Map.cpp:555–564  ·  view source on GitHub ↗

getters Get a shared pointer to a parameter block.

Source from the content-addressed store, hash-verified

553// getters
554// Get a shared pointer to a parameter block.
555std::shared_ptr<okvis::ceres::ParameterBlock> Map::parameterBlockPtr(uint64_t parameterBlockId) {
556 // get a parameterBlock
557 OKVIS_ASSERT_TRUE(Exception,
558 parameterBlockExists(parameterBlockId),
559 "parameterBlock with id " << parameterBlockId << " does not exist");
560 if (parameterBlockExists(parameterBlockId)) {
561 return id2ParameterBlock_Map_.find(parameterBlockId)->second;
562 }
563 return std::shared_ptr<okvis::ceres::ParameterBlock>(); // NULL
564}
565
566// Get a shared pointer to a parameter block.
567std::shared_ptr<const okvis::ceres::ParameterBlock> Map::parameterBlockPtr(uint64_t parameterBlockId) const {

Callers 13

addStatesMethod · 0.80
printStatesMethod · 0.80
optimizeMethod · 0.80
isLandmarkInitializedMethod · 0.80
setLandmarkMethod · 0.80
addObservationMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected