visual-tracking-control
InitiCubArm.h
Go to the documentation of this file.
1 #ifndef INITICUBARM_H
2 #define INITICUBARM_H
3 
4 #include <BayesFilters/Initialization.h>
5 #include <iCub/iKin/iKinFwd.h>
6 #include <yarp/os/Bottle.h>
7 #include <yarp/os/BufferedPort.h>
8 #include <yarp/os/ConstString.h>
9 #include <yarp/sig/Vector.h>
10 
11 
12 class InitiCubArm : public bfl::Initialization
13 {
14 public:
15  InitiCubArm(const yarp::os::ConstString& port_prefix, const yarp::os::ConstString& cam_sel, const yarp::os::ConstString& laterality) noexcept;
16 
17  InitiCubArm(const yarp::os::ConstString& cam_sel, const yarp::os::ConstString& laterality) noexcept;
18 
19  ~InitiCubArm() noexcept;
20 
21  void initialize(Eigen::Ref<Eigen::MatrixXf> state, Eigen::Ref<Eigen::VectorXf> weight) override;
22 
23 private:
24  iCub::iKin::iCubArm icub_kin_arm_;
25  iCub::iKin::iCubFinger icub_kin_finger_[3];
26  yarp::os::BufferedPort<yarp::os::Bottle> port_torso_enc_;
27  yarp::os::BufferedPort<yarp::os::Bottle> port_arm_enc_;
28 
29  yarp::sig::Vector readTorso();
30 
31  yarp::sig::Vector readRootToEE();
32 };
33 
34 #endif /* INITICUBARM_H */
yarp::sig::Vector readRootToEE()
Definition: InitiCubArm.cpp:68
InitiCubArm(const yarp::os::ConstString &port_prefix, const yarp::os::ConstString &cam_sel, const yarp::os::ConstString &laterality) noexcept
yarp::sig::Vector readTorso()
Definition: InitiCubArm.cpp:54
yarp::os::BufferedPort< yarp::os::Bottle > port_arm_enc_
Definition: InitiCubArm.h:27
iCub::iKin::iCubFinger icub_kin_finger_[3]
Definition: InitiCubArm.h:25
yarp::os::BufferedPort< yarp::os::Bottle > port_torso_enc_
Definition: InitiCubArm.h:26
iCub::iKin::iCubArm icub_kin_arm_
Definition: InitiCubArm.h:24
void initialize(Eigen::Ref< Eigen::MatrixXf > state, Eigen::Ref< Eigen::VectorXf > weight) override
Definition: InitiCubArm.cpp:41
~InitiCubArm() noexcept
Definition: InitiCubArm.cpp:34