robotology / gz-sim-yarp-plugins

YARP plugins for Modern Gazebo (gz-sim).
BSD 3-Clause "New" or "Revised" License
8 stars 1 forks source link

Familiarize with the concept of YARP devices and other related concepts #8

Closed traversaro closed 1 year ago

traversaro commented 1 year ago

References:

Questions to answer:

Assignment to do:

lucapa17 commented 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.