Skip to content

Commit

Permalink
Add yarp network member to ICub
Browse files Browse the repository at this point in the history
  • Loading branch information
lrapetti committed Feb 20, 2019
1 parent fb52121 commit ee3990a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion devices/ICub/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ target_include_directories(ICub PRIVATE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)

target_link_libraries(ICub PUBLIC
Wearable::IWear YARP::YARP_dev)
Wearable::IWear
YARP::YARP_dev
YARP::YARP_init)

yarp_install(
TARGETS ICub
Expand Down
1 change: 1 addition & 0 deletions devices/ICub/src/ICub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class WrenchPort : public yarp::os::BufferedPort<yarp::os::Bottle>
std::vector<double> wrenchValues;
bool firstRun = true;
mutable std::mutex mtx;
yarp::os::Network yarpNetwork;

using yarp::os::BufferedPort<yarp::os::Bottle>::onRead;
virtual void onRead(yarp::os::Bottle& wrench)
Expand Down

0 comments on commit ee3990a

Please sign in to comment.