iCub-main
Loading...
Searching...
No Matches
CouplingICubEye.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2006-2024 Istituto Italiano di Tecnologia (IIT)
3 * All rights reserved.
4 *
5 * This software may be modified and distributed under the terms of the
6 * BSD-3-Clause license. See the accompanying LICENSE file for details.
7 */
8
9#ifndef COUPLINGICUBEYE_H
10#define COUPLINGICUBEYE_H
11
12#include <yarp/os/LogComponent.h>
13#include <yarp/dev/DeviceDriver.h>
14#include <yarp/dev/ImplementJointCoupling.h>
16
17#include <unordered_map>
18#include <vector>
19#include <string>
20
21
22YARP_DECLARE_LOG_COMPONENT(COUPLINGICUBEYE)
23
24
28class CouplingICubEye : public yarp::dev::DeviceDriver,
29 public yarp::dev::ImplementJointCoupling,
31public:
32 CouplingICubEye() = default;
33 virtual ~CouplingICubEye() override = default;
34 bool convertFromPhysicalJointsToActuatedAxesPos(const yarp::sig::Vector& physJointsPos, yarp::sig::Vector& actAxesPos) override;
35 bool convertFromPhysicalJointsToActuatedAxesVel(const yarp::sig::Vector& physJointsPos, const yarp::sig::Vector& physJointsVel, yarp::sig::Vector& actAxesVel) override;
36 bool convertFromPhysicalJointsToActuatedAxesAcc(const yarp::sig::Vector& physJointsPos, const yarp::sig::Vector& physJointsVel, const yarp::sig::Vector& physJointsAcc, yarp::sig::Vector& actAxesAcc) override;
37 bool convertFromPhysicalJointsToActuatedAxesTrq(const yarp::sig::Vector& physJointsPos, const yarp::sig::Vector& physJointsTrq, yarp::sig::Vector& actAxesTrq) override;
38 bool convertFromActuatedAxesToPhysicalJointsPos(const yarp::sig::Vector& actAxesPos, yarp::sig::Vector& physJointsPos) override;
39 bool convertFromActuatedAxesToPhysicalJointsVel(const yarp::sig::Vector& actAxesPos, const yarp::sig::Vector& actAxesVel, yarp::sig::Vector& physJointsVel) override;
40 bool convertFromActuatedAxesToPhysicalJointsAcc(const yarp::sig::Vector& actAxesPos, const yarp::sig::Vector& actAxesVel, const yarp::sig::Vector& actAxesAcc, yarp::sig::Vector& physJointsAcc) override;
41 bool convertFromActuatedAxesToPhysicalJointsTrq(const yarp::sig::Vector& actAxesPos, const yarp::sig::Vector& actAxesTrq, yarp::sig::Vector& physJointsTrq) override;
42
43 // //DeviceDriver
49 bool open(yarp::os::Searchable& config) override;
50private:
51
52 bool populateCouplingParameters();
53};
54
55#endif // COUPLINGICUBEYE_H
This class is the parameters parser for class CouplingICubEye.
Coupling law from https://icub-tech-iit.github.io/documentation/icub_kinematics/icub-vergence-version...
CouplingICubEye()=default
virtual ~CouplingICubEye() override=default
Copyright (C) 2008 RobotCub Consortium.