Skip to content

Commit

Permalink
Patch iKin versioning (#36)
Browse files Browse the repository at this point in the history
* Patch iKin versioning

* Update CMakeLists.txt
  • Loading branch information
pattacini authored Dec 5, 2022
1 parent b54668b commit 13e9bea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ project(stereo-vision)

find_package(ICUBcontrib REQUIRED)
find_package(YARP 3.5.1 COMPONENTS os sig dev math cv rosmsg idl_tools REQUIRED)
find_package(ICUB REQUIRED)
find_package(ICUB 2.0.0 REQUIRED)

list(APPEND CMAKE_MODULE_PATH ${ICUB_MODULE_PATH}
${ICUBCONTRIB_MODULE_PATH}
Expand Down
10 changes: 3 additions & 7 deletions lib/src/disparityThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,13 +378,9 @@ bool DisparityThread::threadInit()

Bottle p;
igaze->getInfo(p);
int vHead=(int)p.check(("head_version"),Value(1.0)).asFloat64();
stringstream headType;
headType << "v";
headType << vHead;

LeyeKin=new iCubEye("left_"+headType.str());
ReyeKin=new iCubEye("right_"+headType.str());
auto vHead=p.check(("head_version"),Value("1.0")).asString();
LeyeKin=new iCubEye("left_v"+vHead);
ReyeKin=new iCubEye("right_v"+vHead);
LeyeKin->releaseLink(0);
LeyeKin->releaseLink(1);
LeyeKin->releaseLink(2);
Expand Down

0 comments on commit 13e9bea

Please sign in to comment.