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
146 stars 38 forks source link

Fix `VectorsCollectionClient.read_data(False)` to provide `collection` as output and avoid segmentation fault #850

Closed FabioBergonti closed 3 months ago

FabioBergonti commented 3 months ago

I was using VectorsCollectionClient.read_data(False) in Python, and when the VectorsCollectionClient was unable to retrieve data, it caused a segmentation fault. With this modification, the method returns None instead, preventing the segmentation fault.