matfilerw icon indicating copy to clipboard operation
matfilerw copied to clipboard

StateSpace Object / Properties not found

Open br1egel opened this issue 7 years ago • 2 comments

Hi there, anybody in the same position, that wanted to read a state space object ? I can comment out the throw exception on line 590 in MatFileReader throw new IllegalStateException("Properties are not found! Not sure where to look ..."); but that would get me a MLArray, which is not same as on Matlab. I appended an example. I did the same on a mpc-object. That created a MLUInt32 [6x1 array] for the plant, which isn't excatly what I wanted (another struct would be preferably)

statespace.zip

br1egel avatar May 23 '18 19:05 br1egel

The supplied file contains string objects that have properties stored in Segment 2 of the MCOS FileWrapper__, which is currently ignored. The format is exactly the same as Segment 4.

Adding Segment 2 properties would also be a requirement for #15 for the function_handle_workspace objects.

If I find some time, I'd probably be able to create a PR for this.

ennerf avatar Sep 20 '18 09:09 ennerf

This is fixed in https://github.com/HebiRobotics/MFL

nedtwigg avatar Dec 28 '18 20:12 nedtwigg