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

Inprove file organization

parent 991a0a51
No related branches found
No related tags found
1 merge request!403Resolve "Merge Aux/KeyFrames into Estimated Frames"
Pipeline #6202 passed
...@@ -62,15 +62,20 @@ class FrameBase : public NodeBase, public HasStateBlocks, public std::enable_sha ...@@ -62,15 +62,20 @@ class FrameBase : public NodeBase, public HasStateBlocks, public std::enable_sha
const std::list<VectorXd>& _vectors); const std::list<VectorXd>& _vectors);
~FrameBase() override; ~FrameBase() override;
// Add and remove from WOLF tree ---------------------------------
template<typename classType, typename... T>
static std::shared_ptr<classType> emplaceFrame(TrajectoryBasePtr _ptr, T&&... all);
void link(TrajectoryBasePtr);
void link(ProblemPtr _prb);
virtual void remove(bool viral_remove_empty_parent=false); virtual void remove(bool viral_remove_empty_parent=false);
// Frame properties ----------------------------------------------- // Frame properties -----------------------------------------------
public: public:
unsigned int id() const; unsigned int id() const;
// link to problem
void link(ProblemPtr _prb);
// Frame values ------------------------------------------------ // Frame values ------------------------------------------------
public: public:
void setTimeStamp(const TimeStamp& _ts); void setTimeStamp(const TimeStamp& _ts);
...@@ -105,15 +110,14 @@ class FrameBase : public NodeBase, public HasStateBlocks, public std::enable_sha ...@@ -105,15 +110,14 @@ class FrameBase : public NodeBase, public HasStateBlocks, public std::enable_sha
FactorBasePtr getFactorOf(const ProcessorBasePtr _processor_ptr) const; FactorBasePtr getFactorOf(const ProcessorBasePtr _processor_ptr) const;
FactorBasePtr getFactorOf(const ProcessorBasePtr _processor_ptr, const std::string& type) const; FactorBasePtr getFactorOf(const ProcessorBasePtr _processor_ptr, const std::string& type) const;
void getFactorList(FactorBasePtrList& _fac_list) const; void getFactorList(FactorBasePtrList& _fac_list) const;
unsigned int getHits() const; unsigned int getHits() const;
const FactorBasePtrList& getConstrainedByList() const; const FactorBasePtrList& getConstrainedByList() const;
bool isConstrainedBy(const FactorBasePtr& _factor) const; bool isConstrainedBy(const FactorBasePtr& _factor) const;
void link(TrajectoryBasePtr);
template<typename classType, typename... T>
static std::shared_ptr<classType> emplaceFrame(TrajectoryBasePtr _ptr, T&&... all);
// Debug and info -------------------------------------------------------
virtual void printHeader(int depth, // virtual void printHeader(int depth, //
bool constr_by, // bool constr_by, //
bool metric, // bool metric, //
......
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