visual-tracking-control
PlayGatePose.h
Go to the documentation of this file.
1 #ifndef PLAYGATEPOSE_H
2 #define PLAYGATEPOSE_H
3 
4 #include "GatePose.h"
5 
6 #include <iCub/iKin/iKinFwd.h>
7 #include <yarp/os/Bottle.h>
8 #include <yarp/os/BufferedPort.h>
9 #include <yarp/sig/Vector.h>
10 
11 
12 class PlayGatePose : public GatePose
13 {
14 public:
15  /* Constructor */
16  PlayGatePose(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) noexcept;
21 
22  PlayGatePose(std::unique_ptr<PFVisualCorrection> visual_correction,
23  const yarp::os::ConstString& robot, const yarp::os::ConstString& laterality, const yarp::os::ConstString& port_prefix) noexcept;
24 
25  /* Destructor */
26  ~PlayGatePose() noexcept override;
27 
28 protected:
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  Eigen::VectorXd readPose() override;
34 
35  yarp::sig::Vector readRootToEE();
36 
37  yarp::sig::Vector readTorso();
38 
39 private:
40  const yarp::os::ConstString ID_ = "PlayGatePose";
41  const yarp::os::ConstString log_ID_ = "[" + ID_ + "]";
42 
43  yarp::os::ConstString robot_;
44  yarp::os::ConstString laterality_;
45  yarp::os::ConstString port_prefix_;
46 };
47 
48 #endif /* PLAYGATEPOSE_H */
const yarp::os::ConstString log_ID_
Definition: PlayGatePose.h:41
yarp::os::ConstString port_prefix_
Definition: PlayGatePose.h:45
PlayGatePose(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) noexcept
Eigen::VectorXd readPose() override
yarp::os::ConstString laterality_
Definition: PlayGatePose.h:44
yarp::sig::Vector readTorso()
yarp::os::BufferedPort< yarp::os::Bottle > port_torso_enc_
Definition: PlayGatePose.h:29
~PlayGatePose() noexcept override
const yarp::os::ConstString ID_
Definition: PlayGatePose.h:40
yarp::sig::Vector readRootToEE()
iCub::iKin::iCubArm icub_kin_arm_
Definition: PlayGatePose.h:31
yarp::os::ConstString robot_
Definition: PlayGatePose.h:43
yarp::os::BufferedPort< yarp::os::Bottle > port_arm_enc_
Definition: PlayGatePose.h:30