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

Remove cout messages from constructors, destructors, and removers

parent 0cbc5450
Branches devel
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ ConstraintBase::ConstraintBase(ConstraintType _tp, bool _apply_loss_function, Co
landmark_other_ptr_() // nullptr
{
//std::cout << "creating ConstraintBase " << std::endl;
std::cout << "constructed +c" << id() << std::endl;
// std::cout << "constructed +c" << id() << std::endl;
}
......@@ -35,7 +35,7 @@ ConstraintBase::ConstraintBase(ConstraintType _tp, FrameBasePtr _frame_ptr, bool
feature_other_ptr_(),
landmark_other_ptr_()
{
std::cout << "constructed +c" << id() << std::endl;
// std::cout << "constructed +c" << id() << std::endl;
}
......@@ -51,7 +51,7 @@ ConstraintBase::ConstraintBase(ConstraintType _tp, FeatureBasePtr _feature_ptr,
feature_other_ptr_(_feature_ptr),
landmark_other_ptr_()
{
std::cout << "constructed +c" << id() << std::endl;
// std::cout << "constructed +c" << id() << std::endl;
}
......@@ -67,12 +67,12 @@ ConstraintBase::ConstraintBase(ConstraintType _tp, LandmarkBasePtr _landmark_ptr
feature_other_ptr_(),
landmark_other_ptr_(_landmark_ptr)
{
std::cout << "constructed +c" << id() << std::endl;
// std::cout << "constructed +c" << id() << std::endl;
}
ConstraintBase::~ConstraintBase()
{
std::cout << "destructed -c" << id() << std::endl;
// std::cout << "destructed -c" << id() << std::endl;
}
void ConstraintBase::remove()
......@@ -133,7 +133,7 @@ void ConstraintBase::remove()
default:
break;
}
std::cout << "Removed c" << id() << std::endl;
// std::cout << "Removed c" << id() << std::endl;
}
}
......
......@@ -23,10 +23,10 @@ FrameBase::FrameBase(const TimeStamp& _ts, StateBlockPtr _p_ptr, StateBlockPtr _
state_block_vec_[1] = _o_ptr;
state_block_vec_[2] = _v_ptr;
//
if (isKey())
std::cout << "constructed +KF" << id() << std::endl;
else
std::cout << "constructed +F" << id() << std::endl;
// if (isKey())
// std::cout << "constructed +KF" << id() << std::endl;
// else
// std::cout << "constructed +F" << id() << std::endl;
}
FrameBase::FrameBase(const FrameType & _tp, const TimeStamp& _ts, StateBlockPtr _p_ptr, StateBlockPtr _o_ptr, StateBlockPtr _v_ptr) :
......@@ -42,10 +42,10 @@ FrameBase::FrameBase(const FrameType & _tp, const TimeStamp& _ts, StateBlockPtr
state_block_vec_[1] = _o_ptr;
state_block_vec_[2] = _v_ptr;
if (isKey())
std::cout << "constructed +KF" << id() << std::endl;
else
std::cout << "constructed +F" << id() << std::endl;
// if (isKey())
// std::cout << "constructed +KF" << id() << std::endl;
// else
// std::cout << "constructed +F" << id() << std::endl;
}
FrameBase::~FrameBase()
......@@ -53,10 +53,10 @@ FrameBase::~FrameBase()
// Remove Frame State Blocks
removeStateBlocks();
if (isKey())
std::cout << "destructed -KF" << id() << std::endl;
else
std::cout << "destructed -F" << id() << std::endl;
// if (isKey())
// std::cout << "destructed -KF" << id() << std::endl;
// else
// std::cout << "destructed -F" << id() << std::endl;
}
void FrameBase::remove()
......@@ -83,7 +83,7 @@ void FrameBase::remove()
// Remove Frame State Blocks
removeStateBlocks();
std::cout << "Removed F" << id() << std::endl;
// std::cout << "Removed F" << id() << std::endl;
}
}
......
......@@ -7,12 +7,12 @@ namespace wolf {
HardwareBase::HardwareBase() :
NodeBase("HARDWARE")
{
std::cout << "constructed H" << std::endl;
// std::cout << "constructed H" << std::endl;
}
HardwareBase::~HardwareBase()
{
std::cout << "destructed -H" << std::endl;
// std::cout << "destructed -H" << std::endl;
}
SensorBasePtr HardwareBase::addSensor(SensorBasePtr _sensor_ptr)
......
......@@ -18,13 +18,13 @@ LandmarkBase::LandmarkBase(const std::string& _type, StateBlockPtr _p_ptr, State
{
state_block_vec_[0] = _p_ptr;
state_block_vec_[1] = _o_ptr;
std::cout << "constructed +L" << id() << std::endl;
// std::cout << "constructed +L" << id() << std::endl;
}
LandmarkBase::~LandmarkBase()
{
removeStateBlocks();
std::cout << "destructed -L" << id() << std::endl;
// std::cout << "destructed -L" << id() << std::endl;
}
void LandmarkBase::remove()
......@@ -32,7 +32,7 @@ void LandmarkBase::remove()
if (!is_removing_)
{
is_removing_ = true;
std::cout << "Removing L" << id() << std::endl;
// std::cout << "Removing L" << id() << std::endl;
LandmarkBasePtr this_L = shared_from_this(); // keep this alive while removing it
// remove from upstream
......
......@@ -83,7 +83,7 @@ protected:
}
};
Logger::Logger()
inline Logger::Logger()
{
// Create main logger
console_ = spdlog::stdout_color_mt(log_name_);
......@@ -101,7 +101,7 @@ Logger::Logger()
console_->set_pattern("[%t][%H:%M:%S.%F][%l] %v");
}
Logger::~Logger()
inline Logger::~Logger()
{
spdlog::drop(log_name_);
}
......
......@@ -21,12 +21,12 @@ namespace wolf {
MapBase::MapBase() :
NodeBase("MAP")
{
std::cout << "constructed M"<< std::endl;
// std::cout << "constructed M"<< std::endl;
}
MapBase::~MapBase()
{
std::cout << "destructed -M" << std::endl;
// std::cout << "destructed -M" << std::endl;
}
LandmarkBasePtr MapBase::addLandmark(LandmarkBasePtr _landmark_ptr)
......
......@@ -13,14 +13,13 @@ ProcessorBase::ProcessorBase(const std::string& _type, const Scalar& _time_toler
time_tolerance_(_time_tolerance)
{
setType(_type);
std::cout << "constructed +p" << id() << std::endl;
//
// WOLF_DEBUG("constructed +p" , id());
}
ProcessorBase::~ProcessorBase()
{
std::cout << "destructed -p" << id() << std::endl;
// WOLF_DEBUG("destructed -p" , id());
}
bool ProcessorBase::permittedKeyFrame()
......@@ -55,7 +54,7 @@ void ProcessorBase::remove()
if (!is_removing_)
{
is_removing_ = true;
std::cout << "Removing p" << id() << std::endl;
// std::cout << "Removing p" << id() << std::endl;
ProcessorBasePtr this_p = shared_from_this();
// remove from upstream
......
......@@ -19,7 +19,7 @@ SensorBase::SensorBase(const std::string& _type, StateBlockPtr _p_ptr, StateBloc
state_block_vec_[0] = _p_ptr;
state_block_vec_[1] = _o_ptr;
state_block_vec_[2] = _intr_ptr;
std::cout << "constructed +S" << id() << std::endl;
// std::cout << "constructed +S" << id() << std::endl;
//
}
......@@ -40,7 +40,7 @@ SensorBase::SensorBase(const std::string& _type, StateBlockPtr _p_ptr, StateBloc
for (unsigned int i = 0; i < _noise_std.size(); i++)
noise_cov_(i, i) = noise_std_(i) * noise_std_(i);
std::cout << "constructed +S" << id() << std::endl;
// std::cout << "constructed +S" << id() << std::endl;
}
SensorBase::~SensorBase()
......@@ -48,7 +48,7 @@ SensorBase::~SensorBase()
// Remove State Blocks
removeStateBlocks();
std::cout << "destructed -S" << id() << std::endl;
// std::cout << "destructed -S" << id() << std::endl;
}
inline void SensorBase::remove()
......
#include "trajectory_base.h"
#include "frame_base.h"
namespace wolf {
TrajectoryBase::TrajectoryBase(FrameStructure _frame_structure) :
NodeBase("TRAJECTORY"),
frame_structure_(_frame_structure), last_key_frame_ptr_(nullptr)
{
std::cout << "constructed T" << std::endl;
//
// WOLF_DEBUG("constructed T");
}
TrajectoryBase::~TrajectoryBase()
{
std::cout << "destructed -T" << std::endl;
// WOLF_DEBUG("destructed -T");
}
FrameBasePtr TrajectoryBase::addFrame(FrameBasePtr _frame_ptr)
......
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