robotology / assistive-rehab

Assistive and Rehabilitative Robotics
https://robotology.github.io/assistive-rehab/doc/mkdocs/site
BSD 3-Clause "New" or "Revised" License
20 stars 11 forks source link

Fill robot location with nan in motionanalyzer if robot is offline #318

Closed mfussi66 closed 2 years ago

mfussi66 commented 2 years ago

This PR fills the robot-location data structure that is collected in the .mat file with NaN values if it cannot be retrieved instead of segfaulting. The behaviour was tested successfully by running the motionAnalyzer, saving a session, and checking in MATLAB if the values were actually detected as NaN.