yarp icon indicating copy to clipboard operation
yarp copied to clipboard

robotinterface: Do not print a message if a device does not derive from IWrapper

Open traversaro opened this issue 1 year ago • 2 comments
trafficstars

robotinterface logs are always full of messages "is not an IWrapper. Trying IMultipleWrapper"

[INFO] Executing attach action, level 5 on device left_arm-mc_remapper with parameters [("networks" = "(left_arm_joints1)"), ("left_arm_joints1" = "left_arm_hardware_device")]
[INFO] left_arm-mc_remapper is not an IWrapper. Trying IMultipleWrapper
[INFO] Executing attach action, level 5 on device right_arm-mc_remapper with parameters [("networks" = "(right_arm_joints1)"), ("right_arm_joints1" = "right_arm_hardware_device")]
[INFO] right_arm-mc_remapper is not an IWrapper. Trying IMultipleWrapper
[INFO] Executing attach action, level 5 on device left_leg-mc_remapper with parameters [("networks" = "(left_leg_joints1)"), ("left_leg_joints1" = "left_leg_hardware_device")]
[INFO] left_leg-mc_remapper is not an IWrapper. Trying IMultipleWrapper
[INFO] Executing attach action, level 5 on device right_leg-mc_remapper with parameters [("networks" = "(right_leg_joints1)"), ("right_leg_joints1" = "right_leg_hardware_device")]
[INFO] right_leg-mc_remapper is not an IWrapper. Trying IMultipleWrapper
[INFO] Executing attach action, level 5 on device head-mc_remapper with parameters [("networks" = "(head_joints1)"), ("head_joints1" = "head_hardware_device")]
[INFO] head-mc_remapper is not an IWrapper. Trying IMultipleWrapper

However, this situation is quite normal as it is totally fine for a a device to only implement IMultipleWrapper and not IWrapper, so I think it could be a good idea to remove the " is not an IWrapper. Trying IMultipleWrapper" . I also modified the subsequent failure message if also IMultipleWrapper fails to be more descriptive.

traversaro avatar Aug 02 '24 08:08 traversaro