12 #include <BlockFactory/Core/Block.h>
18 class BlockInformation;
32 class KinDynComputations;
99 iDynTree::KinDynComputations* kinDyn);
108 bool parseParameters(blockfactory::core::BlockInformation* blockInfo)
override;
110 bool initialize(blockfactory::core::BlockInformation* blockInfo)
override;
@ Signal
Definition: YarpRead.cpp:49
Extension of blockfactory::core::Block for simplifying the development of whole-body blocks.
Definition: WBBlock.h:63
bool setRobotState(wbt::base::InputSignalPtr basePose, wbt::base::InputSignalPtr jointsPos, wbt::base::InputSignalPtr baseVelocity, wbt::base::InputSignalPtr jointsVelocity, iDynTree::KinDynComputations *kinDyn)
Helper for setting the robot state inside the iDynTree::KinDynComputations object.
Definition: WBBlock.cpp:74
bool parseParameters(blockfactory::core::BlockInformation *blockInfo) override
Definition: WBBlock.cpp:185
unsigned numberOfParameters() override
Definition: WBBlock.cpp:180
std::unique_ptr< iDynTreeRobotState > m_robotState
Definition: WBBlock.h:66
std::shared_ptr< iDynTree::KinDynComputations > getKinDynComputations() const
Helper for retrieving the iDynTree::KinDynComputations object.
Definition: WBBlock.cpp:64
bool initialize(blockfactory::core::BlockInformation *blockInfo) override
Definition: WBBlock.cpp:243
static constexpr unsigned NumberOfParameters
The number of parameters WBBlock requires.
Definition: WBBlock.h:103
std::string m_confBlockName
Definition: WBBlock.h:68
const std::shared_ptr< wbt::base::RobotInterface > getRobotInterface() const
Helper for retrieving the wbt::RobotInterface object.
Definition: WBBlock.cpp:69
WBBlock()
Definition: WBBlock.cpp:174
bool configureSizeAndPorts(blockfactory::core::BlockInformation *blockInfo) override
Definition: WBBlock.cpp:208
std::shared_ptr< wbt::base::RobotInterface > m_robotInterface
Definition: WBBlock.h:69
Definition: RobotInterface.h:33
std::shared_ptr< const blockfactory::core::Signal > InputSignalPtr
Definition: WBBlock.h:27
Definition: Configuration.h:17
Container for data structures used for using iDynTree::KinDynComputations::setRobotState
Definition: WBBlock.cpp:45