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 37 forks source link

Discuss whether to implement a sensor dry read for a call at the end of setDriversList() in YarpSensorBridge to detect an early failure #125

Open prashanthr05 opened 3 years ago

prashanthr05 commented 3 years ago

Copying from https://github.com/dic-iit/bipedal-locomotion-framework/issues/121#issuecomment-698519020,

Aside, in addition to all the pointers, there was one feature I did not implement in the YarpSensorBridge while porting from the legacy RobotSensorBridge which basically runs a dry reading of sensors at the end of setDriversList phase once all the drivers are attached. This dry read polls for sensor measurements upto a timeout period (similar to the recent fix in IRobotControl) helping to identify early failures at the initialisation phase itself, in case there are no measurements available at the lower level. Should we consider to reimplement it here as well?

S-Dafarra commented 3 years ago

I think this may be a very good point.