visual-tracking-control
PlayFwdKinModel.h
Go to the documentation of this file.
1 #ifndef PLAYFWDKINMODEL_H
2 #define PLAYFWDKINMODEL_H
3 
4 #include <FwdKinModel.h>
5 
6 #include <iCub/iKin/iKinFwd.h>
7 #include <yarp/os/Bottle.h>
8 #include <yarp/os/BufferedPort.h>
9 #include <yarp/os/ConstString.h>
10 #include <yarp/sig/Vector.h>
11 
12 
14 {
15 public:
16  PlayFwdKinModel(const yarp::os::ConstString& robot, const yarp::os::ConstString& laterality, const yarp::os::ConstString& port_prefix) noexcept;
17 
18  ~PlayFwdKinModel() 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::os::BufferedPort<yarp::os::Bottle> port_torso_enc_;
30  yarp::os::BufferedPort<yarp::os::Bottle> port_arm_enc_;
31  iCub::iKin::iCubArm icub_kin_arm_;
32 
33 private:
34  yarp::os::ConstString ID_ = "PlayFwdKinModel";
35  yarp::os::ConstString log_ID_ = "[" + ID_ + "]";
36 
37  yarp::os::ConstString robot_;
38  yarp::os::ConstString laterality_;
39  yarp::os::ConstString port_prefix_;
40 };
41 
42 #endif /* PLAYFWDKINMODEL_H */
Eigen::VectorXd readPose() override
yarp::sig::Vector readRootToEE()
yarp::os::BufferedPort< yarp::os::Bottle > port_torso_enc_
yarp::os::ConstString ID_
bool setProperty(const std::string &property) override
~PlayFwdKinModel() noexcept
yarp::os::ConstString port_prefix_
PlayFwdKinModel(const yarp::os::ConstString &robot, const yarp::os::ConstString &laterality, const yarp::os::ConstString &port_prefix) noexcept
yarp::os::ConstString robot_
yarp::os::ConstString laterality_
yarp::sig::Vector readTorso()
yarp::os::BufferedPort< yarp::os::Bottle > port_arm_enc_
iCub::iKin::iCubArm icub_kin_arm_
yarp::os::ConstString log_ID_