本文整理汇总了C++中mrpt::utils::CStream::printf方法的典型用法代码示例。如果您正苦于以下问题:C++ CStream::printf方法的具体用法?C++ CStream::printf怎么用?C++ CStream::printf使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mrpt::utils::CStream
的用法示例。
在下文中一共展示了CStream::printf方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: dumpToTextStream
/** Dump the options of the metric map in human-readable format */
void TMetricMapInitializer::dumpToTextStream(mrpt::utils::CStream &out) const
{
out.printf("-------------------------TMetricMapInitializer --------------------------\n");
out.printf("================ C++ Class: '%s'\n", this->metricMapClassType->className);
this->genericMapParams.dumpToTextStream(out);
// Class-specific:
this->dumpToTextStream_map_specific(out);
}
示例2: dumpToStream
void Message_NMEA_ZDA::dumpToStream( mrpt::utils::CStream &out ) const
{
out.printf("[NMEA ZDA datum]\n");
out.printf(" UTC time-stamp: %02u:%02u:%02.03f\n",
fields.UTCTime.hour,
fields.UTCTime.minute,
fields.UTCTime.sec
);
out.printf(" Date (DD/MM/YY): %02u/%02u/%04u\n ",
(unsigned)fields.date_day,(unsigned)fields.date_month, (unsigned)fields.date_year);
}
示例3:
/*---------------------------------------------------------------
dumpToTextStream
---------------------------------------------------------------*/
void CMultiMetricMapPDF::TPredictionParams::dumpToTextStream(mrpt::utils::CStream &out) const
{
out.printf("\n----------- [CMultiMetricMapPDF::TPredictionParams] ------------ \n\n");
out.printf("pfOptimalProposal_mapSelection = %i\n", pfOptimalProposal_mapSelection );
out.printf("ICPGlobalAlign_MinQuality = %f\n", ICPGlobalAlign_MinQuality );
KLD_params.dumpToTextStream(out);
icp_params.dumpToTextStream(out);
out.printf("\n");
}
示例4: getAsString
void COutputLogger::TMsg::writeToStream(mrpt::utils::CStream& out) const {
const std::string str = getAsString();
out.printf("%s", str.c_str());
#ifdef _MSC_VER
OutputDebugStringA(str.c_str());
#endif
}
示例5:
void CGasConcentrationGridMap2D::TMapDefinition::dumpToTextStream_map_specific(mrpt::utils::CStream &out) const
{
out.printf("MAP TYPE = %s\n", mrpt::utils::TEnumType<CGasConcentrationGridMap2D::TMapRepresentation>::value2name(mapType).c_str() );
LOADABLEOPTS_DUMP_VAR(min_x , float);
LOADABLEOPTS_DUMP_VAR(max_x , float);
LOADABLEOPTS_DUMP_VAR(min_y , float);
LOADABLEOPTS_DUMP_VAR(max_y , float);
LOADABLEOPTS_DUMP_VAR(resolution , float);
this->insertionOpts.dumpToTextStream(out);
}
示例6:
/*---------------------------------------------------------------
dumpToTextStream
---------------------------------------------------------------*/
void CIncrementalMapPartitioner::TOptions::dumpToTextStream(mrpt::utils::CStream &out) const
{
out.printf("\n----------- [CIncrementalMapPartitioner::TOptions] ------------ \n\n");
out.printf("partitionThreshold = %f\n",partitionThreshold);
out.printf("gridResolution = %f\n",gridResolution);
out.printf("minDistForCorrespondence = %f\n",minDistForCorrespondence);
out.printf("forceBisectionOnly = %c\n",forceBisectionOnly ? 'Y':'N');
out.printf("useMapMatching = %c\n",useMapMatching ? 'Y':'N');
out.printf("minimumNumberElementsEachCluster = %i\n",minimumNumberElementsEachCluster);
}
示例7:
/*---------------------------------------------------------------
dumpToTextStream
---------------------------------------------------------------*/
void CHMTSLAM::TOptions::dumpToTextStream(mrpt::utils::CStream &out) const
{
out.printf("\n----------- [CHMTSLAM::TOptions] ------------ \n\n");
LOADABLEOPTS_DUMP_VAR( LOG_OUTPUT_DIR, string );
LOADABLEOPTS_DUMP_VAR( LOG_FREQUENCY, int);
LOADABLEOPTS_DUMP_VAR( SLAM_METHOD, int);
LOADABLEOPTS_DUMP_VAR( SLAM_MIN_DIST_BETWEEN_OBS, float );
LOADABLEOPTS_DUMP_VAR_DEG( SLAM_MIN_HEADING_BETWEEN_OBS );
LOADABLEOPTS_DUMP_VAR( MIN_ODOMETRY_STD_XY, float );
LOADABLEOPTS_DUMP_VAR_DEG( MIN_ODOMETRY_STD_PHI );
LOADABLEOPTS_DUMP_VAR( random_seed, int );
AA_options.dumpToTextStream(out);
pf_options.dumpToTextStream(out);
KLD_params.dumpToTextStream(out);
defaultMapsInitializers.dumpToTextStream(out);
TLC_grid_options.dumpToTextStream(out);
TLC_fabmap_options.dumpToTextStream(out);
}
示例8: dumpToStream
void Message_TOPCON_PZS::dumpToStream( mrpt::utils::CStream &out ) const
{
out.printf("\n[TopCon PZS datum]\n");
out.printf(" Longitude: %.09f deg Latitude: %.09f deg Height: %.03f m (%.03f m without NBeam) \n",
longitude_degrees,
latitude_degrees,
height_meters,
RTK_height_meters);
out.printf(" PZL-ID: %i Angle trans: %.05f deg\n ",
(int)nId,
angle_transmitter
);
out.printf(" Fix: %i ",(int)Fix);
out.printf(" Error: %i ",(int)error);
out.printf(" Battery levels: TX=%i RX=%i\n ",TXBattery,RXBattery);
out.printf(" hasCartesianPosVel= %s", hasCartesianPosVel ? "YES -> ":"NO\n");
if (hasCartesianPosVel)
{
out.printf(" x=%f y=%f z=%f\n",cartesian_x,cartesian_y,cartesian_z);
out.printf(" vx=%f vy=%f vz=%f\n",cartesian_vx,cartesian_vy,cartesian_vz);
}
out.printf("hasPosCov = %s", hasPosCov ? "YES\n":"NO\n");
if (hasPosCov)
out.printf("%s\n", pos_covariance.inMatlabFormat().c_str() );
out.printf("hasVelCov = %s", hasVelCov ? "YES\n":"NO\n");
if (hasVelCov)
out.printf("%s\n", vel_covariance.inMatlabFormat().c_str() );
out.printf("hasStats = %s", hasStats? "YES: ":"NO\n");
if(hasStats)
out.printf("GPS sats used: %i GLONASS sats used: %i RTK Fix progress:%i%%\n", (int)stats_GPS_sats_used, (int)stats_GLONASS_sats_used,(int)stats_rtk_fix_progress);
}
示例9:
/*---------------------------------------------------------------
dumpToTextStream
---------------------------------------------------------------*/
void CICP::TConfigParams::dumpToTextStream(mrpt::utils::CStream &out) const
{
out.printf("\n----------- [CICP::TConfigParams] ------------ \n\n");
out.printf("ICP_algorithm = %s\n", mrpt::utils::TEnumType<TICPAlgorithm>::value2name(ICP_algorithm).c_str() );
out.printf("ICP_covariance_method = %s\n", mrpt::utils::TEnumType<TICPCovarianceMethod>::value2name(ICP_covariance_method).c_str() );
out.printf("maxIterations = %i\n",maxIterations);
out.printf("minAbsStep_trans = %f\n",minAbsStep_trans);
out.printf("minAbsStep_rot = %f\n",minAbsStep_rot);
out.printf("thresholdDist = %f\n",thresholdDist);
out.printf("thresholdAng = %f deg\n",RAD2DEG(thresholdAng));
out.printf("ALFA = %f\n",ALFA);
out.printf("smallestThresholdDist = %f\n",smallestThresholdDist);
out.printf("onlyClosestCorrespondences = %c\n",onlyClosestCorrespondences ? 'Y':'N');
out.printf("onlyUniqueRobust = %c\n",onlyUniqueRobust ? 'Y':'N');
out.printf("covariance_varPoints = %f\n",covariance_varPoints);
out.printf("doRANSAC = %c\n",doRANSAC ? 'Y':'N');
out.printf("ransac_minSetSize = %i\n",ransac_minSetSize);
out.printf("ransac_maxSetSize = %i\n",ransac_maxSetSize);
out.printf("ransac_mahalanobisDistanceThreshold = %f\n",ransac_mahalanobisDistanceThreshold);
out.printf("ransac_nSimulations = %i\n",ransac_nSimulations);
out.printf("ransac_fuseByCorrsMatch = %c\n",ransac_fuseByCorrsMatch ? 'Y':'N');
out.printf("ransac_fuseMaxDiffXY = %f\n",ransac_fuseMaxDiffXY);
out.printf("ransac_fuseMaxDiffPhi = %f deg\n",RAD2DEG( ransac_fuseMaxDiffPhi ));
out.printf("normalizationStd = %f\n",normalizationStd);
out.printf("kernel_rho = %f\n",kernel_rho);
out.printf("use_kernel = %c\n",use_kernel ? 'Y':'N');
out.printf("Axy_aprox_derivatives = %f\n",Axy_aprox_derivatives );
out.printf("LM_initial_lambda = %f\n",LM_initial_lambda);
out.printf("skip_cov_calculation = %c\n",skip_cov_calculation ? 'Y':'N');
out.printf("skip_quality_calculation = %c\n",skip_quality_calculation ? 'Y':'N');
out.printf("corresponding_points_decimation = %u\n",(unsigned int)corresponding_points_decimation);
out.printf("\n");
}
示例10: if
/*---------------------------------------------------------------
dumpToTextStream
---------------------------------------------------------------*/
void COccupancyGridMap2D::TLikelihoodOptions::dumpToTextStream(mrpt::utils::CStream &out) const
{
out.printf("\n----------- [COccupancyGridMap2D::TLikelihoodOptions] ------------ \n\n");
out.printf("likelihoodMethod = ");
switch (likelihoodMethod)
{
case lmMeanInformation: out.printf("lmMeanInformation"); break;
case lmRayTracing: out.printf("lmRayTracing"); break;
case lmConsensus: out.printf("lmConsensus"); break;
case lmCellsDifference: out.printf("lmCellsDifference"); break;
case lmLikelihoodField_Thrun: out.printf("lmLikelihoodField_Thrun"); break;
case lmLikelihoodField_II: out.printf("lmLikelihoodField_II"); break;
case lmConsensusOWA: out.printf("lmConsensusOWA"); break;
default:
out.printf("UNKNOWN!!!"); break;
}
out.printf("\n");
out.printf("enableLikelihoodCache = %c\n", enableLikelihoodCache ? 'Y':'N');
out.printf("LF_stdHit = %f\n", LF_stdHit );
out.printf("LF_zHit = %f\n", LF_zHit );
out.printf("LF_zRandom = %f\n", LF_zRandom );
out.printf("LF_maxRange = %f\n", LF_maxRange );
out.printf("LF_decimation = %u\n", LF_decimation );
out.printf("LF_maxCorrsDistance = %f\n", LF_maxCorrsDistance );
out.printf("LF_useSquareDist = %c\n", LF_useSquareDist ? 'Y':'N');
out.printf("LF_alternateAverageMethod = %c\n", LF_alternateAverageMethod ? 'Y':'N');
out.printf("MI_exponent = %f\n", MI_exponent );
out.printf("MI_skip_rays = %u\n", MI_skip_rays );
out.printf("MI_ratio_max_distance = %f\n", MI_ratio_max_distance );
out.printf("rayTracing_useDistanceFilter = %c\n", rayTracing_useDistanceFilter ? 'Y':'N');
out.printf("rayTracing_decimation = %u\n", rayTracing_decimation );
out.printf("rayTracing_stdHit = %f\n", rayTracing_stdHit );
out.printf("consensus_takeEachRange = %u\n", consensus_takeEachRange );
out.printf("consensus_pow = %.02f\n", consensus_pow);
out.printf("OWA_weights = [");
for (size_t i=0;i<OWA_weights.size();i++)
{
if (i<3 || i>(OWA_weights.size()-3))
out.printf("%.03f ",OWA_weights[i]);
else if (i==3 && OWA_weights.size()>6)
out.printf(" ... ");
}
out.printf("] (size=%u)\n",(unsigned)OWA_weights.size());
out.printf("\n");
}
示例11: dumpToTextStream
// --------------------------------------------------
// dumpToTextStream
// --------------------------------------------------
void TMultiResDescMatchOptions::dumpToTextStream( mrpt::utils::CStream &out) const
{
out.printf("\n----------- [vision::TMultiResDescMatchOptions] ------------ \n");
out.printf("Use orientation filter?: ");
if( useOriFilter )
{
out.printf("Yes\n");
out.printf("· Orientation threshold: %.1f deg\n", RAD2DEG(oriThreshold) );
}
else
out.printf("No\n");
out.printf("Use depth filter?: ");
if( useDepthFilter )
out.printf("Yes\n");
else
{
out.printf("No\n" );
out.printf("Lowest scale in list1: %d\n", lowScl1 );
out.printf("Highest scale in list1: %d\n", highScl1 );
out.printf("Lowest scale in list2: %d\n", lowScl2 );
out.printf("Highest scale in list2: %d\n", highScl2 );
}
out.printf("#frames last seen threshold: %d\n", lastSeenThreshold );
out.printf("#frames to be stable threshold: %d\n", timesSeenThreshold );
out.printf("min. # features in system: %d\n", minFeaturesToFind );
out.printf("min. # features to be lost: %d\n", minFeaturesToBeLost );
out.printf("Matching threshold: %.2f\n", matchingThreshold );
out.printf("Matching ratio threshold: %.2f\n", matchingRatioThreshold );
out.printf("Size of the search window: %d px\n", searchAreaSize );
out.printf("-------------------------------------------------------- \n");
} // end-dumpToTextStream