17 #ifndef DOXYGEN_OMIT_INTERNAL 23 #endif // DOXYGEN_OMIT_INTERNAL 54 Command& operator[](
size_t index);
59 const
Command& operator[](
size_t index) const;
GroupCommand(size_t number_of_modules)
Create a group command with the specified number of modules.
Command objects have various fields that can be set; when sent to the module, these fields control in...
Eigen::VectorXd getVelocity() const
Convenience function for returning commanded velocity values.
~GroupCommand() noexcept
Destructor cleans up group command object as necessary.
size_t size() const
Returns the number of module commands in this group command.
const size_t number_of_modules_
Eigen::VectorXd getSpringConstant() const
Convenience function for returning commanded spring constant values.
Eigen::VectorXd getPosition() const
Convenience function for returning commanded position values.
Eigen::VectorXd getEffort() const
Convenience function for returning commanded effort values.
bool readGains(const std::string &file)
Import the gains from a file into this GroupCommand object.
A list of Command objects appropriate for sending to a Group of modules; the size() must match the nu...
HebiGroupCommandPtr internal_
std::vector< Command > commands_
bool writeGains(const std::string &file) const
Export the gains from this GroupCommand object into a file, creating it as necessary.
void setVelocity(const Eigen::VectorXd &velocity)
Convenience function for setting velocity commands from Eigen vectors.
void setSpringConstant(const Eigen::VectorXd &springConstant)
Convenience function for setting spring constant commands from Eigen vectors.
void setPosition(const Eigen::VectorXd &position)
Convenience function for setting position commands from Eigen vectors.
void setEffort(const Eigen::VectorXd &effort)
Convenience function for setting effort commands from Eigen vectors.
struct _HebiGroupCommand * HebiGroupCommandPtr
The C-style's API representation of a group command.