Go to the documentation of this file.
27 template<
typename GetT>
59 msg_.
q.resize(robot.
mb().nrParams());
60 rbd::paramToVector(robot.
mbc().q, msg_.
q);
61 msg_.
alpha.resize(robot.
mb().nrDof());
62 rbd::paramToVector(robot.
mbc().alpha, msg_.
alpha);
64 rbd::paramToVector(robot.
mbc().alphaD, msg_.
alphaD);
66 rbd::paramToVector(robot.
mbc().jointTorque, msg_.
tau);
73 template<
typename GetT>
74 auto RobotMsg(
const std::string & name, GetT get_fn)
Eigen::VectorXd alphaD
Definition: types.h:498
Definition: elements.h:58
Definition: MessagePackBuilder.h:86
static constexpr auto type
Definition: RobotMsg.h:30
Eigen::VectorXd tau
Definition: types.h:499
void write(mc_rtc::MessagePackBuilder &)
Definition: elements.h:83
Eigen::VectorXd alpha
Definition: types.h:497
void write(mc_rtc::MessagePackBuilder &builder)
Definition: RobotMsg.h:39
const std::vector< std::string > & parameters() const
Definition: RobotModule.h:511
const RobotModule & module() const
Eigen::VectorXd q
Definition: types.h:496
const sva::PTransformd & posW() const
auto RobotMsg(const std::string &name, GetT get_fn)
Definition: RobotMsg.h:74
static constexpr size_t write_size()
Definition: RobotMsg.h:37
rbd::MultiBodyConfig & mbc()
static constexpr size_t write_size()
Definition: elements.h:76
RobotMsgImpl(const std::string &name, GetT get_fn)
Definition: RobotMsg.h:32
Definition: RobotMsg.h:28
Definition: Observer.h:15
const std::string & name() const
Definition: elements.h:61