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

Raplace string --> StateStructure

parent 9ea2704f
No related branches found
No related tags found
1 merge request!382Resolve "using Processor::structure instead of Problem::structure"
Pipeline #6256 passed
This commit is part of merge request !382. Comments created here will be created in the context of that merge request.
......@@ -54,11 +54,11 @@ class FrameBase : public NodeBase, public HasStateBlocks, public std::enable_sha
StateBlockPtr _v_ptr = nullptr);
FrameBase(const TimeStamp& _ts,
const std::string _frame_structure,
const StateStructure& _frame_structure,
const VectorComposite& _state);
FrameBase(const TimeStamp& _ts,
const std::string _frame_structure,
const StateStructure& _frame_structure,
const std::list<VectorXd>& _vectors);
~FrameBase() override;
......
......@@ -21,7 +21,7 @@ class HasStateBlocks
{
public:
HasStateBlocks();
HasStateBlocks(const std::string& _structure) : structure_(_structure), state_block_map_() {}
HasStateBlocks(const StateStructure& _structure) : structure_(_structure), state_block_map_() {}
virtual ~HasStateBlocks();
const StateStructure& getStructure() const { return structure_; }
......
......@@ -12,6 +12,7 @@ class FrameBase;
#include "core/common/wolf.h"
#include "core/common/node_base.h"
#include "core/common/time_stamp.h"
#include "core/state_block/state_composite.h"
//std includes
......@@ -56,7 +57,7 @@ class TrajectoryBase : public NodeBase, public std::enable_shared_from_this<Traj
FrameMap frame_map_;
protected:
std::string frame_structure_; // Defines the structure of the Frames in the Trajectory.
StateStructure frame_structure_; // Defines the structure of the Frames in the Trajectory.
// FrameBasePtr last_key_frame_ptr_; // keeps pointer to the last key frame
// FrameBasePtr last_key_or_aux_frame_ptr_; // keeps pointer to the last estimated frame
......
......@@ -13,7 +13,7 @@ namespace wolf {
unsigned int FrameBase::frame_id_count_ = 0;
FrameBase::FrameBase(const TimeStamp& _ts,
const std::string _frame_structure,
const StateStructure& _frame_structure,
const VectorComposite& _state) :
NodeBase("FRAME", "FrameBase"),
HasStateBlocks(_frame_structure),
......@@ -34,7 +34,7 @@ FrameBase::FrameBase(const TimeStamp& _ts,
FrameBase::FrameBase(const TimeStamp& _ts,
const std::string _frame_structure,
const StateStructure& _frame_structure,
const std::list<VectorXd>& _vectors) :
NodeBase("FRAME", "FrameBase"),
HasStateBlocks(_frame_structure),
......
......@@ -251,7 +251,7 @@ void ProcessorMotion::processCapture(CaptureBasePtr _incoming_ptr)
for (auto pair_ckey_vec : proc_state)
if (!keyframe_from_callback->isInStructure(pair_ckey_vec.first))
keyframe_from_callback->addStateBlock(pair_ckey_vec.first,
FactoryStateBlock::create(pair_ckey_vec.first,
FactoryStateBlock::create(string(1, pair_ckey_vec.first),
pair_ckey_vec.second,
false));
keyframe_from_callback->setState(proc_state);
......@@ -352,7 +352,7 @@ void ProcessorMotion::processCapture(CaptureBasePtr _incoming_ptr)
for (auto pair_ckey_vec : proc_state)
if (!keyframe_from_callback->isInStructure(pair_ckey_vec.first))
keyframe_from_callback->addStateBlock(pair_ckey_vec.first,
FactoryStateBlock::create(pair_ckey_vec.first,
FactoryStateBlock::create(string(1, pair_ckey_vec.first),
pair_ckey_vec.second,
false));
keyframe_from_callback->setState(proc_state);
......
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