Skip to content
Snippets Groups Projects
Commit 29ef3ecf authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

all INFO -> DEBUG

parent 43ea71aa
No related branches found
No related tags found
2 merge requests!28release after RAL,!27After 2nd RAL submission
...@@ -28,7 +28,9 @@ void ProcessorTrackerGnss::preProcess() ...@@ -28,7 +28,9 @@ void ProcessorTrackerGnss::preProcess()
GnssUtils::SnapshotPtr inc_snapshot = std::static_pointer_cast<CaptureGnss>(incoming_ptr_)->getSnapshot(); GnssUtils::SnapshotPtr inc_snapshot = std::static_pointer_cast<CaptureGnss>(incoming_ptr_)->getSnapshot();
#ifdef _WOLF_DEBUG
int n_initial = inc_snapshot->getObservations()->size(); int n_initial = inc_snapshot->getObservations()->size();
#endif
// compute satellites positions // compute satellites positions
if (!inc_snapshot ->satellitesComputed()) if (!inc_snapshot ->satellitesComputed())
...@@ -63,7 +65,7 @@ void ProcessorTrackerGnss::preProcess() ...@@ -63,7 +65,7 @@ void ProcessorTrackerGnss::preProcess()
// Set ECEF-ENU // Set ECEF-ENU
if (!sensor_gnss_->isEnuDefined() and sensor_gnss_->isEnuModeAuto() and fix_incoming_.success) if (!sensor_gnss_->isEnuDefined() and sensor_gnss_->isEnuModeAuto() and fix_incoming_.success)
{ {
WOLF_INFO("setting ECEF-ENU: ", fix_incoming_.pos.transpose()); WOLF_DEBUG("setting ECEF-ENU: ", fix_incoming_.pos.transpose());
sensor_gnss_->setEcefEnu(fix_incoming_.pos, true); sensor_gnss_->setEcefEnu(fix_incoming_.pos, true);
} }
// Fix ENU-MAP // Fix ENU-MAP
...@@ -77,7 +79,7 @@ void ProcessorTrackerGnss::preProcess() ...@@ -77,7 +79,7 @@ void ProcessorTrackerGnss::preProcess()
WOLF_DEBUG("TS: ", incoming_ptr_->getTimeStamp(), " - Fix solution (ECEF): ", fix_incoming_.pos.transpose(), " - Fix solution (GEO): ", fix_incoming_.lat_lon.transpose()); WOLF_DEBUG("TS: ", incoming_ptr_->getTimeStamp(), " - Fix solution (ECEF): ", fix_incoming_.pos.transpose(), " - Fix solution (GEO): ", fix_incoming_.lat_lon.transpose());
//WOLF_INFO("preprocess: RTKLIB excluded observations: ", fix_incoming_.discarded_sats.size()); //WOLF_DEBUG("preprocess: RTKLIB excluded observations: ", fix_incoming_.discarded_sats.size());
// filter observations (available ephemeris, constellations and elevation&SNR) // filter observations (available ephemeris, constellations and elevation&SNR)
inc_snapshot->filterObservations(fix_incoming_.discarded_sats, // discarded sats inc_snapshot->filterObservations(fix_incoming_.discarded_sats, // discarded sats
fix_incoming_.sat_azel, fix_incoming_.sat_azel,
...@@ -85,7 +87,7 @@ void ProcessorTrackerGnss::preProcess() ...@@ -85,7 +87,7 @@ void ProcessorTrackerGnss::preProcess()
false, // check carrier phase false, // check carrier phase
params_tracker_gnss_->gnss_opt); params_tracker_gnss_->gnss_opt);
//WOLF_INFO("preprocess: filtered observations: ", inc_snapshot->getObservations()->size()); //WOLF_DEBUG("preprocess: filtered observations: ", inc_snapshot->getObservations()->size());
// compute corrected Ranges // compute corrected Ranges
inc_snapshot->computeRanges(fix_incoming_.sat_azel, inc_snapshot->computeRanges(fix_incoming_.sat_azel,
...@@ -103,7 +105,7 @@ void ProcessorTrackerGnss::preProcess() ...@@ -103,7 +105,7 @@ void ProcessorTrackerGnss::preProcess()
untracked_incoming_features_[feat->satNumber()] = feat; untracked_incoming_features_[feat->satNumber()] = feat;
} }
WOLF_INFO("ProcessorTrackerGnss::preProcess()", WOLF_DEBUG("ProcessorTrackerGnss::preProcess()",
"\n\tinitial observations: ", n_initial, "\n\tinitial observations: ", n_initial,
"\n\tRTKLIB discarded: ", fix_incoming_.discarded_sats.size(), "\n\tRTKLIB discarded: ", fix_incoming_.discarded_sats.size(),
"\n\tgnssutils discarded: ", n_initial - untracked_incoming_features_.size() - fix_incoming_.discarded_sats.size(), "\n\tgnssutils discarded: ", n_initial - untracked_incoming_features_.size() - fix_incoming_.discarded_sats.size(),
...@@ -118,7 +120,7 @@ unsigned int ProcessorTrackerGnss::trackFeatures(const FeatureBasePtrList& _feat ...@@ -118,7 +120,7 @@ unsigned int ProcessorTrackerGnss::trackFeatures(const FeatureBasePtrList& _feat
if (_features_in.empty()) if (_features_in.empty())
return 0; return 0;
//WOLF_INFO("tracking " , _features_in.size() , " features..."); //WOLF_DEBUG("tracking " , _features_in.size() , " features...");
assert(_capture == incoming_ptr_); assert(_capture == incoming_ptr_);
...@@ -141,14 +143,14 @@ unsigned int ProcessorTrackerGnss::trackFeatures(const FeatureBasePtrList& _feat ...@@ -141,14 +143,14 @@ unsigned int ProcessorTrackerGnss::trackFeatures(const FeatureBasePtrList& _feat
} }
} }
WOLF_INFO("ProcessorTrackerGnss::trackFeatures: tracked " , _features_out.size(), " (of ", _features_in.size(), ")"); WOLF_DEBUG("ProcessorTrackerGnss::trackFeatures: tracked " , _features_out.size(), " (of ", _features_in.size(), ")");
return _features_out.size(); return _features_out.size();
} }
bool ProcessorTrackerGnss::voteForKeyFrame() const bool ProcessorTrackerGnss::voteForKeyFrame() const
{ {
//WOLF_INFO("ProcessorTrackerGnss::voteForKeyFrame"); //WOLF_DEBUG("ProcessorTrackerGnss::voteForKeyFrame");
// too old origin // too old origin
if (origin_ptr_== nullptr or (last_ptr_->getTimeStamp() - origin_ptr_->getTimeStamp()) > params_tracker_gnss_->max_time_span ) if (origin_ptr_== nullptr or (last_ptr_->getTimeStamp() - origin_ptr_->getTimeStamp()) > params_tracker_gnss_->max_time_span )
...@@ -165,7 +167,7 @@ bool ProcessorTrackerGnss::voteForKeyFrame() const ...@@ -165,7 +167,7 @@ bool ProcessorTrackerGnss::voteForKeyFrame() const
if (known_features_incoming_.size() < params_tracker_feature_->min_features_for_keyframe if (known_features_incoming_.size() < params_tracker_feature_->min_features_for_keyframe
and not untracked_last_features_.empty() ) and not untracked_last_features_.empty() )
{ {
WOLF_INFO( "Vote for KF because of too less known_features_incoming and not empty untracked in last" ); WOLF_DEBUG( "Vote for KF because of too less known_features_incoming and not empty untracked in last" );
return true; return true;
} }
...@@ -195,7 +197,7 @@ unsigned int ProcessorTrackerGnss::detectNewFeatures(const int& _max_new_feature ...@@ -195,7 +197,7 @@ unsigned int ProcessorTrackerGnss::detectNewFeatures(const int& _max_new_feature
_features_out.push_back(feat_pair.second); _features_out.push_back(feat_pair.second);
WOLF_DEBUG("feature " , feat_pair.second->id() , " detected!" ); WOLF_DEBUG("feature " , feat_pair.second->id() , " detected!" );
} }
WOLF_INFO(_features_out.size() , " new features detected!"); WOLF_DEBUG(_features_out.size() , " new features detected!");
return _features_out.size(); return _features_out.size();
} }
...@@ -253,7 +255,7 @@ void ProcessorTrackerGnss::establishFactors() ...@@ -253,7 +255,7 @@ void ProcessorTrackerGnss::establishFactors()
// FACTOR per pair of KF (FactorGnssTdcp3d) // FACTOR per pair of KF (FactorGnssTdcp3d)
if (params_tracker_gnss_->gnss_opt.tdcp.batch) if (params_tracker_gnss_->gnss_opt.tdcp.batch)
{ {
WOLF_INFO("TDCP BATCH frame ", last_ptr_->getFrame()->id()); WOLF_DEBUG("TDCP BATCH frame ", last_ptr_->getFrame()->id());
for (auto KF_rit = getProblem()->getTrajectory()->getFrameList().rbegin(); for (auto KF_rit = getProblem()->getTrajectory()->getFrameList().rbegin();
KF_rit != getProblem()->getTrajectory()->getFrameList().rend(); KF_rit != getProblem()->getTrajectory()->getFrameList().rend();
...@@ -261,7 +263,7 @@ void ProcessorTrackerGnss::establishFactors() ...@@ -261,7 +263,7 @@ void ProcessorTrackerGnss::establishFactors()
{ {
FrameBasePtr KF = (*KF_rit); FrameBasePtr KF = (*KF_rit);
WOLF_INFO("TDCP BATCH ref frame ", KF->id()); WOLF_DEBUG("TDCP BATCH ref frame ", KF->id());
// discard non-key frames, last-last pair and frames without CaptureGnss // discard non-key frames, last-last pair and frames without CaptureGnss
if (not KF->isKey() or if (not KF->isKey() or
...@@ -275,7 +277,7 @@ void ProcessorTrackerGnss::establishFactors() ...@@ -275,7 +277,7 @@ void ProcessorTrackerGnss::establishFactors()
// dt // dt
double dt = last_ptr_->getTimeStamp() - ref_cap_gnss->getTimeStamp(); double dt = last_ptr_->getTimeStamp() - ref_cap_gnss->getTimeStamp();
WOLF_INFO("TDCP BATCH dt = ", dt); WOLF_DEBUG("TDCP BATCH dt = ", dt);
// discard strange cases // discard strange cases
if (dt <= 0) if (dt <= 0)
...@@ -291,7 +293,7 @@ void ProcessorTrackerGnss::establishFactors() ...@@ -291,7 +293,7 @@ void ProcessorTrackerGnss::establishFactors()
// get common sats from tracking // get common sats from tracking
auto matches = track_matrix_.matches(ref_cap_gnss, last_cap_gnss); auto matches = track_matrix_.matches(ref_cap_gnss, last_cap_gnss);
WOLF_INFO("TDCP BATCH matches ", matches.size()); WOLF_DEBUG("TDCP BATCH matches ", matches.size());
std::set<int> common_sats; std::set<int> common_sats;
for (auto match : matches) for (auto match : matches)
{ {
...@@ -301,7 +303,7 @@ void ProcessorTrackerGnss::establishFactors() ...@@ -301,7 +303,7 @@ void ProcessorTrackerGnss::establishFactors()
std::static_pointer_cast<FeatureGnssSatellite>(match.second.second)->satNumber()); std::static_pointer_cast<FeatureGnssSatellite>(match.second.second)->satNumber());
common_sats.insert(std::static_pointer_cast<FeatureGnssSatellite>(match.second.first)->satNumber()); common_sats.insert(std::static_pointer_cast<FeatureGnssSatellite>(match.second.first)->satNumber());
} }
WOLF_INFO("TDCP BATCH common_sats: ", common_sats.size()); WOLF_DEBUG("TDCP BATCH common_sats: ", common_sats.size());
for (auto sat : common_sats) for (auto sat : common_sats)
std::cout << sat << " "; std::cout << sat << " ";
std::cout << std::endl; std::cout << std::endl;
...@@ -309,7 +311,7 @@ void ProcessorTrackerGnss::establishFactors() ...@@ -309,7 +311,7 @@ void ProcessorTrackerGnss::establishFactors()
// DEBUG: FIND COMMON SATELLITES OBSERVATIONS // DEBUG: FIND COMMON SATELLITES OBSERVATIONS
std::set<int> common_sats_debug = GnssUtils::Observations::findCommonObservations(*ref_cap_gnss->getSnapshot()->getObservations(), std::set<int> common_sats_debug = GnssUtils::Observations::findCommonObservations(*ref_cap_gnss->getSnapshot()->getObservations(),
*last_cap_gnss->getSnapshot()->getObservations()); *last_cap_gnss->getSnapshot()->getObservations());
WOLF_INFO("TDCP BATCH common_sats_debug: ", common_sats_debug.size()); WOLF_DEBUG("TDCP BATCH common_sats_debug: ", common_sats_debug.size());
for (auto sat : common_sats_debug) for (auto sat : common_sats_debug)
std::cout << sat << " "; std::cout << sat << " ";
std::cout << std::endl; std::cout << std::endl;
...@@ -329,8 +331,8 @@ void ProcessorTrackerGnss::establishFactors() ...@@ -329,8 +331,8 @@ void ProcessorTrackerGnss::establishFactors()
std::set<int>(), std::set<int>(),
params_tracker_gnss_->tdcp_batch_params)) params_tracker_gnss_->tdcp_batch_params))
{ {
WOLF_INFO("TDCP BATCH d = ", d.transpose()); WOLF_DEBUG("TDCP BATCH d = ", d.transpose());
WOLF_INFO("TDCP BATCH cov =\n", cov_d); WOLF_DEBUG("TDCP BATCH cov =\n", cov_d);
// EMPLACE FEATURE // EMPLACE FEATURE
auto ftr = FeatureBase::emplace<FeatureGnssTdcp>(last_cap_gnss, Eigen::Vector3d(d.head<3>()), Eigen::Matrix3d(cov_d.topLeftCorner<3,3>())); auto ftr = FeatureBase::emplace<FeatureGnssTdcp>(last_cap_gnss, Eigen::Vector3d(d.head<3>()), Eigen::Matrix3d(cov_d.topLeftCorner<3,3>()));
...@@ -339,7 +341,9 @@ void ProcessorTrackerGnss::establishFactors() ...@@ -339,7 +341,9 @@ void ProcessorTrackerGnss::establishFactors()
FactorBase::emplace<FactorGnssTdcp3d>(ftr, ftr, KF, sensor_gnss_, shared_from_this()); FactorBase::emplace<FactorGnssTdcp3d>(ftr, ftr, KF, sensor_gnss_, shared_from_this());
} }
else else
WOLF_INFO("TDCP BATCH failed"); {
WOLF_DEBUG("TDCP BATCH failed");
}
} }
} }
// FACTOR per SATELLITE (FactorGnssTdcp) // FACTOR per SATELLITE (FactorGnssTdcp)
...@@ -399,7 +403,7 @@ void ProcessorTrackerGnss::establishFactors() ...@@ -399,7 +403,7 @@ void ProcessorTrackerGnss::establishFactors()
params_tracker_gnss_->gnss_opt.tdcp.loss_function); params_tracker_gnss_->gnss_opt.tdcp.loss_function);
new_factors.push_back(new_fac); new_factors.push_back(new_fac);
// WOLF_INFO( "Factor: track: " , feature_in_last->trackId(), // WOLF_DEBUG( "Factor: track: " , feature_in_last->trackId(),
// " origin: " , feature_in_origin->id() , // " origin: " , feature_in_origin->id() ,
// " from last: " , feature_in_last->id() ); // " from last: " , feature_in_last->id() );
} }
...@@ -444,7 +448,7 @@ void ProcessorTrackerGnss::removeOutliers(FactorBasePtrList fac_list, CaptureBas ...@@ -444,7 +448,7 @@ void ProcessorTrackerGnss::removeOutliers(FactorBasePtrList fac_list, CaptureBas
FactorBasePtrList remove_fac; FactorBasePtrList remove_fac;
//WOLF_INFO( "PR ", getName()," rejectOutlier..."); //WOLF_DEBUG( "PR ", getName()," rejectOutlier...");
// PseudoRange states // PseudoRange states
Eigen::Vector3d x; Eigen::Vector3d x;
...@@ -586,8 +590,8 @@ void ProcessorTrackerGnss::removeOutliers(FactorBasePtrList fac_list, CaptureBas ...@@ -586,8 +590,8 @@ void ProcessorTrackerGnss::removeOutliers(FactorBasePtrList fac_list, CaptureBas
// RTKLIB FIX error // RTKLIB FIX error
//int sat = std::static_pointer_cast<FeatureGnssSatellite>(fac->getFeature())->getSatellite().sat; //int sat = std::static_pointer_cast<FeatureGnssSatellite>(fac->getFeature())->getSatellite().sat;
//assert(fix_last_.prange_residuals.count(sat) && "sat not used when computing fix!"); //assert(fix_last_.prange_residuals.count(sat) && "sat not used when computing fix!");
//WOLF_INFO("FactorGnssPseudoRange error = ", fac->getMeasurementSquareRootInformationUpper().inverse()*residual); //WOLF_DEBUG("FactorGnssPseudoRange error = ", fac->getMeasurementSquareRootInformationUpper().inverse()*residual);
//WOLF_INFO("RTKLIB pntpos error = ", fix_last_.prange_residuals.at(sat)); //WOLF_DEBUG("RTKLIB pntpos error = ", fix_last_.prange_residuals.at(sat));
// discard if residual too high evaluated at the current estimation // discard if residual too high evaluated at the current estimation
if (std::abs(residual) > params_tracker_gnss_->outlier_residual_th) if (std::abs(residual) > params_tracker_gnss_->outlier_residual_th)
...@@ -621,7 +625,7 @@ void ProcessorTrackerGnss::removeOutliers(FactorBasePtrList fac_list, CaptureBas ...@@ -621,7 +625,7 @@ void ProcessorTrackerGnss::removeOutliers(FactorBasePtrList fac_list, CaptureBas
// evaluate // evaluate
fac_tdcp->evaluate(parameters_tdcp, &residual, nullptr); fac_tdcp->evaluate(parameters_tdcp, &residual, nullptr);
//WOLF_INFO("FactorGnssTdcp with residual = ", residual); //WOLF_DEBUG("FactorGnssTdcp with residual = ", residual);
// discard if residual too high evaluated at the current estimation // discard if residual too high evaluated at the current estimation
if (std::abs(residual) > params_tracker_gnss_->outlier_residual_th) if (std::abs(residual) > params_tracker_gnss_->outlier_residual_th)
...@@ -647,7 +651,7 @@ void ProcessorTrackerGnss::removeOutliers(FactorBasePtrList fac_list, CaptureBas ...@@ -647,7 +651,7 @@ void ProcessorTrackerGnss::removeOutliers(FactorBasePtrList fac_list, CaptureBas
//assert(false); //assert(false);
fac->remove(); fac->remove();
} }
WOLF_INFO("ProcessorTrackerGnss::removeOutliers:", WOLF_DEBUG("ProcessorTrackerGnss::removeOutliers:",
"\n\tPseudorange: ", outliers_pseudorange_, "\t( ", (100.0 * outliers_pseudorange_)/(outliers_pseudorange_+inliers_pseudorange_), " %)"); "\n\tPseudorange: ", outliers_pseudorange_, "\t( ", (100.0 * outliers_pseudorange_)/(outliers_pseudorange_+inliers_pseudorange_), " %)");
if (params_tracker_gnss_->gnss_opt.tdcp.enabled and params_tracker_gnss_->remove_outliers_tdcp) if (params_tracker_gnss_->gnss_opt.tdcp.enabled and params_tracker_gnss_->remove_outliers_tdcp)
std::cout << "\tTDCP: " std::cout << "\tTDCP: "
......
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