Skip to content

Commit

Permalink
[iKin] added iCubInertialSensorWaist for v2.7
Browse files Browse the repository at this point in the history
refactored handling of HW versions
  • Loading branch information
pattacini committed Jun 22, 2020
1 parent 2eb448f commit aafb567
Show file tree
Hide file tree
Showing 2 changed files with 310 additions and 215 deletions.
53 changes: 40 additions & 13 deletions src/libraries/iKin/include/iCub/iKin/iKinFwd.h
Original file line number Diff line number Diff line change
Expand Up @@ -1094,8 +1094,8 @@ class iCubArm : public iKinLimb
/**
* Constructor.
* @param _type is a string to discriminate between "left" and
* "right" arm. Further available options are
* "[left|right]_v[1|1.7|2]".
* "right" arm. Further available options account
* for different HW versions, e.g. "left_v2".
*/
iCubArm(const std::string &_type);

Expand Down Expand Up @@ -1248,8 +1248,8 @@ class iCubLeg : public iKinLimb
/**
* Constructor.
* @param _type is a string to discriminate between "left" and
* "right" leg. Further available options are
* "[left|right]_v[1|2.5]".
* "right" leg. Further available options account
* for different HW versions, e.g. "left_v2".
*/
iCubLeg(const std::string &_type);

Expand Down Expand Up @@ -1285,8 +1285,8 @@ class iCubEye : public iKinLimb
/**
* Constructor.
* @param _type is a string to discriminate between "left" and
* "right" eye. Further available options are
* "[left|right]_v[1|2|2.5]".
* "right" eye. Further available options account
* for different HW versions, e.g. "left_v2".
*/
iCubEye(const std::string &_type);

Expand Down Expand Up @@ -1321,8 +1321,8 @@ class iCubEyeNeckRef : public iCubEye
/**
* Constructor.
* @param _type is a string to discriminate between "left" and
* "right" eye. Further available options are
* "[left|right]_v[1|2|2.5]".
* "right" eye. Further available options account
* for different HW versions, e.g. "left_v2".
*/
iCubEyeNeckRef(const std::string &_type);
};
Expand All @@ -1347,9 +1347,8 @@ class iCubHeadCenter : public iCubEye

/**
* Constructor.
* @param _type is a string to discriminate between "left" and
* "right" eye. Further available options are
* "[left|right]_v[1|2|2.5]".
* @param _type is a string for specifying different kinematic
* versions.
*/
iCubHeadCenter(const std::string &_type);
};
Expand All @@ -1376,8 +1375,8 @@ class iCubInertialSensor : public iKinLimb

/**
* Constructor.
* @param _type is a string discriminating among "v[1|2|2.5]"
* hardware versions.
* @param _type is a string for specifying different kinematic
* versions.
*/
iCubInertialSensor(const std::string &_type);

Expand All @@ -1391,6 +1390,34 @@ class iCubInertialSensor : public iKinLimb
virtual bool alignJointsBounds(const std::deque<yarp::dev::IControlLimits*> &lim);
};


/**
* \ingroup iKinFwd
*
* A class for defining the Kinematics of the Inertial Sensor
* mounted in the iCub's Waist.
*/
class iCubInertialSensorWaist : public iKinLimb
{
protected:
double version;

virtual void allocate(const std::string &_type);

public:
/**
* Default constructor.
*/
iCubInertialSensorWaist();

/**
* Constructor.
* @param _type is a string for specifying different kinematic
* versions.
*/
iCubInertialSensorWaist(const std::string &_type);
};

}

}
Expand Down
Loading

0 comments on commit aafb567

Please sign in to comment.