visual-tracking-control
iCubFwdKinModel.h
Go to the documentation of this file.
1 #ifndef ICUBFWDKINMODEL_H
2 #define ICUBFWDKINMODEL_H
3 
4 #include <FwdKinModel.h>
5 
6 #include <iCub/iKin/iKinFwd.h>
7 #include <yarp/dev/PolyDriver.h>
8 #include <yarp/dev/IEncoders.h>
9 #include <yarp/os/ConstString.h>
10 #include <yarp/sig/Vector.h>
11 
12 
14 {
15 public:
16  iCubFwdKinModel(const yarp::os::ConstString& robot, const yarp::os::ConstString& laterality, const yarp::os::ConstString& port_prefix);
17 
18  ~iCubFwdKinModel() noexcept;
19 
20  bool setProperty(const std::string& property) override;
21 
22 protected:
23  Eigen::VectorXd readPose() override;
24 
25  yarp::sig::Vector readTorso();
26 
27  yarp::sig::Vector readRootToEE();
28 
29  yarp::dev::PolyDriver drv_arm_enc_;
30  yarp::dev::PolyDriver drv_torso_enc_;
31  yarp::dev::IEncoders * itf_arm_enc_;
32  yarp::dev::IEncoders * itf_torso_enc_;
33  iCub::iKin::iCubArm icub_kin_arm_;
34 
35 private:
36  yarp::os::ConstString ID_ = "iCubFwdKinModel";
37  yarp::os::ConstString log_ID_ = "[" + ID_ + "]";
38 
39  yarp::os::ConstString robot_;
40  yarp::os::ConstString laterality_;
41  yarp::os::ConstString port_prefix_;
42 };
43 
44 #endif /* ICUBFWDKINMODEL_H */
yarp::os::ConstString log_ID_
yarp::sig::Vector readRootToEE()
yarp::dev::IEncoders * itf_arm_enc_
iCubFwdKinModel(const yarp::os::ConstString &robot, const yarp::os::ConstString &laterality, const yarp::os::ConstString &port_prefix)
yarp::os::ConstString robot_
yarp::dev::IEncoders * itf_torso_enc_
iCub::iKin::iCubArm icub_kin_arm_
yarp::os::ConstString ID_
~iCubFwdKinModel() noexcept
yarp::dev::PolyDriver drv_arm_enc_
yarp::sig::Vector readTorso()
Eigen::VectorXd readPose() override
yarp::os::ConstString laterality_
bool setProperty(const std::string &property) override
yarp::os::ConstString port_prefix_
yarp::dev::PolyDriver drv_torso_enc_