From ee3990a7328856798b72dbcc790f4eee7e4255b0 Mon Sep 17 00:00:00 2001 From: Lorenzo Date: Wed, 20 Feb 2019 11:33:29 +0100 Subject: [PATCH] Add yarp network member to ICub --- devices/ICub/CMakeLists.txt | 4 +++- devices/ICub/src/ICub.cpp | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/devices/ICub/CMakeLists.txt b/devices/ICub/CMakeLists.txt index dbddecf5..73e44c2b 100644 --- a/devices/ICub/CMakeLists.txt +++ b/devices/ICub/CMakeLists.txt @@ -17,7 +17,9 @@ target_include_directories(ICub PRIVATE $) target_link_libraries(ICub PUBLIC - Wearable::IWear YARP::YARP_dev) + Wearable::IWear + YARP::YARP_dev + YARP::YARP_init) yarp_install( TARGETS ICub diff --git a/devices/ICub/src/ICub.cpp b/devices/ICub/src/ICub.cpp index 6aefa998..a47ab825 100644 --- a/devices/ICub/src/ICub.cpp +++ b/devices/ICub/src/ICub.cpp @@ -29,6 +29,7 @@ class WrenchPort : public yarp::os::BufferedPort std::vector wrenchValues; bool firstRun = true; mutable std::mutex mtx; + yarp::os::Network yarpNetwork; using yarp::os::BufferedPort::onRead; virtual void onRead(yarp::os::Bottle& wrench)