@@ -24,7 +24,8 @@ class cBA_BlockInstr : public cMemCheck
2424 cMMVII_BundleAdj& ,
2525 cIrbComp_Block*,
2626 const std::vector<std::string> & aVParamPair,
27- const std::vector<std::string> & aVParamGauje
27+ const std::vector<std::string> & aVParamGauje,
28+ const std::vector<std::string> & aVParamCur
2829 );
2930 virtual ~cBA_BlockInstr ();
3031
@@ -80,7 +81,8 @@ cBA_BlockInstr::cBA_BlockInstr
8081 cMMVII_BundleAdj& aBA,
8182 cIrbComp_Block * aCompBl,
8283 const std::vector<std::string> & aVParamsPair,
83- const std::vector<std::string> & aVParamGauje
84+ const std::vector<std::string> & aVParamGauje,
85+ const std::vector<std::string> & aVParamCur
8486) :
8587 mBA (aBA),
8688 mSys (nullptr ),
@@ -95,10 +97,15 @@ cBA_BlockInstr::cBA_BlockInstr
9597 mModeSaveSigma(cStrIO<int >::FromStr(GetDef(aVParamsPair,3 ,std::string(" 1" )))),
9698 mGaujeTr (cStrIO<double >::FromStr(GetDef(aVParamGauje,0 ,std::string(" 0.0" )))),
9799 mGaujeRot (cStrIO<double >::FromStr(GetDef(aVParamGauje,1 ,std::string(" 0.0" ))))
98-
99-
100100{
101101
102+ if (! aVParamCur.empty ())
103+ {
104+ for (auto & aCalC : mCalCams ->VCams () )
105+ {
106+ mBA .SetIntervUK ().AddOneObj (&aCalC.PoseUKInBlock ());
107+ }
108+ }
102109 // Add all the pose to construct the Time-Stamp structure
103110 for (auto aPtrCam : mBA .VSCPC ())
104111 mCompbBl ->AddImagePose (aPtrCam,true );
@@ -298,18 +305,22 @@ void cMMVII_BundleAdj::AddBlockInstr(const std::vector<std::vector<std::string>>
298305 MMVII_UnclasseUsEr (" Dir for bloc of instrument not init with parameter for BOI/Compensation" );
299306 }
300307
301-
302-
303308 const std::vector<std::string> & aVParamPairCam = aVVParam.at (0 );
304309 std::string aNameBlock = GetDef (aVParamPairCam,0 ,std::string (" " ));
305310 if (aNameBlock==" " )
306311 aNameBlock = cIrbCal_Block::theDefaultName;
307312
308313 cIrbComp_Block * aBlock = new cIrbComp_Block (*mPhProj ,aNameBlock);
309314
315+ std::vector<std::string> aParamCur;
316+ if (aVVParam.size () >=3 )
317+ {
318+ aParamCur = aVVParam.at (2 );
319+ }
320+
310321 mVecBlockInstrAdj .push_back
311322 (
312- new cBA_BlockInstr (*this ,aBlock,aVParamPairCam,aVVParam.at (1 ))
323+ new cBA_BlockInstr (*this ,aBlock,aVParamPairCam,aVVParam.at (1 ),aParamCur )
313324 );
314325
315326}
0 commit comments