diff --git a/include/core/state_block/has_state_blocks.h b/include/core/state_block/has_state_blocks.h index 7adac4e234616b38df7e36eb8a43bb29cc2a2d57..6930a35241f5092e5df4f19e7ded101660d6c620 100644 --- a/include/core/state_block/has_state_blocks.h +++ b/include/core/state_block/has_state_blocks.h @@ -27,6 +27,15 @@ class HasStateBlocks void appendToStructure(const std::string& _frame_type){structure_ += _frame_type;} const std::map<std::string, StateBlockPtr>& getStateBlockMap() const; std::map<std::string, StateBlockPtr>& getStateBlockMap(); + std::vector<StateBlockPtr> getStateBlockVec() const + { + std::vector<StateBlockPtr> sbv; + for (auto& key : structure_) + { + sbv.push_back(getStateBlock(key)); + } + return sbv; + } public: // Some typical shortcuts -- not all should be coded here, see notes below.