Skip to content

Commit

Permalink
iKin: iCubEye handles head_version 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicogene committed Aug 13, 2019
1 parent 791952c commit b216c5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libraries/iKin/src/iKinFwd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2430,7 +2430,7 @@ void iCubEye::allocate(const string &_type)
pushLink(new iKinLink( 0.0, -0.034, -M_PI/2.0, 0.0, -35.0*CTRL_DEG2RAD, 15.0*CTRL_DEG2RAD));
pushLink(new iKinLink( 0.0, 0.0, M_PI/2.0, -M_PI/2.0, -50.0*CTRL_DEG2RAD, 50.0*CTRL_DEG2RAD));
}
else if ((getType()=="right_v2") || (getType()=="right_v2.5"))
else if ((getType()=="right_v2") || (getType()=="right_v2.5") || (getType()=="right_v2.6"))
{
pushLink(new iKinLink( 0.032, 0.0, M_PI/2.0, 0.0, -22.0*CTRL_DEG2RAD, 84.0*CTRL_DEG2RAD));
pushLink(new iKinLink( 0.0, -0.0055, M_PI/2.0, -M_PI/2.0, -39.0*CTRL_DEG2RAD, 39.0*CTRL_DEG2RAD));
Expand Down Expand Up @@ -2468,7 +2468,7 @@ void iCubEye::allocate(const string &_type)
}
else
{
if ((type!="left_v2") && (type!="left_v2.5"))
if ((type!="left_v2") && (type!="left_v2.5") && (type!="left_v2.6"))
type="left_v2";

pushLink(new iKinLink( 0.032, 0.0, M_PI/2.0, 0.0, -22.0*CTRL_DEG2RAD, 84.0*CTRL_DEG2RAD));
Expand Down

0 comments on commit b216c5b

Please sign in to comment.