ami-iit / bipedal-locomotion-framework

Suite of libraries for achieving bipedal locomotion on humanoid robots
https://ami-iit.github.io/bipedal-locomotion-framework/
BSD 3-Clause "New" or "Revised" License
132 stars 36 forks source link

Create python bindings of `VectorsCollection` #854

Closed FabioBergonti closed 3 weeks ago

FabioBergonti commented 3 weeks ago

My previous PR #850 was not working as expected because I forgot to create the bindings for VectorsCollection. In particular, when you call read_data you get the following error:

TypeError: Unable to convert function return value to a Python type! The signature was
        (self: bipedal_locomotion_framework.bindings.yarp_utilities.VectorsCollectionClient, arg0: bool) -> BipedalLocomotion::YarpUtilities::VectorsCollection

This PR creates Python bindings for VectorsCollection and modifies the behavior of read_data to provide an empty collection as output when it is unable to retrieve data.