20 #ifndef DOXYGEN_OMIT_INTERNAL 25 std::shared_ptr<GroupInfoWrapper> internal_;
26 #endif // DOXYGEN_OMIT_INTERNAL 32 const size_t number_of_modules_;
36 std::vector<Info> infos_;
41 const bool is_subview_{};
46 GroupInfo(std::shared_ptr<GroupInfoWrapper>, std::vector<int> indices);
95 bool writeGains(
const std::string& file)
const;
104 auto res = hebiGroupInfoWriteSafetyParameters(internal_->internal_, file.c_str()) == HebiStatusSuccess;
A list of Info objects that can be received from a Group of modules; the size() must match the number...
Definition: group_info.hpp:18
FunctionCallResult writeSafetyParameters(const std::string &file) const
Export the safety parameters from this GroupInfo object into a file, creating it as necessary.
Definition: group_info.hpp:101
~GroupInfo() noexcept=default
Destructor cleans up group info object as necessary.
Info objects have various fields representing the module state; which fields are populated depends on...
Definition: info.hpp:34
bool writeGains(const std::string &file) const
Export the gains from this GroupInfo object into a file, creating it as necessary.
Definition: group_info.cpp:29
const Info & operator[](size_t index) const
Access the info for an individual module.
Definition: group_info.cpp:27
bool isSubview() const
Was this created as a subview of another GroupInfo?
Definition: group_info.hpp:79
Used as a return.
Definition: util.hpp:28
size_t size() const
Returns the number of module infos in this group info.
Definition: group_info.cpp:25
GroupInfo subview(std::vector< int > indices) const
Creates a "subview" of this group info object, with shared access to a subset of the Info elements....
Definition: group_info.cpp:17
Eigen::VectorXd getSpringConstant() const
Convenience function for returning spring constant values.
Definition: group_info.cpp:35