Closed traversaro closed 1 year ago
We read all the references and we better understood the concept of Yarp devices.
Assignment to do:
We also tried the tutorial.
In particular to run the tutorial we had some problems that we fixed commenting the following row of setup.sh file of the superbuild:
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}${ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX}/lib
.
Questions to answer:
- Why some code in the iCub infrastructure is encapsulated using YARP devices that communicate over C++ interface rather than RFModule that communicate using YARP ports?
YARP devices provide a higher level of abstraction and hide the underlying complexity, making it easier to use and maintain. They offer a unified interface for different types of hardware devices. This means that regardless of the specific hardware being used, the code interacting with the device remains the same. This abstraction allows for more flexibility in switching hardware components without modifying the higher-level code. On the other hand, in some cases, using YARP ports and RFModules may be more appropriate, especially when the focus is on message passing between modules rather than direct hardware control.
References:
Questions to answer:
Assignment to do: