getters Get a shared pointer to a parameter block.
| 553 | // getters |
| 554 | // Get a shared pointer to a parameter block. |
| 555 | std::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. |
| 567 | std::shared_ptr<const okvis::ceres::ParameterBlock> Map::parameterBlockPtr(uint64_t parameterBlockId) const { |
no outgoing calls
no test coverage detected