Skip to content
Snippets Groups Projects
Commit 448682c5 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Fix getCalibration() after merge from devel

parent fdc8c976
No related branches found
No related tags found
3 merge requests!39release after RAL,!38After 2nd RAL submission,!23Processor imu2d
...@@ -89,9 +89,10 @@ namespace wolf { ...@@ -89,9 +89,10 @@ namespace wolf {
VectorXd ProcessorImu2d::getCalibration (const CaptureBasePtr _capture) const VectorXd ProcessorImu2d::getCalibration (const CaptureBasePtr _capture) const
{ {
assert(_capture && "called with a null capture"); if (_capture)
assert(_capture->getSensorIntrinsic() && "null sensor intrinsics state block"); return _capture->getStateBlock('I')->getState();
return _capture->getSensorIntrinsic()->getState(); else
return getSensor()->getStateBlockDynamic('I')->getState();
} }
void ProcessorImu2d::setCalibration (const CaptureBasePtr _capture, const VectorXd& _calibration) void ProcessorImu2d::setCalibration (const CaptureBasePtr _capture, const VectorXd& _calibration)
......
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