Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch iKin versioning #36

Merged
merged 2 commits into from
Dec 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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