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

Initialize node types more consistently

parent 96c54896
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ namespace wolf { ...@@ -12,7 +12,7 @@ namespace wolf {
unsigned int FrameBase::frame_id_count_ = 0; unsigned int FrameBase::frame_id_count_ = 0;
FrameBase::FrameBase(const TimeStamp& _ts, StateBlockPtr _p_ptr, StateBlockPtr _o_ptr, StateBlockPtr _v_ptr) : FrameBase::FrameBase(const TimeStamp& _ts, StateBlockPtr _p_ptr, StateBlockPtr _o_ptr, StateBlockPtr _v_ptr) :
NodeBase("FRAME", "BASE"), NodeBase("FRAME", "Base"),
trajectory_ptr_(), trajectory_ptr_(),
state_block_vec_(3), // allow for 6 state blocks by default. Resize in derived constructors if needed. state_block_vec_(3), // allow for 6 state blocks by default. Resize in derived constructors if needed.
is_removing_(false), is_removing_(false),
...@@ -31,7 +31,7 @@ FrameBase::FrameBase(const TimeStamp& _ts, StateBlockPtr _p_ptr, StateBlockPtr _ ...@@ -31,7 +31,7 @@ FrameBase::FrameBase(const TimeStamp& _ts, StateBlockPtr _p_ptr, StateBlockPtr _
} }
FrameBase::FrameBase(const FrameType & _tp, const TimeStamp& _ts, StateBlockPtr _p_ptr, StateBlockPtr _o_ptr, StateBlockPtr _v_ptr) : FrameBase::FrameBase(const FrameType & _tp, const TimeStamp& _ts, StateBlockPtr _p_ptr, StateBlockPtr _o_ptr, StateBlockPtr _v_ptr) :
NodeBase("FRAME", "BASE"), NodeBase("FRAME", "Base"),
trajectory_ptr_(), trajectory_ptr_(),
state_block_vec_(3), // allow for 3 state blocks by default. Resize in derived constructors if needed. state_block_vec_(3), // allow for 3 state blocks by default. Resize in derived constructors if needed.
is_removing_(false), is_removing_(false),
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
namespace wolf { namespace wolf {
HardwareBase::HardwareBase() : HardwareBase::HardwareBase() :
NodeBase("HARDWARE") NodeBase("HARDWARE", "Base")
{ {
// std::cout << "constructed H" << std::endl; // std::cout << "constructed H" << std::endl;
} }
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
namespace wolf { namespace wolf {
MapBase::MapBase() : MapBase::MapBase() :
NodeBase("MAP") NodeBase("MAP", "Base")
{ {
// std::cout << "constructed M"<< std::endl; // std::cout << "constructed M"<< std::endl;
} }
......
...@@ -8,14 +8,12 @@ namespace wolf { ...@@ -8,14 +8,12 @@ namespace wolf {
unsigned int ProcessorBase::processor_id_count_ = 0; unsigned int ProcessorBase::processor_id_count_ = 0;
ProcessorBase::ProcessorBase(const std::string& _type, const Scalar& _time_tolerance) : ProcessorBase::ProcessorBase(const std::string& _type, const Scalar& _time_tolerance) :
NodeBase("PROCESSOR"), NodeBase("PROCESSOR", _type),
sensor_ptr_(), sensor_ptr_(),
is_removing_(false), is_removing_(false),
processor_id_(++processor_id_count_), processor_id_(++processor_id_count_),
time_tolerance_(_time_tolerance) time_tolerance_(_time_tolerance)
{ {
setType(_type);
// WOLF_DEBUG("constructed +p" , id()); // WOLF_DEBUG("constructed +p" , id());
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
namespace wolf { namespace wolf {
TrajectoryBase::TrajectoryBase(const std::string& _frame_structure) : TrajectoryBase::TrajectoryBase(const std::string& _frame_structure) :
NodeBase("TRAJECTORY"), NodeBase("TRAJECTORY", "Base"),
frame_structure_(_frame_structure), frame_structure_(_frame_structure),
last_key_frame_ptr_(nullptr) last_key_frame_ptr_(nullptr)
{ {
......
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