本文整理汇总了C++中CMonteCarloLocalization2D类的典型用法代码示例。如果您正苦于以下问题:C++ CMonteCarloLocalization2D类的具体用法?C++ CMonteCarloLocalization2D怎么用?C++ CMonteCarloLocalization2D使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CMonteCarloLocalization2D类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CMonteCarloLocalization2D_inverse
CPosePDFParticles CMonteCarloLocalization2D_inverse(
CMonteCarloLocalization2D& self)
{
CPosePDFParticles o;
self.inverse(o);
return o;
}
示例2: CMonteCarloLocalization2D_drawSingleSample
CPose2D CMonteCarloLocalization2D_drawSingleSample(
CMonteCarloLocalization2D& self)
{
CPose2D outPart;
self.drawSingleSample(outPart);
return outPart;
}
示例3: CMonteCarloLocalization2D_getAs3DObject
mrpt::opengl::CSetOfObjects::Ptr CMonteCarloLocalization2D_getAs3DObject(
CMonteCarloLocalization2D& self)
{
mrpt::opengl::CSetOfObjects::Ptr outObj =
mrpt::make_aligned_shared<mrpt::opengl::CSetOfObjects>();
self.getAs3DObject(outObj);
return outObj;
}
示例4: CMonteCarloLocalization2D_prediction_and_update
void CMonteCarloLocalization2D_prediction_and_update(
CMonteCarloLocalization2D& self,
const mrpt::obs::CActionCollection::Ptr action,
const mrpt::obs::CSensoryFrame::Ptr observation,
const CParticleFilter::TParticleFilterOptions& PF_options)
{
self.prediction_and_update(action.get(), observation.get(), PF_options);
}
示例5: CMonteCarloLocalization2D_normalizeWeights
tuple CMonteCarloLocalization2D_normalizeWeights(CMonteCarloLocalization2D& self)
{
list ret_val;
double out_max_log_w;
double norm = self.normalizeWeights(&out_max_log_w);
ret_val.append(norm);
ret_val.append(out_max_log_w);
return tuple(ret_val);
}
示例6: CMonteCarloLocalization2D_getCovarianceAndMean
tuple CMonteCarloLocalization2D_getCovarianceAndMean(CMonteCarloLocalization2D& self)
{
list ret_val;
mrpt::math::CMatrixDouble33 cov;
CPose2D mean_point;
self.getCovarianceAndMean(cov, mean_point);
ret_val.append(cov);
ret_val.append(mean_point);
return tuple(ret_val);
}
示例7: CMonteCarloLocalization2D_readParticlesFromStream
void CMonteCarloLocalization2D_readParticlesFromStream(
CMonteCarloLocalization2D& self, CStream& in)
{
auto arch = mrpt::serialization::archiveFrom(in);
self.readParticlesFromStream(arch);
}
示例8: CMonteCarloLocalization2D_writeParticlesToStream
void CMonteCarloLocalization2D_writeParticlesToStream(
CMonteCarloLocalization2D& self, CStream& out)
{
auto arch = mrpt::serialization::archiveFrom(out);
self.writeParticlesToStream(arch);
}
示例9: CMonteCarloLocalization2D_getMean
CPose2D CMonteCarloLocalization2D_getMean(CMonteCarloLocalization2D& self)
{
CPose2D mean;
self.getMean(mean);
return mean;
}
示例10: CMonteCarloLocalization2D_getAs3DObject
mrpt::opengl::CSetOfObjectsPtr CMonteCarloLocalization2D_getAs3DObject(CMonteCarloLocalization2D& self)
{
mrpt::opengl::CSetOfObjectsPtr outObj = mrpt::opengl::CSetOfObjects::Create();
self.getAs3DObject(outObj);
return outObj;
}
示例11: CMonteCarloLocalization2D_readParticlesFromStream
void CMonteCarloLocalization2D_readParticlesFromStream(CMonteCarloLocalization2D& self, CStream &in)
{
self.readParticlesFromStream(in);
}
示例12: CMonteCarloLocalization2D_writeParticlesToStream
void CMonteCarloLocalization2D_writeParticlesToStream(CMonteCarloLocalization2D& self, CStream &out)
{
self.writeParticlesToStream(out);
}
示例13: CMonteCarloLocalization2D_prediction_and_update_pfAuxiliaryPFOptimal
void CMonteCarloLocalization2D_prediction_and_update_pfAuxiliaryPFOptimal(CMonteCarloLocalization2D& self, const mrpt::obs::CActionCollectionPtr action, const mrpt::obs::CSensoryFramePtr observation, const CParticleFilter::TParticleFilterOptions &PF_options)
{
self.prediction_and_update_pfAuxiliaryPFOptimal(action.pointer(), observation.pointer(), PF_options);
}