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