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

Put privileged constructor first

parent c84f3428
No related branches found
No related tags found
1 merge request!358WIP: Resolve "Complete state vector new data structure?"
Pipeline #5313 failed
......@@ -48,6 +48,15 @@ class FrameBase : public NodeBase, public HasStateBlocks, public std::enable_sha
TimeStamp time_stamp_; ///< frame time stamp
public:
/** \brief Constructor with time stamp and VectorComposite
*
* Constructor with time stamp
* \param _ts is the time stamp associated to this frame, provided in seconds
* \param _state VectorComposite. Each block will define a state block of the appropriate type and size.
**/
FrameBase(const FrameType & _tp, const TimeStamp& _ts, const VectorComposite & _state);
/** \brief Constructor of non-key Frame with only time stamp
*
* Constructor with only time stamp
......@@ -58,7 +67,7 @@ class FrameBase : public NodeBase, public HasStateBlocks, public std::enable_sha
**/
FrameBase(const TimeStamp& _ts, StateBlockPtr _p_ptr, StateBlockPtr _o_ptr = nullptr, StateBlockPtr _v_ptr = nullptr);
/** \brief Constructor with type, time stamp and state pointer
/** \brief Constructor with type, time stamp and state block pointers
*
* Constructor with type, time stamp and state pointer
* \param _tp indicates frame type. Generally either NON_KEY_FRAME or KEY_FRAME. (types defined at wolf.h)
......@@ -71,8 +80,6 @@ class FrameBase : public NodeBase, public HasStateBlocks, public std::enable_sha
FrameBase(const StateStructure& _frame_structure, const SizeEigen _dim, const FrameType & _tp, const TimeStamp& _ts, const Eigen::VectorXd& _x);
FrameBase(const FrameType & _tp, const TimeStamp& _ts, const VectorComposite & _state);
virtual ~FrameBase();
virtual void remove(bool viral_remove_empty_parent=false);
......
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